Connect device object to instrument
A device object or an array of device objects.
Update the state of the object or the instrument.
connect(obj,'update') updates the state of the object or the instrument. update can be object or instrument. If update is object, the object is updated to reflect the state of the instrument. If update is instrument, the instrument is updated to reflect the state of the object. In this case, all property values defined by the object are sent to the instrument on open. By default, update is object.
Create a device object for a Tektronix® TDS 210 oscilloscope that is connected to a National Instruments® GPIB board.
g = gpib('ni',0,2); d = icdevice('tektronix_tds210',g);
Connect to the instrument.
List the oscilloscope settings that can be configured.
props = set(d);
Get the current configuration of the oscilloscope.
values = get(d);
Disconnect from the instrument and clean up.
disconnect(d) delete([d g])