-
Notifications
You must be signed in to change notification settings - Fork 3
pycobolt API
Charlotte-Cobolt edited this page May 17, 2021
·
3 revisions
Return a list of laser objects for all cobolt lasers connected to the computer
Creates a laser object using either COM-port or serial number to connect to laser.
Will automatically return proper subclass, if applicable.
If you are uncertain about your laser type, initiate as CoboltLaser.
Cobolt06DPL Cobolt06MLD
Clear laser fault
Connects the laser on using a specified COM-port (preferred) or serial number.
Will throw exception if it cannot connect to specified port
or find laser with given serial number
Enter constant current mode, current in mA. If current=None, the laser will use previously saved settings
Enter constant power mode, power in mW. If power=None, the laser will use previously saved settings
Disconnect the laser
Get laser current in mA
Get laser current setpoint in mA
Get laser fault
Get operating mode
Get laser operational hours
Get laser power in mW
Get laser power setpoint in mW
Get autostart state
Returns: 0 if closed, 1 if open
Ask if laser is connected
Ask if laser is turned on
Sends a message to the laset and awaits response until timeout (in s).
Returns:
The response recieved from the laser is string format or
"Syntax Error: No response" on a failed attempt,
"Syntax Error: Write failed" if no connection is available
Set laser current in mA
Set laser power in mW
Turn off the laser
Turn on the laser with the autostart sequence.The laser will await the TEC setpoints and pass a warm-up state
For lasers of type 06-DPL. Inherits all methods from CoboltLaser
Enable analog modulation mode by enable=1, turn off by enable=0
Enable digital modulation mode by enable=1, turn off by enable=0
Get the setpoint of the modulation TEC in °C
Return the modulation currrent setpoints in mA as [highCurrent,lowCurrent]
Get the laser modulation settings as [analog, digital]
Read the temperature of the modulation TEC in °C
Enter Modulation mode, with possibiity to set the modulation high current level in mA ().
If high=None, the laser will enter at last saved settings
Set the modulation high current in mA
Set the modulation low current in mA
Set the temperature of the modulation TEC in °C
For lasers of type 06-MLD. Inherits all methods from CoboltLaser.
Enable analog modulation mode by enable=1, turn off by enable=0
Enable digital modulation mode by enable=1, turn off by enable=0
Get the impedance of the analog modulation
returns: 0 for HighZ and 1 for 50 Ohm
Get the modulation power setpoint in mW
Get the laser modulation settings as [analog, digital]
Enter modulation mode with the possibility to set modulation power in mW.
If power=None, the laser will use last saved settings
Enable On/Off modulation mode by enable=1, turn off by enable=0
Set the impedance of the analog modulation by
arg=0 for HighZ and
arg=1 for 50 Ohm
Set the modulation power in mW