Skip to content

Commit

Permalink
replacing ":" in name of NI Task
Browse files Browse the repository at this point in the history
  • Loading branch information
kay-jahnke committed Nov 10, 2020
1 parent 76a2ae7 commit 629f0d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hardware/switches/digital_switch_ni.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def states(self, value):
f'having the switch names as keys and the state names as values.')

with self.lock:
with nidaqmx.Task('NISwitchTask' + self.name) as switch_task:
with nidaqmx.Task('NISwitchTask' + self.name.replace(':', ' ')) as switch_task:
binary = 0
for channel_index in range(self.number_of_switches):
switch_task.do_channels.add_do_chan(self._channels[channel_index])
Expand Down

0 comments on commit 629f0d0

Please sign in to comment.