Products & Services Solutions Academia Support User Community Company

Learn more about Instrument Control Toolbox   

disconnect - Disconnect device object from instrument

Syntax

disconnect(obj)

Arguments

obj

A device object or an array of device objects.

Description

disconnect(obj) disconnects the device object specified by obj from the instrument.

Remarks

If obj is disconnected from the instrument, its Status property is configured to closed. You can reconnect to the instrument with the connect function. If obj is an array of device objects and one of the objects cannot be disconnected from the instrument, the remaining objects in the array will be disconnected and a warning is displayed.

Examples

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.

connect(d)

Get the current configuration of the oscilloscope.

values = get(d);

Disconnect from the instrument and clean up.

disconnect(d)
delete([d g])

See Also

Functions

connect, delete, instrhelp

Properties

Status

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS