Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Generate two waveforms on the fly with daqmx?

Can anyone help me with a vi to Generate two different waveforms on the fly with daqmx?.
0 Kudos
Message 1 of 5
(3,643 Views)
One of my colleagues recently wrote this example. It has not been tested fully, but it may help you out:

This example demonstrates how to continuously output a waveform using an internal sample clock. The automatic regeneration of data has been disabled, so new data has to be provided throughout the duration of the continuous Analog Output operation. This allows the generation of any arbitrary frequency as this VI computes new data for each iteration of the loop, maintaining phase continuity of the signal. This also allows the user to change the waveform type and frequency of the signal while the VI is running, still maintaining phase continuity.

Instructions for Running:
1. Select the Physical Channel to correspond to where your signal is output on the DAQ device.
2. Enter the Minimum and Maximum Voltage range.
3. Specify the desired Sample Clock Rate of the output Waveform. Higher sample clock rates will produce a smoother waveform.
4. Manually specify the Analog Output buffer size, in number of samples. A larger buffer would help non-regenerative operations avoid errors due to occasional high CPU load.
Note:
The Analog Output buffer has to be at least as big as the amount of data being written to the board per iteration. The recommended buffer size would be at least twice the amount of data being written to the board per iteration.
5. Enter the Waveform Information. See the documentation of the Basic Function Generator SubVI for information on each parameter.
6. Change the Waveform Information and see the effect on the Waveform Graph and the Analog Output channel.
0 Kudos
Message 2 of 5
(3,619 Views)
Thanks for that, I found that the VI would not update on the fly. I have come up with this puppy, if anyone can improve on it I would be greatful.
Regards Brady
0 Kudos
Message 3 of 5
(3,594 Views)
any chance you could doctor it so i could see it with LabVIEW 7.0

Thanks
0 Kudos
Message 4 of 5
(3,536 Views)
Hopefully this worked!

E.Lee
Eric
DE For Life!
0 Kudos
Message 5 of 5
(3,522 Views)