User`s manual
ix
Events and Callbacks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-48
Example: Introduction to Events and Callbacks . . . . . . . . . . . 8-48
Event Types and Callback Properties . . . . . . . . . . . . . . . . . . . . 8-49
Storing Event Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-50
Creating and Executing Callback Functions . . . . . . . . . . . . . . 8-52
Enabling Callback Functions After They Error . . . . . . . . . . . . 8-53
Example: Using Events and Callbacks . . . . . . . . . . . . . . . . . . . 8-54
Using Control Pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-56
Signaling the Presence of Connected Devices . . . . . . . . . . . . . 8-56
Controlling the Flow of Data: Handshaking . . . . . . . . . . . . . . 8-59
Debugging: Recording Information to Disk . . . . . . . . . . . . . 8-62
Example: Introduction to Recording Information . . . . . . . . . . 8-62
Creating Multiple Record Files . . . . . . . . . . . . . . . . . . . . . . . . . 8-63
Specifying a Filename . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-63
The Record File Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-64
Example: Recording Information to Disk . . . . . . . . . . . . . . . . . 8-65
Saving and Loading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-68
Using Serial Port Objects on Different Platforms . . . . . . . . . . 8-68
Disconnecting and Cleaning Up . . . . . . . . . . . . . . . . . . . . . . . 8-69
Disconnecting a Serial Port Object . . . . . . . . . . . . . . . . . . . . . . 8-69
Cleaning Up the MATLAB Environment . . . . . . . . . . . . . . . . . 8-69
Property Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-70
The Property Reference Page Format . . . . . . . . . . . . . . . . . . . . 8-70
Serial Port Object Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-71