InstrumentMgr

class tam.InstrumentMgr(gpib_ctl_addr='192.168.0.175')[source]
close()[source]

Close the connection to which ever instrument controller is currently in use.

close_instrument(instrument)[source]

Close the connection to an instrument.

Parameters:

instrument (object) – An instance of the instrument control class.

property gpib_ctl

Returns a reference to the GPIB controller.

The first access to this property will create and initialize an instance of tam.GPIB. Subsequent accesses return the same instance.

open_instrument(model, instr_id=None)[source]

Open a connection to the specified instrument.

Parameters:
  • model (str) – The instrument model, for example: ‘HP8560A’

  • instr_id (str or int) – The instrument identifier. The format of this identifier will depend on the instrument model. For a GPIB instrument the identifier will be an integer, for other types of instrument the identifier will be a string.

Returns:

An instance of the instrument control class.

Raises:

tam.InstrumentInitializeException, tam.UnknownInstrumentModelException

property visa_rm

Returns a reference to the Visa resource manager.

The first access to this property will create and initialize an instance of tam.VisaDevice. Subsequent accesses return the same instance.