This application uses real time processing that is applied to raw data samples within the Data Acquisition Processor (DAP) board prior to transferring the data to the host PC. DAPstudio provides assistance for configuring this pre-defined processing supplied by the DAPL system. DAPstudio automatically can generate the declarations for the additional data pipes and variables needed to support the processing.
This application captures large amounts of data and averages them to reduce the effects of random noise. The
AVERAGE processing command is used to compute the arithmetic mean for data in blocks of 100 samples. The clean measurements can then be transferred to the host PC and displayed.
In applications where averaging is not desirable, the
SKIP command can be used to reduce the output rate.
DAPstudio automatically declares the necessary pipes, variables, and constants in the processing configuration. The
Average command requires three parameters: an input pipe, a constant to specify the block size, and an output pipe. The input and output pipes are defined in the
Output tabs. DAPstudio declares the constant when building the
Average command as shown in below.
DAPL Listingedit box, type "
A" between "
pdefine MslProc" and "
end". A drop-down list containing all DAPL commands starting with A will appear automatically. Or press
F4on the keyboard to bring up the drop-down list.
AVERAGE, then press the Enter key. The
Averagecommand is inserted in the
DAPL Listingedit box.
(" and press the Enter key. The
IP0input pipe is inserted in the
," and press the Enter key. The new constant
cCnt0is declared and inserted in the
," and press the Enter key. The new pipe
pAvg0is declared and inserted in the
)" and select the
Processing|Declarationsedit box, change the value of
Processing|Send To PCtab.
Ctrl-A. Then press the space bar. The
IP0checkbox is now unchecked, and instead the
pAvg0checkbox is now checked.
Alt-Son the keyboard.