Example #1
0
 def _set_intensity(self, value):
     """
     Set the intensity by voltage for the LED
     """
     connection = IO(self._host, self._port)
     connection.write_port(self._wago_port, value.magnitude * 1092)
     self._intensity = value
Example #2
0
 def _set_intensity(self, value):
     """
     Set the intensity by voltage for the FiberLight
     """
     connection = IO(self._host, self._port)
     connection.write_port(self._wago_port, value.magnitude * 51)
     self._intensity = value
Example #3
0
 def _get_intensity(self):
     """
     Read output intensity from the photodiode
     """
     connection = IO(self._host, self._port)
     intensity = float(connection._read_port(self._wago_port)) / 1000
     return intensity * q.V