01-08-2012 02:32 PM
I am reading an encoder pulse signals with the PFI (high speed counter) of a NI USB Daq 6009 and labview. So I tried to do this at the simpler way I found, by using the labview "component" (I don't know the correct name) of the picture attached. I'm counting the pulses just wiring a numeric indicator to the "data" outuput port of this "component" and it seems to be working perfectly. But my problem is when I try to reset this counter. I tryed to wire a boolean control to the "stop" input port of this component and it worked when I click the boolean control to true, but when I turn it back to false, it doesn't count the pulses anymore. It only counts the pulses again when I press the stop buttom and press play to execute the VI again.
Solved! Go to Solution.
01-08-2012 02:33 PM
just complementing my post...
hope you can help me.
Tks!
01-08-2012 07:24 PM - edited 01-08-2012 07:26 PM
The block you are using is an express vi, this most certainly wont do what you want, use discrete vi's.
You will need to initialise the daq outside a while loop and then inside the while loop have states (please search for state machine architecture) such as count, pause, reset, stop etc.
You could modify this example and add states in to the while loop accordingly. Also try the example finder, labview comes with loads of examples for daq's.
Hope this helps.
01-09-2012 05:17 PM
hello aCe
I'm trying to download this vi, but it's not working. And the picture is not loading.
I'll keep trying tomorrow.
thanks in advance
01-18-2012 07:12 PM
thankyou very much
it worked very well!
hugs!