Hi Chris,
Me and another AE, have worked for a little bit on the option I mentioned, on having two counter tasks, using the same trigger and altering the number of ticks to generate the second pulse at 5 ticks of counter 0 with a slight delay everytime.
I have attached the vi's. Counter test produces the two pulse trains, and the cont acq&graph is from the find examples to allow us to view the pulse trains.
We are using two counters from a signal accessory into our cDAQ using an 9215 AI simultaneous card.
Both counters are using the same time base - 20Mhz.
Counter 0 outputs 1 pulse for every 5000 high and 5000 low. i.e. Outputs at a frequency of 2KHz.
Counter 1 outputs 1 pulse for every 25010 high and 25010 low. i.e. five times slower + a bit of a delay.
Everytime we count 5 - the delay adds up, eventually you can see the two counter outputs return to being inphase.
The only way we can think of ending once the counters have returned to being inphase is to time the task out.. knowing that it takes 'x' amount of time until they're back in phase.
I hope this helps you out,
but if you wana talk more, I'd be interested to know what time base your planning to use and I notice that the 6071E only supports analogue triggering..
Message Edited by Hillman on
08-05-2008 03:37 PM
Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉