Quantcast
Channel: Digital I/O topics
Viewing all articles
Browse latest Browse all 2182

select type drive Digital Output NI USB 6501 Python

$
0
0

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 :

Mat1987_1-1612186897586.png

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

 

 


Viewing all articles
Browse latest Browse all 2182

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>