Specifications
Data Structures The VT1419A Algorithm Language allows the following data structures:
·
Simple variables of type float:
Declaration
static float simp_var, any_var;
Use
simp_var = 123.456;
any_var = -23.45;
Another_var = 1.23e-6;
Storage
Each simple variable requires four 16-bit words of memory.
·
Single-dimensioned arrays of type float with a maximum of 1024 elements:
Declaration
static float array_var [3];
Use
array_var [0] = 0.1;
array_var [1] = 1.2;
array_var [2] = 2.34;
array_var [3] = 5;
Storage
Arrays are “double buffered.” This means that when an array is
declared, twice the space required for the array is allocated, plus
one more word as a buffer pointer. The memory required is:
words of memory num elements=+(* _ )81
This double buffered arrangement allows the ALG:ARRAY
command to download all elements of the array into the “B” buffer
while the algorithm is accessing values from the “A” buffer.
An ALG:UPDATE command can then cause the buffer pointer
word to point to the newly loaded buffer between algorithm
executions.
The Algorithm Language and Environment
Algorithm Language Reference
126 Chapter 4
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com










