Main Content

VISA Interface

Communicate with instruments that support the VISA standard

You can use the VISA interface with a variety of types of interfaces, such as TCP/IP, USB, GPIB, and others. You create a visadev object using arguments that determine the type of interface you are communicating over. For example, for a VISA-GPIB object, the visadev function takes a VISA resource string that includes the board index and address.

Functions

expand all

visadevlistList available VISA resources (Since R2021a)
visadevCreate connection to device using VISA (Since R2021a)
configureTerminatorSet terminator for ASCII string communication with VISA resource (Since R2021a)
visastatusCheck status of VISA resource (Since R2021a)
visatriggerSend trigger to GPIB or VXI instruments (Since R2021a)
readRead data from VISA resource (Since R2021a)
readlineRead line of ASCII string data from VISA resource (Since R2021a)
readbinblockRead one binblock of data from VISA resource (Since R2021a)
writeWrite data to VISA resource (Since R2021a)
writelineWrite line of ASCII data to VISA resource (Since R2021a)
writebinblockWrite one binblock of data to VISA resource (Since R2021a)
writereadWrite command to VISA resource and read response (Since R2021a)
flushClear buffers for communication with VISA resource (Since R2021a)
setDTRSet serial DTR pin (Since R2019b)
setRTSSet serial RTS pin (Since R2019b)
getpinstatusGet serial pin status (Since R2019b)

Properties

visadev PropertiesAccess VISA resource properties (Since R2021a)

Apps

VISA ExplorerConnect to and communicate with instruments over VISA (Since R2022b)

Topics

Connect to and Configure VISA Interfaces

Communicate with VISA Resource

Troubleshooting

Troubleshooting VISA Interface

Troubleshoot the VISA interface.

Resolve VISA Connection Errors

Troubleshoot connecting to a device using VISA.

Resolve VISA Warning: Unable to Read Any Data

Troubleshoot when you receive some data and you get the warning message: 'visadev' unable to read any data.

Resolve VISA Warning: Unable to Read All Data

Troubleshoot when you receive some data and you get the warning message: 'visadev' unable to read all requested data.