Applications; Powerup.ini Commands - Campbell NL116 Instruction Manual

Ethernet and compactflash module
Table of Contents

Advertisement

Comments can be added to the file by preceding them with a single-quote
character ('). All text after the comment mark on the same line is ignored.
Syntax
Syntax allows functionality comparable to File Control in LoggerNet.
Powerup.ini is a text file that contains a list of commands and parameters. The
syntax for the file is:
where
Command
1
2
5
6
9
13
14
By using PreserveVariables() instruction in the datalogger CRBasic program,
with options 1 and 6, data and variables can be preserved. The powerup.ini
code is shown below.
EXAMPLE 7-1. Powerup.ini code.
'Command = numeric power-up command
'File = file on CF associated with the action
'Device = the device to which File will be copied.
'Command,File,Device
13,Write2CRD_2.cr1,CPU:

7.2.3.2 Applications

NL116 Ethernet and CompactFlash
Command,File,Device
Command = one of the numeric commands in TABLE 7-1.
File = file on CF associated with the action. Name can be up to 22
characters.
Device = the device to which the associated file will be copied
Options are CPU:, USR:, and CRD:. If left blank or with an invalid
option, it will default to CPU:.
TABLE 7-1. Powerup.ini Commands
Description
Run always, preserve CF data files
Run on power-up
Format
Run now, preserve CF data files
Load OS (File = .obj)
Run always, erase CF data files now
Run now, erase CF data files now
Command 1 copies the specified program to the designated drive and sets
the run attribute of the program to Run Always. Data on a CF card from
the previously running program will be preserved.
Defaults to CPU:
®
Module
21

Advertisement

Table of Contents
loading

Table of Contents