Skip to content

Commit

Permalink
adding limits setting.
Browse files Browse the repository at this point in the history
  • Loading branch information
pcruzparri authored Nov 4, 2023
1 parent 4cfa514 commit 1ed175e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion yaqd_mcc/_mcc_152_analogout.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ def __init__(self, name, config, config_filepath):
import daqhats # type: ignore

self.d = daqhats.mcc152(self.address)
self._state["hw_limits"] = [self.d.info()[4], self.d.info()[5]]
if float('inf') not in self._config['limits']:
self._state['hw_limits'] = self._config['limits']
else:
self._state['hw_limits'] = [self.d.info()[4], self.d.info()[5]]

def get_address(self):
return self.address
Expand Down

0 comments on commit 1ed175e

Please sign in to comment.