|MATLAB Function Reference|
Record data and event information to a file
||A serial port object.
||Switch recording capabilities on or off.
toggles the recording state for
record(obj,' initiates or terminates recording for
switch can be
on, recording is initiated. If
off, recording is terminated.
Before you can record information to disk,
obj must be connected to the device with the
fopen function. A connected serial port object has a
Status property value of
open. An error is returned if you attempt to record information while
obj is not connected to the device. Each serial port object must record information to a separate file. Recording is automatically terminated when
obj is disconnected from the device with
RecordMode properties 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.
This example creates the serial port object
s to the device, configures
s to record information to a file, writes and reads text data, and then disconnects
s from the device.