Instrument Control Toolbox    

Disconnecting and Cleaning Up

When you no longer need an instrument object, you should disconnect it from the instrument, and clean up the MATLAB environment by removing the object from memory and from the workspace. These are the steps you take to end an instrument control session.

Disconnecting an Instrument Object

When you no longer need to communicate with the instrument, you should disconnect it with the fclose function.

You can examine the Status property to verify that the object and the instrument are disconnected.

After fclose is issued, the resources associated with g are made available, and you can once again connect an instrument object to the instrument with fopen.


  Reading Data Cleaning Up the MATLAB Environment