| Instrument Control Toolbox | ![]() |
Base Functions
Base functions apply to all supported instrument objects (GPIB, VISA-VXI, and so on). For example, the fscanf function is supported for all instrument objects. The base functions are organized into the following categories based on usage.
Creating Instrument Objects
gpibCreate a GPIB object
serialCreate a serial port object
tcpipCreate a TCP/IP object
udpCreate a UDP object
visaCreate a VISA object
State Change
fcloseDisconnect an instrument object from the instrument
fopenConnect an instrument object to the instrument
recordRecord data and event information to a file
Reading and Writing Data
binblockreadRead binblock data from the instrument
binblockwriteWrite binblock data to the instrument
fgetlRead one line of text from the instrument and discard the terminator
fgetsRead one line of text from the instrument and include the terminator
fprintfWrite text to the instrument
freadRead binary data from the instrument
fscanfRead data from the instrument, and format as text
fwriteWrite binary data to the instrument
queryWrite text to the instrument, and read data from the instrument
readasyncRead data asynchronously from the instrument
scanstrRead data from the instrument, format as text, and parse
stopasyncStop asynchronous read and write operations
Getting and Setting Properties
getReturn instrument object properties
inspectOpen Property Inspector
setConfigure or display instrument object properties
Getting Information and Help
instrhelpReturn instrument object function and property help
instrhwinfoReturn information about available hardware
instrschoolInterface for displaying toolbox tutorials
propinfoReturn instrument object property information
Graphical Tools
instrcommGraphical tool for communicating with an instrument using text data
instrcreateGraphical tool for creating and configuring an instrument object
General Purpose Functions
clearRemove instrument objects from the MATLAB workspace
deleteRemove instrument objects from memory
dispDisplay instrument object summary information
flushinputRemove data from the input buffer
flushoutputRemove data from the output buffer
instrcallbackDisplay event information when an event occurs
instrfindReturn instrument objects from memory to the MATLAB workspace
instrresetDisconnect and delete all instrument objects
isvalidDetermine if instrument objects are valid
lengthLength of instrument object array
loadLoad instrument objects and variables into the MATLAB workspace
obj2mfileConvert instrument object to MATLAB code
saveSave instrument objects and variables to a MAT-file
sizeSize of instrument object array
| Example: Recording Information to Disk | Object-Specific Functions | ![]() |