pasqui,
No, I'm not 100% sure. I'm also not sure that the NI recommendation will do quite what I
think you want. Nor am I 100% sure that I understand exactly what you want. Let's start there:
1. At exactly what instant should the counter output first go high? When you give a 'program' input to 'Counter Control.vi'? Or not until the first source edge is actually counted?
2. Under what conditions should the output go low? The instant that source edge # 'Pulsos' is received? It should then remain low until the next time you start counting, right?
If you follow the NI recommendation, the counter output will go to its idle state when you program it, the output will toggle after a particular # of pulses,
then will return to its idle state when you reset it.
To make it pulse high while counting, you would need to configure it for negative output polarity. Then it will go high when you program it, and drop low after the right # of pulses. However, it will also then go back to high when you reset the counter. And then it will remain high when your app is done running. So the next time you run your app, the output will already be high even before you start the counter. Is that kind of behavior ok for your app?
-Kevin P.
ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.