User`s guide

130
Add a While Loop and connect the (already created) Stop Button with the Loop Condition
icon. (Functions Palette
Programming
Structures
While Loop). The modules can also
be accessed by Search toolbox in Function Palette.
Add a DAQ Assistant in the While Loop and configure the subVI with the wizard.
(Functions Palette
Measurement I/O
NI DAQ mx
DAQ Assistant). For the measurement
type, select Acquire Signals Analog Input Voltage. For the physical channel, select the
channel of incoming signal. Since channel AI0 of NI 6229 is connected to the input, select this
specific channel. Next, configure the channel settings: N Samples for acquisition mode. Note that
the DAQ box needs to be connected to the computer and turned on before starting of LabVIEW
program. Save the work and restart the program if the module fails to initialize.
Drag down the downward arrow on the icon and create Numeric Controls for “number of
samples” (samples to read) and “rate” (Rate Hz). The calculated timeout is the number of
seconds for recorded data. Create a Graphical Indicator for data output of the DAQ Assistant and
change the label of the graph into “Time Domain”.
Create a Spectral Measurement for the data output of DAQ Assistant and create two
Graphical Indicators for the power spectrum output of the function. In the configuration wizard,