Campbell Scientific CR10X Measurement and Control System User Manual
Page 128

SECTION 8. PROCESSING AND PROGRAM CONTROL EXAMPLES
8-20
TABLE 8.11-4. FFT Bin Averaging Results from Simulated Ocean Buoy Wave Data
BIN #
FREQUENCY
FFT*0.1
BIN #
FREQUENCY
FFT*0.1
1
0.00195
0
26
0.0507
0
2
0.0039
0
27
0.05265
0
3
0.00585
0
28
0.0546
0
4
0.0078
0
29
0.05655
0
5
0.00975
0
30
0.0585
0
6
0.0117
0
31
0.06045
0
7
0.01365
0
32
0.0624
0
8
0.0156
0
33
0.06435
0
9
0.01755
0
34
0.0663
0
10
0.0195
0
35
0.06825
0
11
0.02145
0
36
0.0702
0
12
0.0234
0
37
0.07215
0
13
0.02535
0
38
0.0741
0
14
0.0273
0
39
0.07605
0
15
0.02925
0
40
0.078
0
16
0.0312
0
41
0.07995
0
17
0.03315
0
42
0.0819
0
18
0.0351
0
43
0.08385
0
19
0.03705
0
44
0.0858
0
20
0.039
0
45
0.08775
0
21
0.04095
0
46
0.0897
0.226
22
0.0429
0
47
0.09165
0.527
23
0.04485
0
48
0.0936
6.246
24
0.0468
0
49
0.09555
21.52
25
0.04875
0
50
0.0975
123.1
PROGRAM
;Simulate ocean wave data with 4 super
;imposed sine wave signals (Hz/zero to peak
;amplitude: .1/11, .125/9,
;Flag 1 high = generate and store "original time
;series data". Flag 2 high = calculate and store
;FFT results.
;Output Array Definitions:
;
104 = "ORIGINAL TIME SERIES DATA"
;
113= FFT POWER SPECTRA RESULTS
*
Table 1 Program
01:
2
Execution Interval (seconds)
;If flag 1 is set, the simulated ocean wave data
;is calculated and sent to Final Storage.
01:
If Flag/Port (P91)
1:
11
Do if Flag 1 is High
2:
30
Then Do
02:
Do (P86)
1:
1
Call Subroutine 1
03:
Beginning of Loop (P87)
1:
0
Delay
2:
2048
Loop Count
04:
Do (P86)
1:
10
Set Output Flag High
05:
Real Time (P77)
1:
1
Seconds
06:
Sample (P70)
1:
1
Reps
2:
284--
Loc [ _________ ]
07:
End (P95)
08:
End (P95)
09:
Do (P86)
1:
21
Set Flag 1 Low
;When flag 2 is set the FFT is computed and the
;results are sent to Final Storage.