Campbell-scientific CR1000 Measurement and Control System Manuel d'utilisateur Page 183

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 588
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 182
Section 7. Installation
183
SlowSequence
Do
'Note SDI12SensorSetup / SDI12SensorResponse must be renewed
'after each successful SDI12Recorder() poll.
SDI12SensorSetup(1,1,0,95)
Delay(1,95,Sec)
SDI12SensorResponse(Temp(1))
Loop
EndSequence
SlowSequence
Do
SDI12SensorSetup(1,3,1,95)
Delay(1,95,Sec)
SDI12SensorResponse(Temp(2))
Loop
EndSequence
SlowSequence
Do
SDI12SensorSetup(1,5,2,95)
Delay(1,95,Sec)
SDI12SensorResponse(Temp(3))
Loop
EndSequence
SlowSequence
Do
SDI12SensorSetup(1,7,3,95)
Delay(1,95,Sec)
SDI12SensorResponse(Temp(4))
Loop
EndSequence
EndProg
SDI-12 Extended Command Support
SDI12Recorder() sends any string enclosed in quotation marks in the Command
parameter. If the command string is a non-standard SDI-12 command, any
response is captured into the variable assigned to the Destination parameter, so
long as that variable is declared As String. CRBasic example Use of an SDI-12
Extended Command
(p. 184) shows appropriate code for sending an extended SDI-
12 command and receiving the response. The extended command feature has no
built-in provision for responding with follow-up commands. However, the
program can be coded to parse the response and issue subsequent SDI-12
commands based on a programmer customized evaluation of the response. For
more information on parsing strings, see Input Programming Basics
(p. 206).
Vue de la page 182
1 2 ... 178 179 180 181 182 183 184 185 186 187 188 ... 587 588

Commentaires sur ces manuels

Pas de commentaire