Campbell Scientific CR9000X Measurement and Control System User Manual

Page 378

Advertising
background image

Section 9. Program Control Instructions

Copying files to CPU flash. When setting a file's run attribute, if the device
parameter in the command line is specified as CPU, or left blank, the logger
will attempt to copy the selected file to the logger's CPU flash memory prior to
setting its run attribute. If the copy fails for any reason, such as there is not
enough room in flash memory for the selected file, the resulting action depends
on the command attribute selected:

1 Run Now and Run on Power-up: If a Program in the CPU was
previously set as Run on Power-up, then the file on the card will run
(Run now takes priority), but the attribute of the original file in the
CPU that was set as Run on Power-up will keep its Run on Power-up
attribute. If the Card is later removed and the logger power is cycled,
the program residing in the CPU memory that was originally set as Run
on Power-up will run.
2 Run on Power-up: If the copy function fails, no change will be
made to any file attributes.

6 Run Now: If the copy function fails, the file specified in the
powerup.ini file program will still run from the Card. Regardless if the
copy function fails or succeeds, any program residing in the CPU with
an attribute of Run on Power-up will keep its attribute.

Large Program Files. Some programs may be too large to fit within the 128
Kbytes that is set aside for programs in the CPU's flash memory. These large
files can be run directly from the card. (1,programfile.c9x,crd:)
Comments. Comments can be added to the powerup.ini file through the use
of the apostrophe, '. All text following the apostrophe, to the end of the line,
will be ignored.
Examples:
Example 1
: This first example first formats the CPU to insure that there is
memory available for the programnew.c9x to be copied from the card to the
CPU's memory. The second line copies the file programrun.c9x to the CPU
and sets its run attribute to "Run Now and Run on Power-up".

5,CPU 'Format the CPU (note the 2 commas

1,programrun.c9x,CPU:

Example 2: This example copies two files from the card to the CPU. It sets
the frompwrup.c9x's run attribute to "Run on Power-up" It sets the
programrun.c9x's run attribute as "Run Now".

2,frompwrup.c9x,CPU:

6,programrun.c9x,CPU:


Example 3
: This example replaces the logger's operating system with
CR9000.Std.30.obj.

9,CR9000.Std.30.obj

Example 4: This example runs the toobigforcpu.c9x file from the Card.

1,toobigforcpu.c9x ,crd:

9-48

Advertising