Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate asymmetric sawtooth waveform with user defined Max & Min amplitude?

Hi all,

Can anyone tell how to generate asymmetric sawtooth waveform which starts from 0 to max amplitude & goes to min amplitude with variable frequency. I am using  PXIe 6386 DAQ card to generate sawtooth. I tried using Voltage - Continuous Output.vi from LabVIEW example but it generates sawtooth wave with only one Peak Amplitude. In my case Max & Min Peak amplitude should be different. So please tell how to modify Sawtooth Waveform VI in order to get asymmetric sawtooth waveform. Attached here with sample Sawtooth waveform in which it goes from (0 to +2V, +2V to -4V).

 

0 Kudos
Message 1 of 2
(881 Views)

Use the offset input of the Basic Function Generator.vi used in that example in conjunction with your existing amplitude input.

For your 0 to +2V case- Amplitude is 1 and offset would be 1.

For your +2V to -4 case- Amplitude is 3 and offset would be -1.

 

Try it out and let us know if it works.

 

-AK2DM

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 2 of 2
(855 Views)