Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

Accept data


fb471893 Oct 10, 2021 01:24 PM

Hi there,

I am trying to collect data with CR310-RF422 from two other data loggers which are CR300-RF422. So, on CR300s I am using function Senddata and on the central unit I am using function Acceptdatarecords and I am having data exchange. But, when I receive data two variables that I want to track, equals 0. I am sending my code on CR310 and on one of CR300

 CR310

Public TcTemp3, Batt_volt

'Declare Private Variables
'Example:
'Dim Counter

'Define Data Tables.
DataTable (Table3,1,-1) 'Set table size to # of records, or -1 to autoallocate.
	  DataInterval (0,5,Sec,10)
    Sample (1,TcTemp3,FP2)
EndTable

'Define Subroutines
'Sub
	'EnterSub instructions here
'EndSub

'Main Program
BeginProg
	Scan (1,Sec,0,0)
		PanelTemp (TcTemp3,50)
		Battery (Batt_volt)
		SendData (ComRF,-1,1,Table3)
		'Enter other measurement instructions
		'Call Output Tables
		'Example:
		CallTable Table3
	NextScan
EndProg

 

CR300

 

Public PTemp, Batt_volt
Public TcTemp2, TcTemp3
'Declare Private Variables
'Example:
'Dim Counter

'Define Data Tables.
DataTable (Table1,1,-1) 'Set table size to # of records, or -1 to autoallocate.
	DataInterval (0,10,Sec,10)
	Minimum (1,Batt_volt,FP2,False,False)
	Sample (1,PTemp,FP2)
EndTable

DataTable (Table2,1,-1) 'Set table size to # of records, or -1 to autoallocate.
	Sample (1,TcTemp2,FP2)
EndTable

DataTable (Table3,1,-1) 'Set table size to # of records, or -1 to autoallocate.
	Sample (1,TcTemp3,FP2)
EndTable
'Define Subroutines
'Sub
	'EnterSub instructions here
'EndSub

'Main Program
BeginProg
SerialOpen (Com1,115200,0,0,10000)
	Scan (1,Sec,0,0)
		PanelTemp (PTemp,60)
		Battery (Batt_volt)
		AcceptDataRecords (2,1,Table2)'Enter other measurement instructions
		AcceptDataRecords (3,1,Table3)'Call Output Tables
		'Example:
		CallTable Table1
		CallTable Table2
		CallTable Table3
	NextScan
EndProg

 

Log in or register to post/reply in the forum.