Section 5. Program Declarations
5-3
Public Declaration Example
The example shows the use of the Public declaration.
Dim x( 3 ), y, z( 2, 3, 4 )
Public
x, y, z
Public
Dim x( 3 ), y, z( 2, 3, 4 )
'Dim is optional
Public
x( 3 ),y, z( 2, 3, 4 )
Public
w
STATION NAME
Sets the station name.
Syntax
StationName
StaName
Remarks
StationName is used to set the datalogger station name with the program. The
station name is displayed by PC9000 and stored in the data table headers
(Section 2.4).
UNITS
Used to assign a unit name to a field associated with a variable.
Syntax
Units Variable
=
UnitName
Remarks
Units allows assigning a unit name to a field. Units are displayed on demand
in the real-time windows of PC9000. The unit name also appears in the header
of the output files and in the Data Table Info file of PC9000. The unit name is
a text field that allows the user to label data. When the user modifies the units,
the text entered is not checked by PC9000 or the CR9000.
Example
Dim TCTemp( 1 )
Units
TCTemp( 1 ) = Deg_C
SUB, EXIT SUB, END SUB
Declares the name, variables, and code that form a Subroutine.
Syntax
Sub
SubName
[(
VariableList
)]
[
statementblock
]
[
Exit Sub
]
[
statementblock
]
End Sub
Summary of Contents for CR9000
Page 6: ...CR9000 Table of Contents iv This is a blank page ...
Page 22: ...CR9000 Overview OV 16 This is a blank page ...
Page 26: ...Section 1 Installation 1 4 CR9000 FIGURE 1 1 3 CR9000 Battery Pack ...
Page 72: ...Section 3 CR9000 Measurement Details 3 28 This is a blank page ...
Page 88: ...Section 5 Program Declarations 5 6 This is a blank page ...
Page 217: ...This is a blank page ...