LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Trouble using DAQ Assistant for reading digital values

Hi, I am trying to implement a LabView program that reads a digital input from my NI I/O board.  My program is initially supposed to check whether the value (bit 4 of an input port) is high, and then check again 5 seconds later to see if it is high.  I am using the "DAQ Assistant" in my LabView application.  My program has no problems reading the initial digital value (bit 4 of an input port).  However,  I don't know how to check whether the same bit is still high 5 seconds later.  I tried copying and pasting the same DAQ Assistant to check again the input bit again, but I get the sense that you can't use two DAQ Assistants to access the same digital port bit.

I also wanted to note that I am using the wait ms time function to get my 5000 ms delay.  

Can anyone give me some tips or pointers?

BTW, I am a beginner when it comes to LabView.

0 Kudos
Message 1 of 3
(2,482 Views)
just bumping up the message.

0 Kudos
Message 2 of 3
(2,469 Views)
Unless you've got the wait function inside a sequence structure, you don't have any dataflow and aren't controlling when the wait will happen. Look at the attachment. It has the first DAQ Assistant inside a loop so it will run until the pin is high, wait 5 seconds with the Time Delay function, and then take another reading. And, you can multiple DAQ Assistant functions as long as they are sequention. You can't have multiple ones executing in parallel though.
0 Kudos
Message 3 of 3
(2,457 Views)