LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Waveform graph plot shifting issues

Hello,

   I am using a function generator with different waveform using the NI built in function waveform generator with the sine, triangle, square and sawtooth waveform. Unfortunately the streaming waveform does not appear the way it is supposed to. it seems like there is some sort of shifting in the square and triangle wave or maybe something else. I thought it was the plot settings that I needed to change but I realized that wasnt the case after I played around with the settings and picked different plots and lines.

 My Fs is at 1000, My # of samples is 500, F=20.75, Amplitude= 11.49

Would someone give me some clarity on how to fix that

Download All
0 Kudos
Message 1 of 6
(3,539 Views)

What do you mean by a shift?  The plots look fine to me.  It just looks like there is a gain of 100 on your Y axis.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 6
(3,529 Views)

I guess my question is: if you're looking at the triangle wave shouldnt it the rising and falling sides of the wave be a perfect straight line.

Also I forgot to mention the gain I applied to it..

0 Kudos
Message 3 of 6
(3,507 Views)
You have a serious misunderstanding of digital waveform generation. Based on the frequency, sample rate, number of samples, you get an array of points - not an analog signal that is continuous. What you are seeing is the display of those individual points with interpolation between points. Any digital waveform is going to have steps in it. Your signal is fine.
0 Kudos
Message 4 of 6
(3,502 Views)

Thanks for clarifying that. My mistake. I just assumed there would not be any steps in it and the signal would be continuous..

0 Kudos
Message 5 of 6
(3,494 Views)
To better understand, you could place a waveform data type indicator on your front panel and connect it to the output of the signal generator. You'll see the Y array that was generated with all of the discrete values.
0 Kudos
Message 6 of 6
(3,487 Views)