Hi all,
I want to configure output per output of my IO card. for example I want output p1.0 to be active drive and p1.1 to be open collector. I can’t figure out how to do that in python.
I found this on internet :
and this is my soft :
Active_Drive = 12573
Open_collector = 12574
import nidaqmx
task = nidaqmx.Task()
nidaqmx.constants.DigitalDriveType(Active_Drive)
task.do_channels.add_do_chan("CarteIO/port0/line0")
task.start()
value1 = False
print('Valeur de la sortie :', value1)
task.write(value1)
task.stop
task.close()
I can’t select each output. I think I’m missing a few simple things but I tried a lot of things, I don’t see.
I also tried to add direction of port, or other things but i don't see.
Do you have an idea ?
Thanks