04.01.2015 Views

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendix A. CRBasic Programming Instructions<br />

Timer<br />

Returns the value of a timer.<br />

Syntax<br />

variable = Timer(TimNo, Units, TimOpt)<br />

A.9 Voice-Modem Instructions<br />

Note Refer to the <strong>Campbell</strong> <strong>Scientific</strong> voice-modem manuals for complete<br />

information.<br />

DialVoice<br />

Defines the dialing string for a COM310 voice modem.<br />

Syntax<br />

DialVoice(DialString)<br />

VoiceBeg, EndVoice<br />

Marks the beginning and ending of voice code executed when the <strong>CR1000</strong><br />

detects a ring from a voice modem.<br />

Syntax<br />

VoiceBeg<br />

[voice code to be executed]<br />

EndVoice<br />

VoiceHangup<br />

Hangs up the voice modem.<br />

Syntax<br />

VoiceHangup<br />

VoiceKey<br />

Recognizes the return of characters 1 ‐ 9, *, or #. VoiceKey is often used to add a<br />

delay, which provides time for the message to be spoken, in a<br />

VoiceBegin/EndVoice sequence.<br />

Syntax<br />

VoiceKey(TimeOut*IDH_Popup_VoiceKey_Timeout)<br />

VoiceNumber<br />

Returns one or more numbers (1 ‐ 9) terminated by the # or * key.<br />

Syntax<br />

VoiceNumber(TimeOut*IDH_POPUP_VoiceKey_Timeout)<br />

VoicePhrases<br />

Provides a list of phrases for VoiceSpeak().<br />

Syntax<br />

VoicePhrases(PhraseArray, Phrases)<br />

VoiceSetup<br />

Controls the hang‐up of the COM310 voice modem.<br />

Syntax<br />

VoiceSetup(HangUpKey, ExitSubKey, ContinueKey, SecsOnLine,<br />

UseTimeout, CallOut)<br />

507

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!