LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Get Standard Deviation of a Signal

How would I get the standard deviation of a signal?
0 Kudos
Message 1 of 4
(2,676 Views)
Hi virus,

you already calculate the SD somewhere in the lower half of the block diagram. What else do you want to know?

There's a 2nd function to calc the stddev in the math palette -> prob & stats. It uses an input array...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(2,666 Views)
I dont think my pogram works. When I input a square wave and use my simple SD program with the Point to Point VI, the SD is zero. Then I tried the one in the math pallette, and the values are erratic.

I think I have to model the equation here (Standard Deviation of a signal) in Equation 2-2.

I attached a very simple signal SD VI, but it doesnt work.
0 Kudos
Message 3 of 4
(2,626 Views)
Hi virus86,

when I input a square wave I get non-zero results. And I get the same result by using PtByPt or standard function... (The PtByPt output is somewhat interesting though.)

In the context help of the stddev function you will find the same formula given as you linked in your last post - no need to recode Smiley Wink

Run my attachment!
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 4
(2,613 Views)