I am trying to update an CR3000 program to include the TimeisBetween command. I am running Loggernet 4.3. The program wont compile and I get the following errors. I updated a CR1000 program and had no problems.
[Version]C:\Campbellsci\Lib\Compilers\CR3Comp.exe VERSION:CR3000.Std.27 DATE:131010
C:\Campbellsci\CRBasicEditor\Prospect_Clearcut_Peripherals_rev_RemoteDownload_06_23.CR3 -- Compile Failed!
line 146: Undeclared variable TimeIsBetween.
line 146: Dimensions not declared: TimeIsBetween (660,780,1440,min).
line 146: Undeclared variable TimeIsBetween.
line 146: Dimensions not declared: TimeIsBetween (660,780,1440,min).
Here is the piece of code I used.
If TimeIsBetween (660,780,1440,min)Then
flag(1)= True
Else
flag(1)=False
* Last updated by: MarkV on 6/23/2015 @ 7:48 AM *
TimeisBetween is only available in OS 28 (and PC CRBasic precomiler) or newer. It looks like you are using version 27. You can updated your logger's operating system using the OS freely downloaded from www.campbellsci.com/downloads.
* Last updated by: GaryTRoberts on 6/23/2015 @ 12:08 PM *
yep. I already plan on updating the OS on the logger before I upload the program. I don't understand why the program won't compile on my computer which is running the most recent version of Loggernet 4.3. Yesterday I downloaded and reinstalled the loggernet upgrade just incase something was changed in the last month.
When you download the OS from our web site it is an executable file. "Execution of this download installs the CR3000 Operating System and Compiler on your computer. It also updates the CR3000 support files for the CRBasic Editor."
You need to update the pre-compiler on your computer to OS28. Video tutorial: https://www.campbellsci.com/videos?video=76
AHHH. Great thanks.