User`s guide

180 VEE User’s Guide
4 Analyzing and Displaying Test Data Chapter
Lab 4-1: Calculating Standard Deviation
Generate a cosine waveform at a frequency of 1 kHz,
amplitude of 1 V, a time span of 20 ms, represented by 256
points. Calculate its standard deviation and display it.
5 Select DeviceVirtual SourceFunction Generator. Set the
Frequency appropriately and iconize it.
6 Select DeviceFunction & Object Browser, then select
Built- in Functions, Probability & Statistics, and sdev.
Click Create Formula.
Figure 113 Opening Function and Object Browser from fx Icon
7 Open the object menu for sdev() to consult Help.
8 Connect the Function Generator to sdev(x).
9 Select DisplayAlphaNumeric and connect it to the sdev(x)
data output pin.
10 Run the program. It should look like Figure 114.
NOTE
You can go directly to the Function & Object Browser dialog box by
pressing the
fx icon on the tool bar, shown in Figure 113, or by pressing
Ctrl-I.
Function and Object Browser Icon
NOTE
The sdev(x) object is defined as the square root of the variance of x, and x
may be of the type UInt8, Int16, Int32, Real32, Real64, Coord, or Waveform.
The Function Generator outputs a Waveform data type.