Displaying report 1-1 of 1.
Reports until 16:41, Monday 20 May 2024
GRAVITES Optics 1550nm
epolini - posted 16:41, Monday 20 May 2024 (11641)
Change Thorlabs laser current

[Eleonora, Eric]

Commands to change the laser current with pyserial:

>>> ser.write(b'write_param laser.current 0.555\r')
32
>>> out5=''
>>> while ser.inWaiting() > 0:
...     out5 += ser.read(1).decode()
...
>>> print(out5)

000: OK

>>> ser.write(b'read_param laser.current\r')
25
>>> out5=''
>>> while ser.inWaiting() > 0:
...     out5 += ser.read(1).decode()
...
>>> print(out5)

000: OK:0.555000,0x0000

Displaying report 1-1 of 1.