Algorithm Language Reference; Language Reference - HP VXI 75000 C Series User's And Scpi Programming Manual

Algorithmic closed loop controller
Table of Contents

Advertisement

Language Reference

Chapter 5

Algorithm Language Reference

The HP E1415's Algorithm Language is a limited version of the 'C'
programming language. It is designed to provide the necessary control
constructs and algebraic operations to support standard PID as well as
custom control algorithms. There are no loop constructs, multi-dimensional
arrays, or transcendental functions. Further, an algorithm must be
completely contained within a single function subprogram 'ALGn'. The
algorithm can not call another user-written function subprogram.
It is important to note, that while the HP E1415's Algorithm Language has
limited set of intrinsic arithmetic operators, it also provides the capability
call special user defined functions "f(x)". An off-line program included with
your HP E1415 converts the functions you supply into piece-wise linear
interpolated tables and gives them names you choose. The HP E1415 can
extract function values from these tables in under 18µseconds, regardless of
the function's original complexity. This method provides faster algorithm
execution by moving the complex math operations off-board. Appendix F
page 367 "Generating User Defined Functions"
This section assumes that you already program in some language. If you are
already a 'C' language programmer, this reference section, as well as Chapter
4 "Creating and Running Custom Algorithms" is all you'll probably need to
create your algorithm. If you are not familiar with the C programming
language, you should study the "Program Structure and Syntax" section
before you begin to write your custom algorithms.
• Language Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
-- Standard Reserved Keywords . . . . . . . . . . . . . . . . . . . . . . . . . . 138
-- Special HP E1415 Reserved Keywords . . . . . . . . . . . . . . . . . . 138
-- Identifiers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
-- Special Identifiers for Channels . . . . . . . . . . . . . . . . . . . . . . . . 139
-- Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
-- Intrinsic Functions and Statements . . . . . . . . . . . . . . . . . . . . . . 140
-- Program Flow Control. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
-- Data Types. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
-- Data Structures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141
-- Bitfield Access . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
• Language Syntax Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
• Program Structure and Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
This section provides a summary of reserved keywords, operators, data
types, constructs, intrinsic functions and statements.
Chapter 5
Algorithm Language Reference
137

Advertisement

Table of Contents
loading

This manual is also suitable for:

Vxi e1415a

Table of Contents