Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 972 Bytes

smclose.md

File metadata and controls

19 lines (14 loc) · 972 Bytes

smclose([inst])

This closes a connection to a MATLAB instrument. It is not in general necessary to ever call this function unless an instrument crashes or reboots, in which case it can be useful to smclose and then smopen it. An example might be a VISA-USB instrument that was disconnected and reconnected, or a DecaDAC that has become desynchronized on communications. inst can be:

  • Empty, in which case all instruments in smdata.inst will be opened.
  • A vector of numbers, in which case instruments with those numbers will be opened. See smprintinst.
  • A string, in which case the instrument with that name is opened.

Example

smclose(2);  smopen(2);  % Close and re-open an instrument that crashed.

See Also