LPL Topics
Array Operations
23-6 Using the LI-6400
23
Array Operations
LPL supports arrays of type CHAR, INT, LONG, FLOAT, DOUBLE, and
PTR.
Also, all of the mathematical transform keywords (listed in Math Functions
on page 23-18) can also be applied to arrays.
Array SIZE and READY values
All arrays share a common feature - they maintain header information that
tells the following:
Table 23-3. Array Keyword Summary
Keyword Description
AMOVE Shift elements within an array.
APP Append an item to an array.
COS Compare two arrays for type and content.
FIND Find an item in an array.
FREE Free a dynamically allocated array.
MAKE Dynamically allocate an array.
MAKE4 Allocate an array for another application.
PDRF Pointer dereference. (1 step version of PVAL)
PFIND Pointer version of FIND.
PICK Select an array element.
PVAL Pointer version of VAL.
READY Returns the number of elements in an array.
SETREADY Sets the array Ready value.
SIZE Returns the maximum size of an array.
SUBSET Create an array that is a subset of another.
VAL Returns the value of an numeric array element.