Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Synchronize a counter and Analog Output

Hello all,
I want my Analog Output generation and my Counter0 operations to start at the same time. Any ideas how to accomplish it.
I have tried to feed the output of another counter1 to the gate of counter0 as well as to the clock source of Analog Output (GPCTR1).

This however doesnt seem the solution.
Will appreciate any suggestions.
Thanks
0 Kudos
Message 1 of 4
(3,057 Views)
Hi Mili,

If you post some more functional details about what operations/modes you want to use with your counter and analog output, then I think I or anyone else could help you more.

Also, I assume you are using an E Series board, but do you also have a counter/timer board (NI 660x)?

John Nieri
Applications Engineer
National Instruments
0 Kudos
Message 2 of 4
(3,056 Views)
Hi John,
I use a PCI-6052E DAQ board and wish to use its 2 on-board timers.

I want my Analog output to output 2 sine waves of different frequencies and the same update rate. I have already accomplished that by changing the cycles per buffer and keeping the buffer size and update clock the same. (Was using the internal update clock uptil now)

I use counter1 to perform counting operations based on an external source(TTL).

What i was trying to accomplish is to use Counter0's output (Pulse train) to be the update clock for the analog output and be the gate for counter1.

I also want both counter1 and the analog output to start at the same time.

I hope this helps.
Thanks again.
0 Kudos
Message 3 of 4
(3,055 Views)
Mili,

I think you'll have to experiment, but it might be possible to do both operations with the equipment you have. This would be relatively easy with an NI 660x counter/timer board.

You can use the Route Signal VI to send your counter output to a RTSI line and then select the RTSI line as your counter 1 gate. (this is the generic solution for any number of counters)

For getting an external update clock, check out the continuous external clock example programs that are included with LabVIEW or NI-DAQ.

You can easily start your output with a digital trigger, but the STC counters do not allow for digital triggering of counter operations. You may be able to come up with some programming scheme that gets counter 1 started, but gated low so t
hat it is not counting until the start trigger comes in for the acquisition (such as a start trigger that is forced low until the start trigger for the analog input comes in). This would be a design you would have to work out or see if anyone else has found a way to do it.

You can also search for many example programs/discussions at http://www.ni.com/support by searching in Option 3 for keywords like external, analog, output, and trigger.

Hope this helps.

Regards,

John Nieri
Applications Engineer
National Instruments
0 Kudos
Message 4 of 4
(3,055 Views)