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.

CR6 not recognising MaxRun as a function


TJackson Mar 21, 2022 01:32 PM

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


smile Mar 23, 2022 07:48 AM

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

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