5-1
Section 5. Program Declarations
ALIAS
Used to assign a second name to a variable.
Syntax
Alias VariableA
=
VariableB
Remarks
Alias allows assigning a second name to a variable. Within the datalogger
program, either name can be used. Only the alias is available for Public variables.
The alias is also used as the root name for datatable fieldnames.
With aliases the program can have the efficiency of arrays for measurement and
processing yet still have individually named measurements.
Alias Declaration Example
The example shows how to use the Alias declaration.
Dim TCTemp(4)
Alias
TCTemp(1) = CoolantT
Alias
TCTemp(2) = ManifoldT
Alias
TCTemp(3) = ExhaustT
Alias
TCTemp(4) = CatConvT
CONST
Declares symbolic constants for use in place of values.
Syntax
Const
constantname
=
expression
[,
constantname
=
expression
] . . .
Remarks
The
Const
statement has these parts:
Part Description
constantname
Name of the constant.
expression
Expression assigned to the constant. It can consist of literals
(such as 1.0), other constants, or any of the arithmetic or logical
operators.
Tip
Constants can make your programs self-documenting and easier
to modify. Unlike variables, constants can't be inadvertently
changed while your program is running.
Caution
Constants must be defined before referring to them.
Tip
Use all uppercase letters for constant names to make them easy
to recognize in your program listings.
Содержание CR9000
Страница 6: ...CR9000 Table of Contents iv This is a blank page ...
Страница 22: ...CR9000 Overview OV 16 This is a blank page ...
Страница 26: ...Section 1 Installation 1 4 CR9000 FIGURE 1 1 3 CR9000 Battery Pack ...
Страница 72: ...Section 3 CR9000 Measurement Details 3 28 This is a blank page ...
Страница 88: ...Section 5 Program Declarations 5 6 This is a blank page ...
Страница 217: ...This is a blank page ...