Basic drivers for an Oxford Instruments model IPS120
Note that this module does not represent an Instrument subclass, since the IPS120 is never used by itself—it is always part of a larger system driving both a magnet power supply and temperature controllers, and the power supply often cannot be used in an isolated way.
This is a basic driver for an Oxford Instruments model IPS120 power supply. It should be included in an Instrument class representing a cryostat-magnet system.
Parameters : | name : str
protocol : {‘ISOBUS’, ‘GPIB’, ‘Serial’, ‘Gateway Master’, ‘Gateway Slave’}
isobusAddress : str
visaAddress : str
serialConfig : dict
|
---|
Methods
Return the magnetic field in Tesla.
Returns : | float :
|
---|
Return the field setpoint in Tesla.
Returns : | float :
|
---|
Update the power supply status.
Read the power supply status, and set the local variables to reflect the new status.
Notes
The power supply returns a string of the form XmnAnCnHnMmnPmn. The meanings and values of the parts of this are described here.
Note
Unlike with the PS120, with the IPS120, Immediate mode is indicated by Mode 2 returning the value ‘2’ (sweep limiting, but not sweeping); it does not have its own flag.
Note
For the IPS power supplied, the polarity flags have been superceded by signed numbers for currents and fields.
Return the field sweep rate in Tesla/min.
Returns : | float :
|
---|
Prepare the power supply for use.
Set the activity mode of the power supply.
Parameters : | activity : str
|
---|
Set the control mode for the power supply.
Parameters : | controlMode : str, optional
|
---|
Set the magnetic field in Tesla.
Parameters : | field : float
|
---|
Set the power supply polarity.
Parameters : | polarity : str
.. note:: This method is included for backward compatibility. The :
|
---|
Set the power supply’s sweep mode.
Parameters : | sweepMode : str, optional
|
---|
Set the magnetic field sweep rate in Tesla/min.
Parameters : | sweepRate : float, optional
|
---|
Set the status of the switch heater.
Turn the switch heater on or off, optionally checking whether it is safe to do so. Then wait a specified amount of time for the power supply to carry out the command.
Parameters : | heaterStatus : {‘0’, ‘1’, ‘2’}, optional
delay : float, optional
|
---|