Special Identifiers For Channels; Operators - HP VXI 75000 C Series User's And Scpi Programming Manual

Algorithmic closed loop controller
Table of Contents

Advertisement

Special Identifiers
for Channels

Operators

Assignment Operator
Arithmetic Operators
Unary Operators
Comparison Operators
Logical Operators
Unary Logical Operator
Chapter 5
NOTE
Identifiers are case sensitive. The names My_array and my_array reference
different variables.
Channel identifiers appear as variable identifiers within the algorithm and
have a fixed, reserved syntax. The identifiers I100 to I163 specify input
channel numbers. The "I" must be upper case. They may only appear on the
right side of an assignment operator. The identifiers O100 to O163 specify
output channel numbers. The "O" must be upper case. They can appear on
either or both sides of the assignment operator.
NOTE
Trying to declare a variable with a channel identifier will generate an error.
The HP E1415's Algorithm Language supports the following operators:
=
(assignment)
+
(addition)
-
(subtraction)
*
(multiplication)
/
(division)
-
(unary minus)
+
(unary plus)
==
(is equal to)
!=
(is not equal to)
<
(is less than)
>
(is greater than)
<=
(is less than or equal to)
>=
(is greater than or equal to)
||
(or)
&&
(and)
!
(not)
The result of a comparison operation is a boolean value. It is still a type float
but its value is either 0 (zero) if false, or 1 (one) if true. You may test any
variable with the if statement. A value of zero tests false, if any other value
it tests true. For example:
/* if my_var is other than 0, increment count_var */
if(my_var) count_var=count_var+1;
example;
c = 1.2345
examples;
c = a + b
c = a - b
c = a * b
c = a / b
c = a + (-b)
c = a + (+b)
examples;
a == b
a != b
a < b
a > b
a <= b
a >= b
examples;
(a == b) || (a == c)
(a == b) && (a == c)
example;
!b
Algorithm Language Reference
139

Advertisement

Table of Contents
loading

This manual is also suitable for:

Vxi e1415a

Table of Contents