Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

how do I use easyio for digital i/o

I am trying to use the easyio function ReadFromDigitalLine() to access my PCI-6514 digital I/O card in LabWindows/CVI. The parameters device and portNumber in the function don't hook up with the info from the NI Explorer for the board. The board works in the Explorer's test panel. The error from LabWindows is a -10001 syntax error, it does not recognize the portnumber string. What can I do to make this work?
Thanks for any help.
0 Kudos
Message 1 of 2
(3,364 Views)
Greetings,

The NI 6514 is only supported under the new NI-DAQmx driver. ReadFromDigitalLine is a function provided by the Traditional NI-DAQ driver. Thus, you will be unable to use it with the NI 6514. I would suggest that you examine the ReadDigChan.prj example. It demonstrates how to read from one of the NI 6514's digital lines with NI-DAQmx. It is available in the following location:

C:\Program Files\National Instruments\CVI70\samples\DAQmx\Digital\Read Values\Read Dig Chan

Good luck with your application.

Spencer S.
0 Kudos
Message 2 of 2
(3,364 Views)