I am trying to use the MaxRun function for a CR6 (OS 9.2) and am getting the error message 'Undeclared variable MaxRun'. It seems the compiler isn't recognising MaxRun as a function. Has anyone had this problem? Here is a short reproducible example program:
'Example:
Public PTemp, Batt_volt, maxT
'Define Data Tables
DataTable (Test,1,-1) 'Set table size to # of records, or -1 to autoallocate.
DataInterval (0,15,Sec,10)
Minimum (1,Batt_volt,FP2,False,False)
Sample (1,PTemp,FP2)
EndTable
'Main Program
BeginProg
Scan (1,Sec,0,0)
PanelTemp (PTemp,15000)
Battery (Batt_volt)
MaxRun (maxT,1,Batt_volt,10)
CallTable Test
NextScan
EndProg
I suggest you update the OS of the logger and loggernet. Version 11.01 is available. I copied your text to my CRbasic without generating errors