Instrument: LaserSourceΒΆ
In [1]:
%load_ext autoreload
%autoreload 2
from start import start
dfbs = start('Laser Array 01')
# dfbs = start('Laser Array 11')
# dfbs = start('Laser Array 12')
It is alive
ILX Lightwave,7900 System,79006021,3.42
Here is what to test:
startup
setChannelEnable
getChannelEnable
setChannelWls
getChannelWls
setChannelPowers
getChannelPowers
getAsSpectrum
off
allOn
enableState
wls
powers
wlRanges
allOff
In [2]:
print('Blocked out channels are', dfbs.driver.useChans)
ena = dfbs.getChannelEnable()
dfbs.off()
dfbs.setChannelEnable({0: 1})
print(dfbs.wlRanges)
Blocked out channels are range(0, 4)
DFB settling for 3 seconds.
done.
DFB settling for 3 seconds.
done.
((1549.27, 1550.97), (1552.48, 1554.18), (1550.07, 1551.77), (1546.87, 1548.57))
In [3]:
dfbs.getAsSpectrum().simplePlot('.-')
Out[3]:
[<matplotlib.lines.Line2D at 0x7feba2fe00b8>]
In [4]:
dfbs.off()
DFB settling for 3 seconds.
done.