Data Types - Agilent Technologies 93000 SOC Series Training Manual

Mixed-signal training
Hide thumbs Also See for 93000 SOC Series:
Table of Contents

Advertisement

1-2

Data Types

The programming language is a superset of the C++ language.
Therefore, the normal data types of the C++ language can be used
to declare variables and arrays.
In addition, to handle the measurement data and calculation data
easily in a test method program, some customized data types are
provided, which can be also used to declare input parameters for a
test method program.
Data Types for Variables and Arrays
The following data types are used to declare variables and arrays.
For arrays, you must define the data size in square brackets,
"[" and "]".
: Integer type, four bytes
INT
: Real type, eight bytes
DOUBLE
: String type
STRING
: This type has two members: "real" and "imag". The
COMPLEX
"real" member is used for the real part of a complex value, and
the "imag" member is used for the imaginary part of a complex
value. Each member is represented in four bytes.
Data Types for Arrays Only
The following data types are used to declare arrays exclusively.
If these data types are used, the system automatically allocates
memory area by the number of elements assigned to the data.
Then, the statement checks the number of array elements and
resizes the array if necessary.
For these data types, if necessary, the data size of an array can be
defined in round brackets, "(" and ")".
: One-dimensional array data of INT type.
ARRAY_I
: One-dimensional array data of DOUBLE type.
ARRAY_D
: One-dimensional array data of COMPLEX type.
ARRAY_COMPLEX
After one measurement is completed, the raw measurement data
should be read from the tester hardware with any Result API. For
example, the measured analog waveform data is stored into the
ARRAY_D array variable by a Result API.
Lesson 1 – Test Method Structure
403

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents