Specifications

Chapter 4
The Algorithm Language and Environment
Learning Hint This chapter builds upon the “VT1419A Programming Model” information
presented in Chapter 3. Read that section before moving on to this one.
About This Chapter
This chapter describes how to write algorithms that apply the VT1419A’s
measurement, calculation, and control resources. It describes these resources and
how they can be accessed with the VT1419A’s Algorithm Language. This manual
assumes that the user already has programming experience, ideally, in the ‘C’
programming language, as the VT1419A’s Algorithm Language is based on ‘C.’
Following the tutorial sections of this chapter is an Algorithm Language Reference.
The contents of this chapter are:
·
Overview of the Algorithm Language ..................page 106
·
The Algorithm Execution Environment .................page 108
·
Accessing the VT1419A’s Resources ...................page 109
Accessing I/O Channels ...........................page 110
Defining and Accessing Global Variables .............page 111
Determining First Execution ........................page 111
Initializing Variables .............................page 112
Sending Data to the CVT and FIFO ..................page 112
Setting a VXIbus Interrupt .........................page 113
Calling User Defined Functions .....................page 114
·
Operating Sequence ................................page 114
·
Defining Algorithms (ALG:DEF) ......................page 116
·
A Very Simple First Algorithm .......................page 120
·
Non Control Algorithms .............................page 121
Data Acquisition Algorithm ........................page 121
Process Monitoring Algorithm ......................page 121
·
Algorithm Language Reference .......................page 122
Standard Reserved Keywords .......................page 122
Special VT1419A Reserved Keywords ...............page 122
Identifiers ...................................... page 122
Special Identifiers for Channels .....................page 123
Operators ......................................page 123
Intrinsic Functions and Statements ...................page 124
Program Flow Control ............................page 124
Data Types ..................................... page 125
Data Structures .................................. page 126
Type Float as Integer .............................page 127
Bitfield Access ..................................page 127
·
Language Syntax Summary ..........................page 129
·
Program Structure and Syntax ........................page 133
Chapter 4 105
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com