msl.equipment.resources.optronic_laboratories.ol_current_source module
Communicate with a DC current source from Optronic Laboratories.
- class msl.equipment.resources.optronic_laboratories.ol_current_source.OLCurrentSource(record)[source]
Bases:
ConnectionSerial
Communicate with a DC current source from Optronic Laboratories.
Attention
The COM interface must be selected (using the buttons on the front panel) to be RS-232 after the Current Source is initially powered on. Even if this is the default power-on interface, it must be re-selected before communication will work. This is required for models with firmware revision 5.8, other firmware versions may be different.
The
properties
for the connection supports the following key-value pairs in the Connections Database:'address': int, the internal address of the device [default: 1] 'delay': float, the number of seconds to wait between send/receive commands [default: 0.05]
as well as those key-value pairs supported by the parent
ConnectionSerial
class.Do not instantiate this class directly. Use the
connect()
method to connect to the equipment.- Parameters:
record (
EquipmentRecord
) – A record from an Equipment-Register Database.
- get_setup(lamp, typ)[source]
Get the lamp setup.
- select_lamp(number)[source]
Select a lamp.
- Parameters:
number (
int
) – The lamp number to select, between 0 and 9.
- set_setup(lamp, typ, value)[source]
Set the lamp setup.
- Parameters:
- property system_status_byte
The system status byte that is returned in every reply.
It is constructed as follows:
bit 7: Busy flag (the device is performing a function)
bit 6: Reserved
bit 5: Reserved
bit 4: Lamp status (0=off, 1=on)
bit 3: Reserved
bit 2: Reserved
bit 1: Seeking current (1=current is ramping)
bit 0: Reserved
- Type: