05-16-2022 01:26 AM
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).
05-17-2022 01:57 PM
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