lantz.drivers.cobolt¶
company: | Cobolt. |
---|---|
description: | DPSS lasers, diode laser modules, fiber pigtailed lasers. |
website: | http://www.cobolt.se/ |
copyright: | 2015 by Lantz Authors, see AUTHORS for more details. |
---|---|
license: | BSD, see LICENSE for more details. |
- class lantz.drivers.cobolt.Cobolt0601(resource_name, name=None, **kwargs)¶
Bases: lantz.messagebased.MessageBasedDriver
Driver for any Cobolt 06-01 Series laser.
Parameters: - resource_name (str) – The resource name
- kwargs – keyword arguments passed to the resource during initialization.
Params name: easy to remember identifier given to the instance for logging purposes.
- clear_fault_async(*args, **kwargs)¶
(Async) Clear fault
- enter_mod_mode_async(*args, **kwargs)¶
(Async) Enter modulation mode
- initialize()¶
- restart_async(*args, **kwargs)¶
(Async) Forces the laser on without checking if autostart is enabled.
- DEFAULTS = {'ASRL': {'write_termination': '\r', 'bytesize': 8, 'stop_bits': <StopBits.one: 10>, 'read_termination': '\r', 'parity': <Parity.none: 0>, 'baud_rate': 115200, 'encoding': 'ascii'}}¶
- DEFAULTS_changed¶
- analog_mod¶
analog modulation enable state
Values: {False: ‘0’, True: ‘1’}
- analog_mod_changed¶
- analogli_mod¶
analog modulation enable state
Values: {False: ‘0’, True: ‘1’}
- analogli_mod_changed¶
- autostart¶
Autostart handling
Values: {False: ‘0’, True: ‘1’}
- autostart_changed¶
- clear_fault = functools.partial(<bound method Action.call of <lantz.action.Action object at 0x7f1113222780>>, None)¶
- clear_fault_changed¶
- ctl_mode¶
To handle laser control modes
Values: {‘APC’, ‘ACC’}
- ctl_mode_changed¶
- current_sp¶
Get drive current
Units: mA
- current_sp_changed¶
- digital_mod¶
digital modulation enable state
Values: {False: ‘0’, True: ‘1’}
- digital_mod_changed¶
- enabled¶
Method for turning on the laser. Requires autostart disabled.
Values: {False: ‘0’, True: ‘1’}
- enabled_changed¶
- enter_mod_mode = functools.partial(<bound method Action.call of <lantz.action.Action object at 0x7f11132227f0>>, None)¶
- enter_mod_mode_changed¶
- idn¶
Get serial number
- idn_changed¶
- initialize_changed¶
- interlock¶
Get interlock state
Values: {‘Interlock open’: ‘1’, ‘OK’: ‘0’}
- interlock_changed¶
- ksw_enabled¶
Handling Key Switch enable state
Values: {False: ‘0’, True: ‘1’}
- ksw_enabled_changed¶
- mod_mode¶
Returns the current operating mode
Values: {‘Off’: ‘0’, ‘Modulation’: ‘4’, ‘Aborted’: ‘6’, ‘On/Off Modulation’: ‘3’, ‘Fault’: ‘5’, ‘Waiting for key’: ‘1’, ‘Continuous’: ‘2’}
- mod_mode_changed¶
- operating_hours¶
Get Laser Head operating hours
- operating_hours_changed¶
- power¶
Read output power
Units: mW
- power_changed¶
- power_sp¶
To handle output power set point (mW) in constant power mode
Units: mW
- power_sp_changed¶
- restart = functools.partial(<bound method Action.call of <lantz.action.Action object at 0x7f111321f550>>, None)¶
- restart_changed¶
- status¶
Get operating fault
Values: {‘No errors’: ‘0’, ‘Constant power time out’: ‘4’, ‘Temperature error’: ‘1’, ‘Interlock error’: ‘3’}
- status_changed¶