09-26-2008 02:42 AM
Hi,
I have two counter which are generateing pulses at the same rate but with 90° phase. For this I use the "DAQmx Create Channel(CO-Pulse Generation-Time).vi". How can I disable both counters after a given impulse count and at the same time? At the moment when I disable them one is running a little bit longer than the other.
Cheers,
harle
09-29-2008 02:24 PM
can you define, "a little bit longer" in time (1 sec, 0.5 sec, 1 msec)?? how "simultaneous" are you looking to achieve??
you should be able to do the close or stop in parallel and have then stop pretty much simultaneously.
09-30-2008 02:06 AM
09-30-2008 07:29 AM
How are you writing the counter output information, ie are you using the DAQmx Write.vi > Counter > Single Sample > Single channel, or multiple channel, etc?
Can you post a screen shot of your code??
With the DAQmx vi's, you should be able to have them stop at the same time pretty easily.
09-30-2008 08:39 AM
At the moment it looks like this:
09-30-2008 12:37 PM
If you need the times exact within 5-10 usec, you will *have* to use a hardware-signal based method. You won't be able to count on any software-timed method to do this. The simplest way I can think of is to configure both pulse generation tasks to have a "pause trigger". If you configure them to pause when low, then you just need to assert that line to high when you want the pulse trains to stop.
Depending on your DAQ board, you may be able to do this with no wiring. Many boards have DIO lines that can also be mapped over to be used as counter inputs.
-Kevin P.
10-01-2008 02:11 AM
Thanks for the help. I presumed somethink like this.
How can I configure the counters to pause on a low input?