Skip to content

Commit

Permalink
Corrected port initialization for EdmundOptics photodiode
Browse files Browse the repository at this point in the history
  • Loading branch information
ALiOz committed May 20, 2014
1 parent 5de1454 commit 78973e1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions concert/devices/photodiodes/edmundoptics.py
Expand Up @@ -11,15 +11,16 @@ class PhotoDiode(base.PhotoDiode):
Impementation of Edmund Optics photodiode with V output signal
"""

def __init__(self, host, port):
def __init__(self, host, port, wago_port):
self._host = host
self._port = port
self._wago_port = wago_port
super(PhotoDiode, self).__init__()

def _get_intensity(self, port):
def _get_intensity(self):
"""
Read output intensity from the photodiode
"""
connection = IO(self._host, self._port)
intensity = float(connection._read_port(port)) / 1000
intensity = float(connection._read_port(self._wago_port)) / 1000
return intensity * q.V

0 comments on commit 78973e1

Please sign in to comment.