Section 7.  Installation 
 
 
Public PTemp, batt_volt 
 
DataTable(Test,1,-1) 
 DataInterval(0,15,Sec,10) 
 Minimum(1,batt_volt,FP2,0,False) 
 Sample(1,PTemp,FP2) 
EndTable 
BeginProg 
 Scan(1,Sec,0,0) 
 PanelTemp(PTemp,250) 
 Battery(Batt_volt) 
 CallTable Test 
 NextScan 
 Include "CPU:IncludeFile.CR1" '<<<<<<<<<<<<<<<'include' file code executed here 
EndProg 
 
 
 
 'Include' File to Control SW12 Terminal. 
'This program example demonstrates the use of an 'include' file.  See the documentation in 
CRBasic example 
'Using an Include File 
(p. 111) 
' 
'<<<<<<<<<<<<<<<<<<<<<<<NOTE: No BeginProg instruction 
SlowSequence '<<<<<<<<<<NOTE: Begins with SlowSequence 
 Scan(1,Sec,0,0) 
 If TimeIntoInterval(9,24,Hr) Then SW12(1)   'Modem on at 9:00 AM (900 hours) 
 If TimeIntoInterval(17,24,Hr) Then SW12(0)  'Modem off at 5:00 PM (1700 hours) 
 NextScan 
' 
'<<<<<<<<<<<<<<<<<<<<<<<NOTE: No EndProg instruction 
 
 
7.5.1.5.3 Executable File Run Priorities 
1.  When the CR800 powers up, it executes commands in the powerup.ini file (on 
Campbell Scientific mass storage device including commands to set the 
CRBasic program file attributes to Run Now or Run On Power-up. 
2.  When the CR800 powers up, a program file marked as Run On Power-up 
will be the current program. 
3.  If there is a file specified in the Include File Name setting, it is compiled at 
the end of the program selected in step. 
4.  If there is no file selected in step 1, or if the selected file cannot be compiled, 
the CR800 will attempt to run the program listed in the Include File Name 
setting.    The CR800 allows a SlowSequence statement to take the place of 
the BeginProg statement.    This allows the "Include File" to act as the default 
program. 
5.  If the program listed in the Include File Name setting cannot be run or if no 
program is specified, the CR800 will attempt to run the program named 
default.cr8 on its CPU: drive.