LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Spikes in sine wave using the function generator VI

Hello,

I’m trying to ramp up a sinusoidal waveform from 0 to a specific amplitude and then maintain that amplitude for as long as needed. However, I’ve noticed that during the ramp-up phase, the signal often contains spikes, as shown in the picture below.

I suspect the issue lies in how the waveforms are concatenated, leading to improper transitions between segments. Despite my efforts, I’m struggling to identify the exact problem or how to fix it.

Could you please share your thoughts or suggestions on how I might resolve this?

Thank you!

 

Danny0806_0-1737980732111.png

 

0 Kudos
Message 1 of 2
(156 Views)

Looks like a transient glitch on your DAC.

 

A lot of DACs have some very slight imbalances int heir inner workings where MSBs are most affected. Since your glitches seeming to be coming at zero-crossings, all bits are being switched simultaneously which is often the worst-case scenario.

 

Try shifting the whole sine wave into positive values and see if it doesn't go away. Or shift just a little and see if the glitches stay at zero or if they follow the phase of the generator....

0 Kudos
Message 2 of 2
(124 Views)