Beispiel #1
0
    def defaultAOTFLines(self):
        for i in range(1,6):
            # set analog lines to default (max).
            nicontrol.setAnalogLine(self.board, i, self.powerToVoltage(i, 1.0))

            # set digital lines to high.
            nicontrol.setDigitalLine(self.board, i, True)
    def defaultAOTFLines(self):
        # set AOTF analog lines to default (max).
        for i in range(1,4):
            nicontrol.setAnalogLine(self.board, i, self.powerToVoltage(i, 1.0))

        for i in range(10,13):
            # set AOTF digital (FSK) lines to high.
            nicontrol.setDigitalLine(self.board, i, True)
    def prepare(self):
        # This sets things so we don't get a burst of light at the
        # begining with all the lasers coming on.

        # Set all analog channels to zero.
        for i in range(4):
            nicontrol.setAnalogLine(self.board, i, 0.0)

        # Close 752 shutter & set FSK lines on the AOTF.
        for channel in self.dig_shutter_channels:
            nicontrol.setDigitalLine(self.board, channel, False)
Beispiel #4
0
 def off(self):
     nicontrol.setDigitalLine(self.board, self.line, False)
Beispiel #5
0
 def on(self, dummy):
     nicontrol.setDigitalLine(self.board, self.line, True)
Beispiel #6
0
 def prepare(self):
     # This sets things so we don't get a burst of light at the
     # begining with all the lasers coming on.
     for i in range(self.number_channels):
         nicontrol.setAnalogLine(self.board, i, 0.0)
         nicontrol.setDigitalLine(self.board, i, False)