Customizing Open
New Style ComputeList Files
26-18 Using the LI-6400
26
The new style consists of a declaration section, in which all user variables are
defined. There is a computational section, which is the function (named Com-
puteUserValues) that is called each time user values are to be computed. The
middle section, the declaration of a pointer array named userList, requires a
bit of explanation.
The userList Pointer Array
The pointer array named userList contains one object for each user variable
or constant that is defined. (These are the items with ID numbers greater than
zero that appear at the top of the selection list that you see when building dis-
plays or Log Lists, for example). Each item in the pointer array is itself a
pointer that must contain 8 items (Figure 26-5), and optionally a 9th item
(Table 26-6).
Figure 26-5. The elements of each :PTR array that make up userList[].
:PTR { 10 "(U/S)" s8 u10 g83 "flow:area ratio" 0 g13 }
ID #
Display
Label
Log Label (or 0 if same
as Display Label)
Display Label
Format String
Display Format
String
The Variable
The Description
Log Format
String
Table 26-6. Descriptions Of The Elements In Each userList[] Entry
# Name Description
1
ID# Any integer 1...32767
2
Display Label This should be no more characters than you wish the display length to
be (typically 8).
3
Display Label Format
String
For New Measurements mode. Typically something like Ò%8sÓ. This is
the mechanism by which a short label is made to take up the requisite
number of spaces.
4
The Variable The variable name. Must be defined somewhere, as a :FLOAT, or :INT,
etc.