Specifications
Section 9. Program Control Instructions
9-12
"Device:FileName" The "Device:Filename" argument is the file that should
be executed. 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 The Attribute is a numeric code to determine what
should happen to the file called by the RunProgram
instruction. The Attribute codes are actually a bit field.
The codes are as follows:
Bit Decimal Description
bit 1 2 Run on power up
bit 2 4 Run now
RunProgram Example
The statement below uses RunProgram to run TEMPS.CR3, which is stored on
the datalogger's CPU, when Flag(2) becomes high.
If Flag(2) then RunProgram ( "CPU:TEMPS.CR3" 4 ) '4 means Run Now
ResetTable (TableName)
Used to reset a data table under program control.
Syntax
ResetTable( TableName )
Remarks
ResetTable is a function that allows a running program to erase and restart a
data table. TableName is the name of the table to reset.
ResetTable Example
The example program line uses ResetTable to reset table MAIN when Flag(2)
is high.
If Flag(2) then ResetTable( MAIN ) 'resets table MAIN