Section 7. Installation
320
'Measure SDI-12 sensors
SDI12Recorder
(Temp_Tmp(1),1,0,cmd(1),1.0,0)
SDI12Recorder
(Temp_Tmp(2),1,1,cmd(2),1.0,0)
SDI12Recorder
(Temp_Tmp(3),1,2,cmd(3),1.0,0)
SDI12Recorder
(Temp_Tmp(4),1,3,cmd(4),1.0,0)
'Control Measurement Event
For
X = 1
To
4
If
cmd(X) = "C!"
Then
Retry(X) = Retry(X) + 1
If
Retry(X) > 2
Then
IndDone(X) = -1
'Test to see if ttt expired. If ttt not expired, load "1e9" into first variable
'then move to next instruction. If ttt expired, issue aDv! command(s).
If
((Temp_Tmp(X) = 2e9)
OR
(Temp_Tmp(X) = 1e9))
Then
cmd(X) = "C"
'Start sending "C" command.
ElseIf
(Temp_Tmp(X) = NAN) Then
'Comms failed or sensor not attached
cmd(X) = "C!"
'Start measurement over
Else
'C!/C command sequence complete
Move
(Temp_Meas(X),1,Temp_Tmp(X),1)
'Copy measurements to SDI_Val(10)
cmd(X) = "C!"
'Start next measurement with "C!"
IndDone(X) = -1
EndIf
Next
X
'Summarize Measurement Event Success
For
X = 1
To
4
GroupDone = Gro IndDone(X)
Next
X
'Stop current measurement event, reset controls
If
GroupDone = -4
Then
RunSDI12 = False
GroupDone = 0
For
X = 1
To
4
IndDone(X) = 0
Retry(X) = 0
Next
X
Else
GroupDone = 0
EndIf
EndIf
'End of measurement sequence
NextScan
EndProg
7.7.15.2.2 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. 321)
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,
Содержание CR6 Series
Страница 2: ......
Страница 4: ......
Страница 6: ......
Страница 32: ......
Страница 36: ......
Страница 38: ......
Страница 76: ...Section 5 Overview 76 FIGURE 20 Half Bridge Wiring Example Wind Vane Potentiometer ...
Страница 80: ...Section 5 Overview 80 FIGURE 23 Pulse Input Wiring Example Anemometer ...
Страница 136: ......
Страница 251: ...Section 7 Installation 251 FIGURE 46 Running Average Frequency Response FIGURE 47 Running Average Signal Attenuation ...
Страница 454: ...Section 8 Operation 454 FIGURE 104 Narrow Sweep High Noise ...
Страница 459: ...Section 8 Operation 459 FIGURE 106 Vibrating Wire Sensor Calibration Report ...
Страница 535: ...Section 8 Operation 535 8 11 2 Data Display FIGURE 121 CR1000KD Displaying Data ...
Страница 537: ...Section 8 Operation 537 FIGURE 123 CR1000KD Real Time Custom ...
Страница 538: ...Section 8 Operation 538 8 11 2 3 Final Storage Data FIGURE 124 CR1000KD Final Storage Data ...
Страница 539: ...Section 8 Operation 539 8 11 3 Run Stop Program FIGURE 125 CR1000KD Run Stop Program ...
Страница 541: ...Section 8 Operation 541 FIGURE 127 CR1000KD File Edit ...
Страница 542: ...Section 8 Operation 542 8 11 5 PCCard Memory Card Management FIGURE 128 CR1000KD PCCard Memory Card Management ...
Страница 546: ......
Страница 549: ...Section 9 Maintenance Details 549 FIGURE 133 Separate Back Shell from Module FIGURE 134 Disconnect Battery Connector ...
Страница 552: ......
Страница 610: ...Section 11 Glossary 610 FIGURE 137 Relationships of Accuracy Precision and Resolution ...
Страница 612: ......
Страница 648: ......
Страница 650: ......
Страница 688: ......
Страница 689: ......