Section 5. Programming the Datalogger
x – this filter marks the start of the data set. In this case the data set is two floating point numbers.
f – this filter searches for the first ASCII floating point number to convert.
f – this filter searches for the second ASCII floating point number to convert.
*Table 1 Program
01: 2 Execution Interval (seconds)
;do filter set-up only if flag one is clear.
1:If Flag/Port (P91)
1:21 Do if Flag 1 is Low
2: 30 | Then Do |
;set up string filter.
2:
1: 1 | Reps |
2: 0 | Address |
3: 1 | Send/Receive Port 1 |
4: 2054 | Command |
5: 9200 | 1st Parameters |
6: 0 | 2nd Parameters |
7: 0 | Values per Rep |
8:0 Loc [ _________ ]
9:1.0 Mult
10:0.0 Offset
;delay required by filter set-up command.
3:Excitation with Delay (P22)
1:1 Ex Channel
2:0 Delay W/Ex (units = 0.01 sec)
3:1 Delay After Ex (units = 0.01 sec)
4:0 mV Excitation
;set flag one high so the filter set-up is only done once.
4:Do (P86)
1:11 Set Flag 1 High
;end of IF.
5:End (P95)
;poll SDM-SIO4 to see if data is available.
6:
1: | 1 | Reps |
|
2: | 0 | Address |
|
3: | 1 | Send/Receive Port 1 | |
4: | 1 | Command |
|
5: | 0 | 1st Parameters |
|
6: | 0 | 2nd Parameters |
|
7: | 1 | Values per Rep |
|
8: | 2 | Loc [ poll | ] |
9: | 1.0 | Mult |
|
10: | 0.0 | Offset |
|