User`s guide
19 Instrument Control Toolbox 1.1 Release Notes
19-2
New Features
This section introduces the new features and enhancements in the Instrument
Control Toolbox 1.1, added since the Instrument Control Toolbox 1.0 (Release
12.0). For a brief introduction to the Instrument Control Toolbox 1.0, refer to
the Release Notes for Release 12.
VXI Block and FIFO Read Operations
For VISA-VXI and VISA-GPIB-VXI objects, you can specify if the VXI register
offset increments after data is transferred with the
MemoryIncrement
property.
You can configure
MemoryIncrement to be block or FIFO. If MemoryIncrement
is
block, the memread and memwrite functions increment the offset after every
read and write operation, and data is transferred from consecutive memory
elements. If
MemoryIncrement is FIFO, the memread and memwrite functions
always read from or write to the same memory element. Note that the
Instrument Control Toolbox 1.0 supported only block data transfer.
Freeing the Serial Port on Windows Platforms
The serial port object uses the javax.comm package to communicate with the
serial port. However, due to a memory leak in
javax.comm, the serial port object
is not released from memory. You can use the
freeserial function to release
MATLAB's hold on the serial port.
freeserial is necessary only on Windows platforms. You should use
freeserial only if you need to connect to the serial port from another
application after a serial port object has been connected to that port, and you
do not want to exit MATLAB.
Data Parsing
You can parse formatted data read from your instrument with the scanstr
function. The data is parsed according to the specified delimiters, and is stored
in a cell array as either a double or a string.