LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How Do I configure the PFI0 terminal on the USB-6009 as am event counter input

Solved!
Go to solution

I'm trying to monitor the 8 inputs on the USB-6009 and when the PFI0 terminal is triggered start saving the data.

Is there and why to read the 8 inputs while monitoring the PFI0 terminal? I appreciate any help!

0 Kudos
Message 1 of 2
(2,645 Views)
Solution
Accepted by topic author cjp1

Hi cjp1,

 

You can certainly do this.  I assume you already have your 8 inputs being read correctly.  Now all you have to do is put a case statement in your loop that is controlled by your pfi0 line.  If that line is high, then record the data, if it is low, then only display the data for your monitoring.  If you need help reading the pfi line, open the example finder under Help >> find examples.  Then go to Hardware Input and Output, DAQmx, Digital Measurements, Read Dig Channel.  If you need help logging the data, go to Fundamentals, File Input and Output, and then depending on what file type you want to write to, find the appropriate example (ie Write to Text File).

 

Let us know if you need more assistance,

 

Ryan

Applications Engineer

Applications Engineer
National Instruments
Message 2 of 2
(2,622 Views)