Record data and event information to file
An instrument object.
Switch recording capabilities on or off.
record(obj) toggles the
recording state for
or terminates recording for
recording is initiated. If
recording is terminated.
This example creates the GPIB object
the instrument, and configures
g to record detailed
information to the disk file MyGPIBFile.txt.
g = gpib('ni',0,1); fopen(g) g.RecordDetail = 'verbose'; g.RecordName = 'MyGPIBFile.txt';
Initiate recording, write the
to the instrument, and read back the identification information.
record(g,'on') fprintf(g,'*IDN?') out = fscanf(g);
Terminate recording and disconnect
Before you can record information to disk,
be connected to the instrument with the
A connected instrument object has a
open. An error is returned if you attempt
to record information while
obj is not connected
to the instrument. Each instrument object must record information
to a separate file. Recording is automatically terminated when
disconnected from the instrument with
are read-only while
obj is recording, and must
be configured before using
For a detailed description of the record file format and the properties associated with recording data and event information to a file, refer to Debugging: Recording Information to Disk.