Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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.

Functions

binblockreadRead binblock data from instrument
binblockwriteWrite binblock data to instrument
clearRemove instrument objects from MATLAB workspace
clrdeviceClear instrument buffer
deleteRemove instrument objects from memory
dispDisplay instrument object summary information
fcloseDisconnect interface object from instrument
fopenConnect interface object to instrument
fprintfWrite text to instrument
fscanfRead data from instrument, and format as text
getInstrument object properties
instrhwinfoInformation about available hardware
instrresetDisconnect and delete all instrument objects
propinfoInstrument object property information
setConfigure or display instrument object properties
tmtoolOpen Test & Measurement Tool
triggerSend trigger message to instrument
visaCreate VISA object
visa.spollPerform serial poll on VISA objects
fgetlRead line of text from instrument and discard terminator
fgetsRead line of text from instrument and include terminator
flushinputRemove data from input buffer
flushoutputRemove data from output buffer
freadRead binary data from instrument
fwriteWrite binary data to instrument
inspectOpen Property Inspector
isvalidDetermine whether instrument objects are valid
lengthLength of instrument object array
loadLoad instrument objects and variables into MATLAB workspace
methodsClass method names and descriptions
obj2mfileConvert instrument object to MATLAB code
queryWrite text to instrument, and read data from instrument
readasyncRead data asynchronously from instrument
recordRecord data and event information to file
saveSave instrument objects and variables to MAT-file
scanstrRead data from instrument, format as text, and parse
sizeSize of instrument object array
stopasyncStop asynchronous read and write operations
instrcallbackDisplay event information when event occurs
instrfindRead instrument objects from memory to MATLAB workspace
instrfindallFind visible and hidden instrument objects
instrhelpHelp for instrument object type, function, or property
instridDefine and retrieve commands that identify instruments
instrnotifyDefine notification for instrument events
memmapMap memory for low-level memory read and write operations
mempeekLow-level memory read from VXI register
mempokeLow-level memory write to VXI register
memreadHigh-level memory read from VXI register
memunmapUnmap memory for low-level memory read and write operations
memwriteHigh-level memory write to VXI register

Examples and How To

Working with the GPIB Interface

The VISA-GPIB object establishes a connection between the MATLAB® workspace and the instrument via its GPIB interface.

Working with VXI and PXI Interfaces

The VISA-VXI object establishes a connection between the MATLAB workspace and the instrument via its VXI interface.

Working with the GPIB-VXI Interface

The VISA-GPIB-VXI object establishes a connection between the MATLAB workspace and the instrument via its GPIB-VXI interface.

Working with the Serial Port Interface

The VISA serial object establishes a connection between the MATLAB workspace and the instrument via the serial port.

Working with the USB Interface

The VISA-USB object establishes a connection between the MATLAB workspace and the instrument via its USB interface.

Working with the TCP/IP Interface for VXI-11 and HiSLIP

The VISA-TCPIP object establishes a connection between the MATLAB workspace and the instrument using the instrument's IP configuration.

Working with the RSIB Interface

The VISA-RSIB object establishes a connection between the MATLAB workspace and the instrument via the Rohde & Schwarz VISA passport.

Working with the Generic Interface

You can use the generic VISA interface in both the command line and the Test & Measurement Tool.

Reading and Writing ASCII Data Using VISA

This example explores ASCII read and write operations with a VISA object.

Reading and Writing Binary Data Using VISA

This example explores binary read and write operations with a VISA object.

Asynchronous Read and Write Operations Using VISA

This example explores asynchronous read and write operations using a VISA-GPIB object.

Concepts

VISA Overview

Brief description of the Virtual Instrument Standard Architecture (VISA) standard.

Driver Requirements

Required versions of vendors' drivers.

VISA Driver Limitations

Known limitations with supported VISA drivers.

Instrument Control Toolbox Properties

These properties are available in the toolbox.

Troubleshooting

Troubleshooting IVI, VISA, and the Quick-Control Interfaces

Try these tips if you have problems using the toolbox with the IVI, VISA, and Quick-Control interfaces. Includes information about supported platforms, adaptor requirements, configuration and connection, and other interface-specific tips.

Was this topic helpful?