Disconnect interface object from instrument
An interface object or an array of interface objects.
obj from the instrument.
This example creates the GPIB object
g to the instrument, writes and reads text data, and then
g from the instrument using
g = gpib('ni',0,1); fopen(g) fprintf(g,'*IDN?') idn = fscanf(g); fclose(g)
At this point, you can once again connect an interface object to the instrument.
If you no longer need
g, you should remove it from memory with
delete function, and remove it
from the workspace with the
obj was successfully disconnected, then the
Status property is configured to
RecordStatus property is configured to
off. You can reconnect
obj to the
instrument using the
An error is returned if you issue
fclose while data is being
written asynchronously. In this case, you should abort the write operation with the
stopasync function, or wait for
the write operation to complete.
Not recommended starting in R2019b