Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

I am using a PCI-MIO-16E-4 card for my DAQ. The question that I have is how do I software configure each line for either digital input or digital output? I have downloaded Eser_DIO from the site but this allows me to write only or read only.

If you are using CVI, you could set in MAX your port as an input (or output) port and then programmatically set single line as output (or input) with the line

DIG_Line_Config (board, port, line, direction);

I made this in an application wih a PCI-6031E and it worked well. I suppose your card too is able to manage single lines of the port with different directions.

I saw that even with the port configured that way it was possible to read it as a complete port. I didn't looked at the value for bit that match the output lines: I suppose they are not relevant. But other bits are good.

Roberto


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 2
(4,784 Views)