LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to trigger counter with an edge and pause it after specific time?

Hi,

I have a problem. We have a PCI 6602 card. We use digital input (PFI18) which triggers counter (ctr2) which we would like to stop after specific amount of time (for example 5us). I found quite a few solutions which use the same input to start counting on rising edge and stop and falling (or vice versa). But it won't do it for us since we want to stop it after a specific time (we are sure that falling edge will be after 5us but we don't know and we don't want to know how much more). We tried to do it as it is attached: The trigger starts the counter. At the same time timer (ctr3) measures time and after specific time the timed loop gets data from the triggered counter. Of course the counter is still counting but we don't care 😉

So the question is the same as propably the same as in most posts: why doesn't it work? 🙂

Best regards,
PG
0 Kudos
Message 1 of 2
(2,527 Views)

Hi PG,

Do you need to be able to retrigger this 5us acquisition? I believe that your best implementation would involve starting 2 counters with a single start trigger. One counter will be doing gated acquisition and the other will be performing a 5us pulse. The pulse will be supplied to the gate of the acquisition counter. The acquisition will only occur during the pulse, which can be accurately created with a counter.

Steve B

0 Kudos
Message 2 of 2
(2,497 Views)