Basic drivers for an Oxford Instruments model PS120 power supply
Note that this module does not represent an Instrument subclass, since the PS120 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 cannot usually be used in isolation.
This is a basic driver for an Oxford Instruments model PS120 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
Get the activity status.
Returns : | str :
|
---|
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 update the local polarity variables to reflect this change.
Returns : | dict :
|
---|
Notes
The power supply returns a string of the form XmnAnCnHnMmnPmn. The meanings and values of the parts of this are described here.
The Polarity 1 value actually contains the values of three separate polarities: desired, magnet, and commanded (in order). “pos” represents forward polarity, and “neg” means reverse polarity. The three values are defined to be
- “desired”: the final or target polarity (polarity of the setpoint current)
- “magnet”: the polarity of the power supply last time the magnet was left persistent
- “commanded”: the present polarity of the power supply unless the output is clamped
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
|
---|
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
|
---|