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.
Содержание CR3000 Micrologger
Страница 2: ......
Страница 3: ......
Страница 4: ......
Страница 6: ......
Страница 30: ......
Страница 34: ......
Страница 36: ......
Страница 96: ......
Страница 200: ...Section 7 Installation 200 FIGURE 42 Running Average Frequency Response FIGURE 43 Running Average Signal Attenuation ...
Страница 485: ...Section 8 Operation 485 8 11 2 Data Display FIGURE 110 Keyboard and Display Displaying Data ...
Страница 487: ...Section 8 Operation 487 FIGURE 112 CR1000KD Real Time Custom ...
Страница 488: ...Section 8 Operation 488 8 11 2 3 Final Storage Data FIGURE 113 Keyboard and Display Final Storage Data ...
Страница 489: ...Section 8 Operation 489 8 11 3 Run Stop Program FIGURE 114 Keyboard and Display Run Stop Program ...
Страница 491: ...Section 8 Operation 491 FIGURE 116 Keyboard and Display File Edit ...
Страница 495: ...Section 8 Operation 495 Low power standby whenever possible Low power bus sets bus and modules to low power ...
Страница 496: ......
Страница 502: ......
Страница 564: ...Section 11 Glossary 564 FIGURE 126 Relationships of Accuracy Precision and Resolution ...
Страница 566: ......
Страница 594: ......
Страница 598: ......
Страница 600: ......
Страница 602: ......
Страница 624: ......
Страница 642: ......
Страница 643: ......