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)
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)
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
def off(self): nicontrol.setDigitalLine(self.board, self.line, False)
def on(self, dummy): nicontrol.setDigitalLine(self.board, self.line, True)