Filemark (tablename) – Campbell Scientific CR5000 Measurement and Control Module User Manual

Page 213

Advertising
background image

Section 9. Program Control Instructions

9-7

FileManage Example
The statement below uses FileManage to run TEMPS.CR5, which is stored on
the datalogger's CPU, when Flag(2) becomes high.

If Flag(2) then FileManage( "CPU:TEMPS.CR5" 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..

FileMark is used to insert a filemark into a data file. The filemark can be used
by the decoding software to indicate that a new file should be started at the
mark. This capability to create multiple files only exists in the binary to ASCII
converter. To make use of it files must be stored to a PCMCIA card and
retrieved from the logger files screen or by removing the card and transferring
the file directly to the computer.

FileMark is placed within a conditional statement in order to write the filemark
at the desired time.

For ... Next Statement

Repeats a group of instructions a specified number of times.

Syntax
For
counter = start To end [ Step increment ]

[statementblock]
[Exit For]
[statementblock]

Next [counter [, counter][, ...]]

The For...Next statement has these parts:

Part

Description

For

Begins a For...Next loop control structure. Must appear
before any other part of the structure.

counter

Numeric variable used as the loop counter. The variable
cannot be an array element or a record element.

start

Initial value of counter.

To

Separates start and end values.

end

Final value of counter.

Step

Indicates that increment is explicitly stated.

increment

Amount counter is changed each time through the loop. If
you do not specify Step, increment defaults to one.

statementblock

Program lines between For and Next that are executed the
specified number of times.

Advertising