04.01.2015 Views

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Section 8. Operation<br />

Power-up functions include<br />

8.3.4.3.1 Creating and Editing Powerup.ini<br />

• Sending programs to the <strong>CR1000</strong>.<br />

• Optionally setting run attributes of <strong>CR1000</strong> program files.<br />

• Sending an OS to the <strong>CR1000</strong>.<br />

• Formatting memory drives.<br />

• Deleting data files associated with the previously running program.<br />

Note Back in the old days of volatile RAM, life was frustrating, but simple. Lost<br />

power meant lost programs, variables, and data – a clean slate. The advent of nonvolatile<br />

memory has saved a lot of frustration in the field, but it requires thought<br />

in some applications. For instance, if the <strong>CR1000</strong> loses power, do you want it to<br />

power back up with the same program, or another one with variables intact or<br />

erased with data intact or erased<br />

The powerup.ini file enables the power-up function. The powerup.ini file resides<br />

on an external drive. It contains a list of one or more command lines. At powerup,<br />

the <strong>CR1000</strong> searches for a powerup.ini file on a drive and executes the<br />

command line(s) prior to compiling a program. Powerup.ini performs three<br />

operations:<br />

1. Copies the specified program file to a specified memory drive.<br />

2. Optionally sets a file run attribute (run now, run on power up, or run always)<br />

for the program file.<br />

3. Optionally deletes data files stored from the overwritten (just previous)<br />

program.<br />

4. Formats a specified drive.<br />

A powerup.ini file takes precedence during power-up. Although it sets file<br />

attributes for the programs it uploads, its presence on a drive does not allow those<br />

file attributes to control the power-up process. To avoid confusion, either remove<br />

the external drive on which the powerup.ini file resides or delete the file after the<br />

powerup.ini operation is complete.<br />

A powerup.ini file is created with a text editor on a PC, then saved as<br />

"powerup.ini" on a memory drive of the <strong>CR1000</strong>. The file is saved to the memory<br />

drive, along with the operating system or user program file, using the datalogger<br />

support software File Control Send (p. 454) command.<br />

Note Some text editors (such as MicroSoft ® WordPad ® ) will attach header<br />

information to the powerup.ini file causing it to abort. Check the text of a<br />

powerup.ini file in the <strong>CR1000</strong> with the external keyboard / display to see what<br />

the <strong>CR1000</strong> actually sees.<br />

Comments can be added to the file by preceding them with a single-quote<br />

character ('). All text after the comment mark on the same line is ignored.<br />

344

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!