1.2.5. Newport Diode Lasers: wanglib.instruments.lasers
¶
Interfaces to New Focus diode laser controllers.
-
class
wanglib.instruments.lasers.
velocity6300
(bus)¶ A New Focus Velocity 6300 diode laser controller.
To instantiate, pass an instrument object to the constructor. e.g., for a controller with GPIB address 1, attached to a prologix GPIB controller:
>>> laser = velocity6300(plx.instrument(1, auto=False))
where
plx
is the prologix object. If you’re using prologix, it’s very important to turn off read-after-write!To use with RS232, use
\r
as the termination character. For example:>>> from wanglib.util import Serial >>> laser = velocity6300(Serial('/dev/ttyUSB0', baudrate=19200, term_chars='\r'))
-
busy
¶ is an operation in progress?
-
current
¶ return current level in the diode (mA)
-
get_piezo
()¶ Return piezo voltage as % of full-scale.
-
get_wl
()¶ Get current wavelength of laser (nm)
-
on
¶ is the laser on or off?
-
piezo
¶ Return piezo voltage as % of full-scale.
-
power
¶ return front-facet laser power level (mW)
-
set_piezo
(val)¶ Set piezo voltage as % of full-scale.
-
set_wl
(val)¶ Set current wavelength of laser (nm).
Can take a numerical value, or ‘min’ or ‘max’
-
stop_tracking
()¶ exit track mode to ready mode.
-
wl
¶ Get current wavelength of laser (nm)
-
wl_max
¶ max wavelength of this diode
-
wl_min
¶ min wavelength of this diode
-
write
(cmd)¶ Issue a command to the laser.
- This takes care of two things:
- Formats the command with
@
if using RS-232 - Verifies that the laser responds with
OK
- Formats the command with
-