ThorlabsS4fcProxy

class catkit2.testbed.proxies.ThorlabsS4fcProxy(testbed, service_id)

Bases: catkit2.testbed.service_proxy.ServiceProxy

Attributes Summary

bandwidth

center_wavelength

log

Methods Summary

turn_off()

Disable emission.

turn_on([wait_for_warmup, timeout, ...])

Enable emission and wait until the hardware reports it enabled.

Attributes Documentation

bandwidth
center_wavelength
log = <Logger catkit2.testbed.proxies.thorlabs_s4fc (WARNING)>

Methods Documentation

turn_off()

Disable emission.

turn_on(wait_for_warmup=False, timeout=30, poll_interval=0.1)

Enable emission and wait until the hardware reports it enabled.

The emission datastream is only the requested state. The wait polls the hardware enable readback, which is not a measurement of optical power.

wait_for_warmupbool

Whether to wait for the laser to stabilize (adds 30s).

timeoutfloat

Maximum time to wait, in seconds.

poll_intervalfloat

Time between readbacks, in seconds.

ValueError

If timeout or poll_interval is not finite and positive. Emission is not changed.

TimeoutError

If the hardware does not report enabled within the timeout.