Serial Port Interface

Direct communication using the serial port interface

Functions

clear Remove instrument objects from MATLAB workspace
delete Remove instrument objects from memory
fclose Disconnect interface object from instrument
fopen Connect interface object to instrument
fprintf Write text to instrument
fread Read binary data from instrument
fscanf Read data from instrument, and format as text
fwrite Write binary data to instrument
get Instrument object properties
instrhwinfo Information about available hardware
instrreset Disconnect and delete all instrument objects
propinfo Instrument object property information
readasync Read data asynchronously from instrument
set Configure or display instrument object properties
stopasync Stop asynchronous read and write operations
serial Create serial port object
binblockread Read binblock data from instrument
binblockwrite Write binblock data to instrument
disp Display instrument object summary information
fgetl Read line of text from instrument and discard terminator
fgets Read line of text from instrument and include terminator
flushinput Remove data from input buffer
flushoutput Remove data from output buffer
instrcallback Display event information when event occurs
instrfind Read instrument objects from memory to MATLAB workspace
instrfindall Find visible and hidden instrument objects
instrhelp Help for instrument object type, function, or property
instrid Define and retrieve commands that identify instruments
instrnotify Define notification for instrument events
inspect Open Property Inspector
isvalid Determine whether instrument objects are valid
length Length of instrument object array
load Load instrument objects and variables into MATLAB workspace
methods Class method names and descriptions
obj2mfile Convert instrument object to MATLAB code
query Write text to instrument, and read data from instrument
save Save instrument objects and variables to MAT-file
scanstr Read data from instrument, format as text, and parse
size Size of instrument object array
tmtool Open Test & Measurement Tool

Blocks

Query Instrument Query or read instrument data
To Instrument Send simulation data to instrument
Serial Configuration Configure parameters for serial port
Serial Receive Receive binary data over serial port
Serial Send Send binary data over serial port
Was this topic helpful?