LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

read digital line e series

Hi,
 
This has got to be the simplest question, but how do I read the line state of the PFI lines on my 6024E board?  The 'digital channel' 0 is the only port I can access but I'm using those.  If I set the channel to '1' there's an error.
 
How do you get at those other bits?
0 Kudos
Message 1 of 8
(3,202 Views)

If I set the channel to '1' there's an error.


What is the error u r getin?
Message 2 of 8
(3,183 Views)
A window pops up that says:
--------------------
Error - 10007 occurred at DIO Port Config
 
Possible reason(s):
 
NI-DAQ LV: A channel, port, or counter is out of range for the device type or device configuration; or the combnation of channel is not allowed; or the scan order must be reversed (0 last)
----------------------
 
Can someone walk me through how to configure the digital i/o pins, and how to read individual pin states?
 
Thanks much!
0 Kudos
Message 3 of 8
(3,176 Views)
I'm a tad confused. The 6024E only has one digital I/O port, so you would obviously get an error if you tried to read port 1 since it doesn't exist. The DAQmx examples that ship with LabVIEW show you how to perform digital I/O. Have you looked at these?
0 Kudos
Message 4 of 8
(3,160 Views)

Well that would explain it!  Maybe I'm misreading this document:  http://www.ni.com/pdf/manuals/370719c.pdf

but it looks like the PFI lines are available on the 6024E in addition to the 8 I/O lines.  But then you're right, at the end it says only 8 I/O lines.

0 Kudos
Message 5 of 8
(3,153 Views)
Not sure which part of the document you're referring to. The table listing the lines indicates the PFI lines as "DIO" but that's in terms of their type, not their function. The PFI lines are "Programmable Function Interface" lines, and aren't really designed to be used as digital I/O. They're there to perform functions, such as triggering analog input or analog output, or counters, etc.
0 Kudos
Message 6 of 8
(3,151 Views)
Oh, I thought since they are on the BNC-2110 terminal block that I could use them for digital I/O. 
0 Kudos
Message 7 of 8
(3,145 Views)
And by the way, thank you.
0 Kudos
Message 8 of 8
(3,144 Views)