Hello,
I am attempting to control a NI-9482 using Python and am running into some difficulties when trying to control all 4 channels. When I add only a single channel using:
DO_task.do_channels.add_do_chan("cDAQ1Mod6/port0/line0")
and then write a 1 to the channel to turn it on using DO_task.write(1) I get an error.
If I setup all 4 channels by changing line0 to line0:3 it will turn the first line on or off successfully using the write task, however if I give it a list of 4 binary values it won't work. Other python examples I've seen use a list to send digital values to multiple channels/lines but my attached code only seems to control line 0. Some pointers would be helpful.