Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

How to start 2 counters with precision delay?6602

I need to run 2 counter outputs triggered from 2 different sources(card 6602). It seems like both of them can only catch same trigger.How possible start 2 counters with precision delay?
0 Kudos
Message 1 of 4
(3,516 Views)
Irena,
It is definitely possible to use two trigger sources to tigger two separate counter tasks.  You would create two separate tasks and use a DAQmx Trigger VI for each counter task.  You could then specify a different trigger source for each task.  There is also a property on the DAQmx Create Channel: CO--Pulse Generation VI to set an initial delay in seconds.

Doug M
Applications Engineer
National Instruments
Doug M
Applications Engineer
National Instruments
For those unfamiliar with NBC's The Office, my icon is NOT a picture of me 🙂
0 Kudos
Message 2 of 4
(3,508 Views)
Doug,
 
Just want to clarify a point about counter triggers. I had given Irena a different answer in a similar thread and want to know for sure.  The last I knew, only a single trigger could be used for any/all continuous counter tasks, though different "triggers" could be used for the specific case of re-triggerable single pulse generation. Has something changed with recent DAQmx versions? Or was your response meant only to cover the re-triggerable single pulse case?
 
Thanks for any further info...
 
-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.
0 Kudos
Message 3 of 4
(3,501 Views)
Kevin,
To double check, I actually set some hardware up and tried having two contiuous pulse train generation tasks each with a different trigger, and it worked great, so I assume you can have as many triggers as you have tasks for counters.  Thanks for the question.

Doug M
Doug M
Applications Engineer
National Instruments
For those unfamiliar with NBC's The Office, my icon is NOT a picture of me 🙂
0 Kudos
Message 4 of 4
(3,488 Views)