I have a problem with a pressure sensor about SDI12 comunication. At start the communication is normal but after 10 or 12 hours the sensor stops its communication to datalogger (CR1000X). the Scanning time I have increased to 60 sec. but the problem continuous. The sensor is a Young, model: 61402L.
This is my code now (the part only sensor):
note I putted a delay of 500 ms (delay option 2, for digital measurements) after the SDI12Recorder() for that will wait the response before continuous.
'Sensor de presion
Public BP_mbar
Public FallaPres
Units BP_mbar=mbar
BeginProg
SW12 (SW12_1,1 )
Scan(60,Sec,1,0)
'Sensor de presion SDI-12
SDI12Recorder(BP_mbar,C1,"0","C!",1,0,-1)
Delay (2,500,mSec)
If BP_mbar = NAN Then
FallaPres=1
If FallaPres=1 Then
SerialFlush(ComC1)
SW12 (SW12_1,0)
Delay (1,500,mSec)
SW12 (SW12_1,1)
FallaPres=2
EndIf
EndIf
any suggestion please?
Hi,
the next time you find it blocked, stop the program and via the terminal emulator interrogate the probe directly via the SDI12 protocol menu. Maybe you can figure out what's causing the problem.
Smile