VISA Interface (Includes VXI, PXI, USB)

Communicate with instruments that support the VISA standard

You can use the VISA interface with a variety of types of interfaces, such as GPIB, Serial Port, TCP/IP, and others. You create a visa object using arguments that determine the type of interface you are communicating over. For example, for a VISA-GPIB object, the visa function takes a board vendor name and a VISA resource string that includes the board index and address. For examples using VISA with the different interface types, see the topics under Examples and How To.


binblockread Read binblock data from instrument
binblockwrite Write binblock data to instrument
clear Remove instrument objects from MATLAB workspace
clrdevice Clear instrument buffer
delete Remove instrument objects from memory
disp Display instrument object summary information
fclose Disconnect interface object from instrument
fopen Connect interface object to instrument
fprintf Write text to instrument
fscanf Read data from instrument, and format as text
get Instrument object properties
instrhwinfo Information about available hardware
instrreset Disconnect and delete all instrument objects
propinfo Instrument object property information
set Configure or display instrument object properties
tmtool Open Test & Measurement Tool
trigger Send trigger message to instrument
visa Create VISA object
visa.spoll Perform serial poll on VISA objects
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
fread Read binary data from instrument
fwrite Write binary data to instrument
inspect Open Property Inspector
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
isvalid Determine whether instrument objects are valid
length Length of instrument object array
load Load instrument objects and variables into MATLAB workspace
memmap Map memory for low-level memory read and write operations
mempeek Low-level memory read from VXI register
mempoke Low-level memory write to VXI register
memread High-level memory read from VXI register
memunmap Unmap memory for low-level memory read and write operations
memwrite High-level memory write to VXI register
methods Class method names and descriptions
obj2mfile Convert instrument object to MATLAB code
query Write text to instrument, and read data from instrument
readasync Read data asynchronously from instrument
record Record data and event information to file
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
stopasync Stop asynchronous read and write operations

Was this topic helpful?