Hello,
Have a site in Bermuda using the 81000. It's been programmed to output the following string 1/second and every once in a while I get the short string as shown below @10:55:00
(Example is from 1 minute data table as 1 second data table would be too much to record
value at the end is the string length)
"2020-12-02 10:53:00",34876," -0.52 2.85 0.78 2.90 349.5 15.2 344.36 21.11",55
"2020-12-02 10:54:00",34877," 0.18 4.00 -0.08 4.01 2.6 -1.3 344.30 21.03",55
"2020-12-02 10:55:00",34878,"20.90",5
"2020-12-02 10:56:00",34879," -1.89 3.17 0.54 3.69 329.2 8.3 344.26 20.95",55
"2020-12-02 10:57:00",34880," -0.88 2.97 -0.06 3.10 343.5 -1.2 344.30 21.01",55
Instantaneous output example Binary:
04:41:29.791 R 20 20 2D 35 2E 31 31 20 20 20 34 2E 33 32 20 20 -5.11 4.32
04:41:29.791 R 20 32 2E 33 36 20 20 20 36 2E 37 30 20 33 31 30 2.36 6.70 310
04:41:29.791 R 2E 32 20 20 31 39 2E 34 20 33 34 33 2E 31 30 20 .2 19.4 343.10
04:41:29.791 R 20 20
04:41:29.795 R 31 38 2E 39 37 0D
04:41:30.791 R 20 20 2D 33 2E 37 36 20 20 20 36 2E 33 38 20 20 -3.76 6.38
04:41:30.791 R 20 31 2E 36 34 20 20 20 37 2E 34 31 20 33 32 39 1.64 7.41 329
04:41:30.791 R 2E 35 20 20 31 32 2E 35 20 33 34 33 2E 31 30 20 .5 12.5 343.10
04:41:30.791 R 20 20
04:41:30.795 R 31 38 2E 39 38 0D
This is the parsing setup in the program:
SerialOpen (ComC1,38400,0,0,1000)
Scan (1,Sec,0,0)
PanelTemp (PnlTemp,60)
SerialIn (SonicRxString,ComC1,0,&H0D,80)
SonicRxLen = Len(SonicRxString)
U = Mid(SonicRxString,1,7)
V = Mid(SonicRxString,8,14)
W = Mid(SonicRxString,15,21)
Wspd = Mid(SonicRxString,22,28)
Wdir = Mid(SonicRxString,29,34)
VWdir = Mid(SonicRxString,35,40)
SOS = Mid(SonicRxString,41,47)
Ts = Mid(SonicRxString,48,55)
SerialFlush (ComC1)
I don't understand why we miss a string of data then it results in data tables with a mess.
"2021-02-23 00:30:00",10122,"NAN",170.7,26.02,"NAN","NAN","NAN","NAN",0.071,"NAN",16.36,16.23,0.129,"NAN","NAN"
Thanks,
Dave
If the RM Young is configured to output data at the same rate as your scan rate (i.e. 1 Hz) you could be missing occasional data. I was having a similar problem with serial ascii data. I was scanning at 20 Hz and had instruments (one of them an RM Young 81000) also configured to output data at 20 Hz. Once I re-configured the instruments to output data at a rate faster than my scan interval the missing data problem went away.
pfjessen
Thanks for the info. System is deployed in bermuda so it's an issue to modify at the moment but it's given me an idea to run faster scan for that sensor alone, then the rest of the sensors.
Thanks,
Dave