Specifications
Section 9. Program Control Instructions
9-7
The FileManage instruction has the following parameters:
Parameter
& Data Type
Enter
Device;
Filename
Text
The "Device:Filename" argument is the file that should be manipulated. The
Device on which the file is stored must be specified and the entire string
must be enclosed in quotation marks. Device = CPU, the file is stored in
datalogger memory. Device = CRD, the file is stored on a PCMCIA card. A
device of USR can also be specified. The USR device is an area of memory
that can be set up by the user by assigning a value to the datalogger's
UsrDriveSize setting in the Status table. This drive must be set to at least
8192 bytes, in 512 byte increments (if the value entered is not a multiple of
512 bytes, the size will be rounded up).
Attribute
Constant
The Attribute is a numeric code to determine what should happen to the file
affected by the FileManage instruction. The Attribute codes are actually a
bit field. The codes are as follows:
Bit Decimal Description
bit 0 1 Program not active
bit 1 2 Run on power up
bit 2 4 Run now
bits 1 & 2 6 Run now and on power up
bit 3 8 Delete
bit 4 16 Delete all
FileManage Example
The statement below uses FileManage to run TEMPS.CR3, which is stored on
the datalogger's CPU, when Flag(2) becomes high.
If Flag(2) then FileManage( "CPU:TEMPS.CR3" 4 ) '4 means Run Now
FileMark (TableName)
Parameter
& Data Type
Enter
TableName
name
The name of the data table in which to insert the filemark..
Inserts a filemark into a data file. After the FileMark instruction is
encountered, a filemark will be added to the next record written to the
specified Table. The filemark inserted by this instruction indicates to the
software processing the file that a new file should be started after the marked
record. To make use of FileMarks, the DataTable must be processed using the
CardConvert binary file utility.
FileMark is placed within a conditional statement in order to write the filemark
at the desired time.