I would like to connect biral SWS200 sensor to cr850, meantime I have a problem about polled mode programming.
On Continuous Output Sensor Mode, I succeded to connect and received all of raw data.
And then I tried polled mode, but I couldn't manage to write correct program.
here is my continuous mode program
BeginProg
SerialOpen (Com1,9600,3,0,10000)
Scan (1,Min,0,0)
PanelTemp (PTemp,250)
Battery (batt_volt)
SerialInRecord (Com1,RawString,0,0,0,NBytesReturned,01)
SplitStr (SplitStrings(),RawString,",",9,5)
FloatValueBB=SplitStrings(5)
IntegerValueNNN=SplitStrings(2)
IntegerValueXXX=SplitStrings(3)
IntegerValueCC=SplitStrings(6)
'Call Output Tables
'Example:
CallTable Test
NextScan
EndProg
You can find my reference documents below;
https://s.campbellsci.com/documents/us/technical-papers/serial.pdf
What should I add for polled mode
Also, how datalogger get sensor's command from us? For example: D? (send the latest data message). Where should I use this sensor command.
thank you for your advise