Section 7. Installation
122
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. 121)
'
'<<<<<<<<<<<<<<<<<<<<<<<NOTE: No BeginProg instruction
SlowSequence
'<<<<<<<<<<NOTE: Begins with SlowSequence
Scan
(1,Sec,0,0)
If TimeIntoInterval
(9,24,Hr)
Then SW12
(1,1)
'Modem on at 9:00 AM (900 hours)
If TimeIntoInterval
(17,24,Hr)
Then SW12
(1,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 CR3000 powers up, it executes commands in the powerup.ini file
(on Campbell Scientific mass storage device or memory card including
commands to set the CRBasic program file attributes to Run Now or Run On
Power-up.
2. When the CR3000 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 CR3000 will attempt to run the program listed in the Include File Name
setting. The CR3000 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 CR3000 will attempt to run the program named
default.cr3 on its CPU: drive.
Summary of Contents for CR3000 Micrologger
Page 2: ......
Page 3: ......
Page 4: ......
Page 6: ......
Page 30: ......
Page 34: ......
Page 36: ......
Page 96: ......
Page 485: ...Section 8 Operation 485 8 11 2 Data Display FIGURE 110 Keyboard and Display Displaying Data ...
Page 487: ...Section 8 Operation 487 FIGURE 112 CR1000KD Real Time Custom ...
Page 491: ...Section 8 Operation 491 FIGURE 116 Keyboard and Display File Edit ...
Page 496: ......
Page 502: ......
Page 564: ...Section 11 Glossary 564 FIGURE 126 Relationships of Accuracy Precision and Resolution ...
Page 566: ......
Page 594: ......
Page 598: ......
Page 600: ......
Page 602: ......
Page 624: ......
Page 642: ......
Page 643: ......