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.

GetDataRecord MaxRecord Value trouble retrieving data correctly


cobinov Apr 2, 2019 05:30 PM

This program is to retrieve data from remote CRVW3s to a CR300. The CRVW3s are recording data at 12-hour intervals.

 

The MaxRecord Value is not working as expected. When the value is "1", I retrieve the same record every time the program scans. When I changed it to "-100", the CR300 did not recieve any values. When I changed it to "-1", I recieved old records from the beggining of collecting data on the CRVW3. Using a MaxRecord of "5", the CR300 did not get any values. The program was updated for a MaxRecord value of "1" (again)and the CR300 recieved data but duplicated it every scan. I am looking to recieve the latest record only one time.

 

Below is the main part of the program:

 'Main Program scanning data ever 5 minutes

BeginProg

Scan (5,min,0,0)

'adding 1+32768 to the remote table number is required

'to avoid a -7 table signature mismatch code (returned to GDRResult1/2)

'The PakBus address of the CRVW3 is "101", the PakBus neighbor to route through is "0"

'The radio is connected to the Internal RF407

'MaxRecords = -100 to get the 100 most recent records in timestamped order

GetDataRecord(GDRResult101,ComRF,0,101,0000,0,2,32769,VW_Data_101,1)

GetDataRecord(GDRResult102,ComRF,0,102,0000,0,2,32769,VW_Data_102,1)

GetDataRecord(GDRResult103,ComRF,0,103,0000,0,2,32769,VW_Data_103,1)

GetDataRecord(GDRResult104,ComRF,0,101,0000,0,2,32769,VW_Data_104,1)

'Base Station Scan

Battery(BattV)

'Default CR300 Datalogger Processor Temperature measurement 'PTemp_C'

PanelTemp(PTemp_C,60)

'Type T Thermocouple measurements 'Temp_F'

TCDiff(Temp_F,1,mv34,1,TypeT,PTemp_C,True,0,60,1.8,32)

'Call Data Tables and Store Data

CallTable Temp_Base

 NextScan

Any help would be appreciated.

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