3 program execution, 4 example power-up.ini files – Campbell Scientific CFM100 CompactFlash Module User Manual

Page 15

Advertising
background image

CFM100 CompactFlash

®

Module

7.1.3.3 Program Execution

After File is processed, the following rules determine what datalogger program
to run:

1) If the Run Now program is changed then it will be the program that runs.
2) If no change is made to Run Now program, but Run on Power-up program

is changed, the new Run on Power-up program runs.

3) If neither Run on Power-up nor Run Now programs are changed, the

previous Run on Power-up program runs.

7.1.3.4 Example Power-up.ini Files

Example 7.1-2 through Example 7.1-7 are example powerup.ini files.

EXAMPLE 7.1-2. Run Program on Power-up.

’Copy pwrup.cr1 to USR:, will run only when powered-up later
2,pwrup.cr1,usr:

EXAMPLE 7.1-3. Format the USR: drive.

’Format the USR: drive
5,,usr:

EXAMPLE 7.1-4. Send OS on Power-up.

’Load this file into FLASH as the new OS
9,CR1000.Std.04.obj

EXAMPLE 7.1-5. Run Program from CRD: drive.

’Leave program on CRD:, run always, erase CRD: data files
13,toobigforcpu.cr1,crd:

EXAMPLE 7.1-6. Run Program Always, Erase CF data.

’Run always, erase CRD: data files
13,pwrup_1.cr1,crd

EXAMPLE 7.1-7. Run Program Now, Erase CF data.

’Copy run.cr1 to CPU:, erase CF data, run CPU:run.cr1, but not if later powered-up
14,run.cr1,cpu:

9

Advertising