Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

2 analog output channels with different frequencies

Hi,
hope that somebody can help me:
I created two physical tasks, analog output channels.
I should give signals (triangle signals) to a scanner. The problem ist that I need these triangle signals with two different frequencies.
I can create the signal with each of the task, but not together. Can I solve this problem somehow?
Ah, and of course the 2 tasks should start together...

Thanks for your help!!

Telly
0 Kudos
Message 1 of 2
(2,373 Views)
You didn't mention the type of device you're using, so I'll assume it's a standard MIO. A typical MIO only has one AO timing engine, so you'll have to create one task for both channels and use a single update rate for the task. You will have to make the output frequencies different by passing different data for both channels.

For example, let's say your update rate is 1KHz. The data for channel 0 is 1000 data points of a single cycle of a triangle wave. The data for channel 1 is 1000 data point of two cycles of a triangle wave. When you run the task, you will get a 1Hz triangle wave on channel 0 and a 2Hz triangle wave on channel 1.

Good luck,
Joe
0 Kudos
Message 2 of 2
(2,367 Views)