예제 #1
0
 def shutterOn(self, channel_id):
     """
     Sets the shutter digital line to 1.
     """
     nicontrol.setDigitalLine(self.shutter_settings[channel_id].board,
                              self.shutter_settings[channel_id].channel,
                              True)
예제 #2
0
 def shutterOn(self, channel_id):
     """
     Sets the shutter digital line to 1.
     """
     nicontrol.setDigitalLine(self.shutter_settings[channel_id].board,
                              self.shutter_settings[channel_id].channel,
                              True)
예제 #3
0
 def digitalOn(self, channel_id):
     """
     Sets the digital line to 1.
     """
     if not self.filming:
         nicontrol.setDigitalLine(self.digital_settings[channel_id].board,
                                  self.digital_settings[channel_id].channel,
                                  True)
예제 #4
0
 def digitalOn(self, channel_id):
     """
     Sets the digital line to 1.
     """
     if not self.filming:
         nicontrol.setDigitalLine(self.digital_settings[channel_id].board,
                                  self.digital_settings[channel_id].channel,
                                  True)
예제 #5
0
 def generateTTL(self, line_out):
     ttl_duration = 1  # duration of the TTL pulse in secs
     if self.kilroyProtocols.nidaq_checkbox.isChecked():
         print('line out is:', line_out)
         # send now a TTL pulse out
         print('Sending a TTL pulse')
         print('in 5 sec')
         sleep(1)
         print('in 4 sec')
         sleep(1)
         print('in 3 sec')
         sleep(1)
         print('in 2 sec')
         sleep(1)
         print('in 1 sec')
         sleep(1)
         nicontrol.setDigitalLine(line_out, True)
         print('Done, sending a TTL out')
         sleep(ttl_duration)
         nicontrol.setDigitalLine(line_out, False)
     else:
         pass
예제 #6
0
 def off(self):
     nicontrol.setDigitalLine(self.board, self.line, False)
예제 #7
0
 def on(self, dummy):
     nicontrol.setDigitalLine(self.board, self.line, True)
예제 #8
0
 def off(self):
     nicontrol.setDigitalLine(self.board, self.line, False)
예제 #9
0
 def on(self, dummy):
     nicontrol.setDigitalLine(self.board, self.line, True)