Beispiel #1
0
 def analogOut(self, values=None):
     """
     Output a single analog value on each line.
     """
     self.stopAndDelete()
     for i, line in enumerate(self.lines):
         nicontrol.setAnalogLine(line, values[i])
Beispiel #2
0
 def amplitudeOn(self, channel_id, amplitude):
     """
     Called when the module should turn on a channel.
     """
     nicontrol.setAnalogLine(self.channel_parameters[channel_id].board,
                             self.channel_parameters[channel_id].channel,
                             0.001 * amplitude)
Beispiel #3
0
 def analogOut(self, values = None):
     """
     Output a single analog value on each line.
     """
     self.stopAndDelete()
     for i, line in enumerate(self.lines):
         nicontrol.setAnalogLine(line, values[i])
Beispiel #4
0
 def amplitudeOff(self, channel_id):
     """
     Called when the module should turn off a channel.
     """
     nicontrol.setAnalogLine(self.channel_parameters[channel_id].board,
                             self.channel_parameters[channel_id].channel,
                             self.channel_parameters[channel_id].min_voltage)
Beispiel #5
0
 def amplitudeOn(self, channel_id, amplitude):
     """
     Called when the module should turn on a channel.
     """
     nicontrol.setAnalogLine(self.channel_parameters[channel_id].board,
                             self.channel_parameters[channel_id].channel,
                             0.001 * amplitude)
Beispiel #6
0
 def analogOn(self, channel_id):
     """
     Sets the analog voltage to the maximum.
     """
     if not self.filming:
         nicontrol.setAnalogLine(self.analog_settings[channel_id].board,
                                 self.analog_settings[channel_id].channel,
                                 self.analog_settings[channel_id].max_voltage)
Beispiel #7
0
 def amplitudeOff(self, channel_id):
     """
     Called when the module should turn off a channel.
     """
     nicontrol.setAnalogLine(
         self.channel_parameters[channel_id].board,
         self.channel_parameters[channel_id].channel,
         self.channel_parameters[channel_id].min_voltage)
Beispiel #8
0
 def analogOn(self, channel_id):
     """
     Sets the analog voltage to the maximum.
     """
     if not self.filming:
         nicontrol.setAnalogLine(
             self.analog_settings[channel_id].board,
             self.analog_settings[channel_id].channel,
             self.analog_settings[channel_id].max_voltage)