10-29-2015 12:12 PM
I need to be able to detect a signal coming in on a PFI line - not to trigger Analog Input or Output, but just to Do Stuff. So I have written a test VI using a Counter on the NI PCI-6723 and DAQmx Event structure. I used an Example VI as a basis. I have 2 issues. 1. when I send the desired signal (wired to PFI1), I get 2 events, I just want (and expect) one event. 2. when I send the signal to PFI0, I get 2 events as well! Should not get any. The VI is Not looking at PFI0. Any ideas as to what I'm doing wrong?
Here is a screenshot of the Test VI (I have also attached the file)
10-29-2015 01:51 PM
First some notes on your code:
This seems like an issue with your signal. Have you used a voltmeter to test your setup?
Right-click the event structure and open the Event Inspection Manager to see how close the events are triggered together. If the two events trigger essentially at the same time, maybe you have some bounce in your signal.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
11-02-2015 03:34 PM
Thank you for your tips & advice. I got together with our hardware guys and sure enough the wiring into the PFI terminals wasn't quite right.
So now my test VI is working as expected.
Gretchen