Defining User Variables
Writing and Modifying ComputeList Files
15-8
Using the LI-6400
15
¥
Other User Variables
These are referenced by ID number, preceded by a single # or (starting in
OPEN 3.2) the letter
u
. For example, #101 or u101.
¥
LPL Functions and Operators
Table 15-3 on page 15-15 provides a list of useful functions and operators.
¥
UREM() or UCON()
These specify the variable to be user input, and not computed. This is de-
scribed in
User Defined Constants and Remarks
¥
The NOASSIGN marker
When OPEN processes a ComputeList, it generates code for a function that
will execute every time user variables are computed. Each user variable that
you define causes a variable named
unnn
to be created (where
nnn
is the ID
number of your variable. Thus,
u20
is the variable name of #20). The code
that is generated will have a line for each variable assigned to its equation
string. Thus, if the equation string for ##20 was
"10 * #15"
, the line for u20
would appear as in Figure 15-4.
Note that Ò#15Ó becomes Òu15Ó. You can write it either way.
If you donÕt want this automatic assignment taking place, it can be suppressed
with the word NOASSIGN. Suppose, for example, we wanted a variable that
indicated 1 for photosynthesis, or 0 for respiration. (I can think of no good
reason to do this, but it illustrates the point.) You could define it this way:
##102 "Flag" "1 if photo, 0 if resp"
" NOASSIGN
if (#30 > 0)
u102 = 1
ELSE
u102 = 0
THEN "
The word NOASSIGN in the first line of the equation string will prevent the
u20 = 10 * u15
Éto your equation
System adds thisÉ
Figure 15-4. When building the code for each user variable, the
system makes the equation by inserting the variable name and
an = sign before your equation.
Summary of Contents for LI-6400
Page 1: ...Using the LI 6400 Portable Photosynthesis System ...
Page 15: ...Part I The Basics ...
Page 16: ......
Page 174: ...Making Measurements Answers to Questions 4 56 Using the LI 6400 4 ...
Page 175: ...Part II Useful Details ...
Page 176: ......
Page 200: ...Standard Tools Power ON Hooks 5 24 Using the LI 6400 5 ...
Page 214: ...Real Time Data Real Time Graphics 6 14 Using the LI 6400 6 ...
Page 234: ...Environmental Control Light Control 7 20 Using the LI 6400 7 ...
Page 244: ...Light Sensor Considerations Gallium Arsenide Phosphide GaAsP Sensor 8 10 Using the LI 6400 8 ...
Page 288: ...Data Logging Making Your Own AutoPrograms 9 44 Using the LI 6400 9 ...
Page 289: ...Part III Working With Files ...
Page 290: ......
Page 312: ...The LPL File System Troubleshooting 10 22 Using the LI 6400 10 ...
Page 340: ...Downloading Files Using a Data Capture Program 11 28 Using the LI 6400 11 ...
Page 375: ...Part IV Configuration Issues ...
Page 376: ......
Page 420: ...Defining User Variables Old Style vs New Style 15 18 Using the LI 6400 15 ...
Page 454: ...Using an Energy Balance Further Reading 17 12 Using the LI 6400 17 ...
Page 455: ...Part V Maintenance Troubleshooting ...
Page 456: ......
Page 572: ...Troubleshooting Useful Information 20 46 Using the LI 6400 20 ...
Page 593: ...Part VI Programming ...
Page 594: ......
Page 622: ...Programming with LPL Compiler Directives 22 28 Using the LI 6400 22 ...
Page 846: ...Index I 16 Using the LI 6400 ...