Campbell Scientific CFM100 CFM100 CompactFlash Module - Page 14

TABLE 7.1-1., Powerup.ini Commands, Command, Description, PreserveVariables, EXAMPLE 7.1-1., Powerup

Page 14 highlights

CFM100 CompactFlash® Module TABLE 7.1-1. Powerup.ini Commands Command 1 2 5 6 9 13 14 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 By using PreserveVariables() instruction in the datalogger CRBasic program, with options 1 and 6, data and variables can be preserved. EXAMPLE 7.1-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. Defaults to CPU: 'Command,File,Device 13,Write2CRD_2.cr1,CPU: 7.1.3.2 Applications • Commands 1, 2, 6, 13, and 14 (Run Now and / or Run On Power-up). If a device other than CRD: drive is specified, the file will be copied to that device. • Command 1, 2, 13 (Run On Power-up). If the copy (first application, above) succeeds, the new Run On Power-up program is accepted. If the copy fails, no change will be made to the Run On Power-up program. • Commands 1, 6, 13, and 14 (Run Now). The Run Now program is changed whether or not the copy (first application, above) occurs. If the copy does succeed, the Run Now program will be opened from the device specified. • Commands 13 and 14 (Delete Associated Data). Since CRD:powerup.ini is only processed at power-up, there is not a compiled program to delete associated data for. The information from the last running program is still available for the datalogger to delete the files used by that program. 8

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28

CFM100 CompactFlash
®
Module
TABLE 7.1-1.
Powerup.ini Commands
Command
Description
1
Run always, preserve CF data files
2
Run on power-up
5
Format
6
Run now, preserve CF data files
9
Load OS (File = .obj)
13
Run always, erase CF data files now
14
Run now, erase CF data files now
By using
PreserveVariables()
instruction in the datalogger CRBasic program,
with options 1 and 6, data and variables can be preserved.
EXAMPLE 7.1-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.
Defaults to CPU:
'Command,File,Device
13,Write2CRD_2.cr1,CPU:
7.1.3.2
Applications
Commands 1, 2, 6, 13, and 14 (Run Now and / or Run On Power-up).
If a
device other than CRD: drive is specified, the file will be copied to that
device.
Command 1, 2, 13 (Run On Power-up).
If the copy (first application,
above) succeeds, the new Run On Power-up program is accepted.
If the
copy fails, no change will be made to the Run On Power-up program.
Commands 1, 6, 13, and 14 (Run Now).
The Run Now program is
changed whether or not the copy (first application, above) occurs.
If the
copy does succeed, the Run Now program will be opened from the device
specified.
Commands 13 and 14 (Delete Associated Data).
Since CRD:powerup.ini
is only processed at power-up, there is not a compiled program to delete
associated data for. The information from the last running program is still
available for the datalogger to delete the files used by that program.
8