visa
(To be removed) Create VISA object
visa will be removed in a future release. Use visadev instead. For more information, see Compatibility Considerations.
Syntax
obj = visa('vendor','rsrcname')
Arguments
'vendor'A supported VISA vendor.
'rsrcname'The resource name of the VISA instrument.
'PropertyName'A VISA property name.
PropertyValueA property value supported by
PropertyName.
objThe VISA object.
Description
obj = visa('vendor','rsrcname')
creates the VISA object obj with a resource name given by
rsrcname for the vendor specified by
vendor.
You must first configure your VISA resources in the vendor's tool first, and then
you create these VISA objects. Use instrhwinfo to find the
commands to configure the objects:
vinfo = instrhwinfo('visa','keysight');
vinfo.ObjectConstructorName
If an invalid vendor or resource name is specified, an error is returned and the
VISA object is not created. For a list of supported values for
vendor see Supported Vendor and Resource
Names.
Examples
Create a VISA-serial object connected to serial port COM1 using National Instruments® VISA interface.
vs = visa('ni','ASRL1::INSTR');
Create a VISA-GPIB object connected to board 0 with primary address 1 and
second