python
#
# following 4 commands should be cut and pasted into beginning of
python session
import icecube.domtest.lightsource
p=icecube.domtest.lightsource.pulser('lantronix',3010)
mono=icecube.domtest.lightsource.Digikrom('lantronix',3011)
fw=icecube.domtest.lightsource.FilterWheel('lantronix',3012)
#
# following commands are examples of what you might want to do
fw.setPosition(1) # filter wheel
position 1
mono.setUnits(2) #
monochromator units are now Angstroms
mono.goto(4000) # set
wavelength to 4000 Angstroms
mono.goto(3500) # set
wavelength to 3500 Angstroms
p.allOff()
# turn off laser and LED and monochromator lamp
# (there is no other off command)
p.setBrightness(4095) # LED brightness; 0=minimum,
4095=maximum
p.setPulseFrequency(100) #
laser or LED flash rate in Hz
p.syncOn()
# turn on SYNC pulse
p.triggerOn()
# turn on laser trigger pulse
p.markerOn()
# turn on LED, standard 30nsec width
p.bigOn()
# turn on LED pulses, 1 microsec width
p.fastOn()
# turn on 2nd LED, which has 1.5 nsec pulse width
p.relayOn()
# turn on monochromator lamp
print p
del(p)
help(icecube.domtest.lightsource)
example
session:
ultuna1 testdaq /home/testdaq/ python
Python 2.2.2 (#1, Feb 24 2003, 19:13:11)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>> import icecube.domtest.lightsource
>>> p=icecube.domtest.lightsource.pulser('lantronix',3010)
>>> mono=icecube.domtest.lightsource.Digikrom('lantronix',3011)
>>>
fw=icecube.domtest.lightsource.FilterWheel('lantronix',3012)
>>> p.markerOn()
>>> p.setPulseFrequency(1000)
>>> p.setBrightness(4095)
>>> fw.setPosition(3)
>>> fw.setPosition(2)
>>> fw.setPosition(4)
>>> p.syncOn()
>>> fw.setPosition(5)
>>>
>>> p.setPulseFrequency(300000)