Section 2. Programming the Datalogger
2-6
2.3 Speak Now Command
The speak now command can be used for outputting a voice data string upon
conditions determined by the datalogger. This command will do nothing
unless a speak data or speak text command has been implemented in the
program. Example 2-5 is a program that shows how the speak now command
could be formatted. The conditions for using the speak now command might
be a timed interval (i.e., P92 IF Time), a conditional “IF” statement (i.e., P89
IF X=F), or a flag or port condition. This allows the user to maintain control of
how often the message is broadcast. This keeps the system from continuously
broadcasting and tying up the radio link and draining the power supply.
If you were to create a datalogger program using the instructions shown in
Example 2-1 followed by the instructions shown in Example 2-5, the
Vosponder would speak the three data values (battery voltage, datalogger
temperature, and time) every 60 minutes.
Example 2-5. Program to initiate immediate broadcast of the most recent
data values
;AT THE START OF EVERY HOUR
2: If time is (P92)
1: 0
Minutes (Seconds --) into a
2: 60
Interval (same units as above)
3: 30
Then
Do
;SEND DATA VALUES OVER VOICE RADIO LINK
3: SDI-12 Recorder (P105)
1: 1
SDI-12
Address
2: 0
Start Measurement (aM0!)
3: 1
Port
; Control Port 1
4: 1
Loc [ BatVolts ]
;Starting location, but ignored
5: 1.0
Mult
;in “Speak Now” mode
6: 0.0
Offset
4: Extended Parameters 4 Digit (P68)
1:
88
Option
;Send “X” to indicate an extended command
2:
83
Option
;Send “S”, Speak Now Command
3:
0000
Option
;End of command marker
4:
0000
Option
5:
0000
Option
6:
0000
Option
7:
0000
Option
8:
0000 Option
7: End (P95)
The program in Example 2-5 will issue the SDI-12 command “1XS” and will
cause the Vosponder to speak its programmed voice data string every 60
minutes. Anyone with a radio set to the same frequency as the remote site
would be able to hear the broadcast message.
Appendix F is an example of a program that uses all three SDI-12 commands.
Содержание Vospoder
Страница 4: ...This is a blank page ...
Страница 12: ...Section 1 Hardware 1 4 This is a blank page ...
Страница 36: ...Section 4 Vosponder Configuration and Programming 4 12 This is a blank page ...
Страница 50: ...Appendix D Terminal Commands Menu Tree D 2 This is a blank page ...
Страница 56: ...Appendix F Datalogger Program Example F 4 This is a blank page ...
Страница 57: ...This is a blank page ...