After upload followed program, I cannot connect CR800 with computer. How can I reset the CR800 program?
Another question is that I need to collect signal from NO monitoring device. Data transmission through RS232 cable needs 4800 baud, 8 bits, no parity and 1 stop bit. How can I connect and retrieve data from equipment?
'Declare Public Variables
Public PTemp, batt_volt, SW12_chk
'Variables for SW12 control
Public SecIntoDay As Long
Public TwentyMin = 20*60
Public FortyMin = 40*60
'Variables for test
Public StrgPressao As String * 30
Public StatusStrg As String * 100
Public Pressao
'Define Data Tables
DataTable (NOXtable,1,-1)
	DataInterval (0,1,Sec,10)
	Minimum (1,batt_volt,FP2,0,False)
	Sample (1,PTemp,FP2)
	Sample (1,SW12_chk,FP2)
EndTable
'begine program
BeginProg
	Scan (1,Sec,0,0)
		
		'control SW12
		SecIntoDay = Public.Timestamp(4,1)
		If (SecIntoDay MOD FortyMin) < TwentyMin Then
			SW12 (1 )
			SW12_chk=1
		Else
			SW12(0)
			SW12_chk=0
		EndIf
		PanelTemp (PTemp,250)
		Battery (Batt_volt)
		'measurement instruction
		SerialOpen (ComRS232,4800,8,0,1)
		SerialFlush (ComRS232)
		SerialOut (ComRS232,"pres?" + CHR(13),"",0,0)
		SerialIn (StrgPressao,ComRS232,200,"",30)
		SerialClose (ComRS232)
		'using the COM1 or COM2 as comminication ports, it doesnt 'take any values
		If StrgPressao="" Then
			StatusStrg="msg fail"
			Pressao=0
		Else
			StatusStrg="msg OK"
			Pressao = StrgPressao
		EndIf 
CallTable NOXtable
	NextScan
EndProg
The program you have listed is trying to use the RS-232 port of the logger to communicate so its blocking your ability to talk to the datalogger.
You can reset it using the Device Configuration Utility which is available on our website for free. Connect the RS-232 of your PC to the RS-232 port of the datalogger. Start the Device Configuration Utililty and select the CR800 from the Devices. Select the right Communication Port of your PC. Then click the Connect button.
If this does not work, you can do a full reset by sending a new version (or current version) of the operating system to the datalogger (using the Send OS tab). Doing this will reset everything back to default.
https://www.campbellsci.com/datalogger-os-updates
-Gary