02-17-2012 08:58 AM
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!
Solved! Go to Solution.
02-21-2012 11:20 AM
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