Ejemplo n.º 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])
Ejemplo n.º 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)
Ejemplo n.º 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])
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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)