beautypg.com

A.9 voice-modem instructions – Campbell Scientific CR800 and CR850 Measurement and Control Systems User Manual

Page 485

background image

Appendix A. CRBasic Programming Instructions

485

 

Timer 
Returns the value of a timer. 

Syntax 

variable = Timer(TimNo, Units, TimOpt)

A.9 Voice-Modem Instructions

Note Refer to the Campbell Scientific voice-modem manuals for complete
information.

DialVoice 
Defines the dialing string for a COM310 voice modem. 

Syntax 

DialVoice(DialString)

VoiceBeg, EndVoice 
Marks the beginning and ending of voice code executed when the CR800 detects 
a ring from a voice modem. 

Syntax 

VoiceBeg

[voice code to be executed]

EndVoice

VoiceHangup 
Hangs up the voice modem. 

Syntax 

VoiceHangup

VoiceKey 
Recognizes the return of characters 1 ‐ 9, *, or #. VoiceKey is often used to add a 
delay, which provides time for the message to be spoken, in a 
VoiceBegin/EndVoice sequence. 

Syntax 

VoiceKey(TimeOut*IDH_Popup_VoiceKey_Timeout)

VoiceNumber 
Returns one or more numbers (1 ‐ 9) terminated by the # or * key. 

Syntax 

VoiceNumber(TimeOut*IDH_POPUP_VoiceKey_Timeout)

VoicePhrases 
Provides a list of phrases for VoiceSpeak()

Syntax 

VoicePhrases(PhraseArray, Phrases)

VoiceSetup 
Controls the hang‐up of the COM310 voice modem. 

Syntax 

VoiceSetup(HangUpKey, ExitSubKey, ContinueKey, SecsOnLine,

UseTimeout, CallOut)