visadev
Description
A visadev
object represents a connection to a device or
instrument using the VISA interface. The following interface types are supported: TCP/IP
(using VXI11 and HiSLIP), TCP/IP Socket, USB, GPIB, Serial, VXI, and PXI. Identify devices
available to connect to using visadevlist
.
Then, connect to the device or instrument using visadev
.
Creation
Description
creates a connection to a device using its VISA resource name. Establish a connection
using an installed VISA driver. If you have multiple VISA drivers installed, MATLAB® uses the preferred VISA set in your VISA vendor's configuration utility
software. v
= visadev(resourceName
)
creates a connection to a device using its VISA alias, if it has one. If the configuration
utility does not yet recognize the device, you cannot connect using the alias and must use
the resource name.v
= visadev(resourceAlias
)
Input Arguments
Properties
See visadev Properties for a full list of properties.
Object Functions
read | Read data from VISA resource |
readline | Read line of ASCII string data from VISA resource |
readbinblock | Read one binblock of data from VISA resource |
write | Write data to VISA resource |
writeline | Write line of ASCII data to VISA resource |
writebinblock | Write one binblock of data to VISA resource |
writeread | Write command to VISA resource and read response |
configureTerminator | Set terminator for ASCII string communication with VISA resource |
flush | Clear buffers for communication with VISA resource |
visastatus | Check status of VISA resource |
visatrigger | Send trigger to GPIB or VXI instruments |
setDTR | Set serial DTR pin |
setRTS | Set serial RTS pin |
getpinstatus | Get serial pin status |