Main Content

断开连接

Disconnect device object from instrument

Syntax

断开连接(obj)

Arguments

obj

A device object or an array of device objects.

Description

断开连接(obj)断开连接s the device object specified byobjfrom the instrument.

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.

断开连接(d) delete([d g])

Tips

Ifobjis disconnected from the instrument, itsStatusproperty is configured toclosed。您可以连接到仪器with theconnectfunction. Ifobjis 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.

Version History

Introduced before R2006a