Table of Contents
10
7.7.3.1 Numerical Formats
.............................................................
117
7.7.3.2 Structure
.............................................................................
117
7.7.3.3 Command Line
...................................................................
119
7.7.3.3.1 Multiple Statements on One Line
.............................
120
7.7.3.3.2 One Statement on Multiple Lines
.............................
120
7.7.3.4 Single-Line Declarations
....................................................
120
7.7.3.4.1 Variables
...................................................................
120
7.7.3.4.2 Constants
..................................................................
127
7.7.3.4.3 Alias and Unit Declarations
......................................
129
7.7.3.5 Declared Sequences
...........................................................
130
7.7.3.5.1 Data Tables
...............................................................
130
7.7.3.5.2 Subroutines
...............................................................
137
7.7.3.5.3 Incidental Sequences
................................................
137
7.7.3.6 Execution and Task Priority
...............................................
137
7.7.3.6.1 Pipeline Mode
...........................................................
138
7.7.3.6.2 Sequential Mode
.......................................................
139
7.7.3.7 Execution Timing
...............................................................
140
7.7.3.7.1 Scan() / NextScan
.....................................................
141
7.7.3.7.2 SlowSequence / EndSequence
..................................
142
7.7.3.7.3 SubScan() / NextSubScan
.........................................
142
7.7.3.7.4 Scan Priorities in Sequential Mode
...........................
142
7.7.3.8 Instructions
.........................................................................
144
7.7.3.8.1 Measurement and Data-Storage Processing
..............
144
7.7.3.8.2 Argument Types
.......................................................
145
7.7.3.8.3 Names in Arguments
................................................
145
7.7.3.8.4 Expressions in Arguments
........................................
146
7.7.3.8.5 Arrays of Multipliers and Offsets
.............................
146
7.7.3.9 Expressions
........................................................................
147
7.7.3.9.1 Floating-Point Arithmetic
.........................................
147
7.7.3.9.2 Mathematical Operations
..........................................
148
7.7.3.9.3 Expressions with Numeric Data Types
.....................
148
7.7.3.9.4 Logical Expressions
..................................................
150
7.7.3.9.5 String Expressions
....................................................
152
7.7.3.10 Program Access to Data Tables
.......................................
153
7.7.3.11 System Signatures
............................................................
155
7.7.4 Tips
..............................................................................................
155
7.7.4.1 Use of Variable Arrays to Conserve Code Space
...............
155
7.7.4.2 Use of Move() to Conserve Code Space
............................
155
7.8 Programming Resource Library
............................................................
156
7.8.1 Calibration Using FieldCal() and FieldCalStrain()
......................
156
7.8.1.1 CAL Files
...........................................................................
156
7.8.1.2 CRBasic Programming
.......................................................
156
7.8.1.3 Calibration Wizard Overview
............................................
157
7.8.1.4 Manual Calibration Overview
............................................
157
7.8.1.4.1 Single-Point Calibrations (zero, offset, or zero
basis)
................................................................................
157
7.8.1.4.2 Two-point Calibrations (multiplier / gain)
................
158
7.8.1.5 FieldCal() Demonstration Programs
..................................
158
7.8.1.5.1 Zero or Tare (Option 0)
............................................
159
7.8.1.5.2 Offset (Option 1)
......................................................
160
7.8.1.5.3 Zero Basis (Option 4)
...............................................
162
7.8.1.5.4 Two-Point Slope and Offset (Option 2)
....................
164
7.8.1.5.5 Two-Point Slope Only (Option 3)
............................
166
7.8.1.6 FieldCalStrain() Demonstration Program
..........................
167
7.8.1.6.1 Quarter-Bridge Shunt (Option 13)
............................
170
7.8.1.6.2 Quarter-Bridge Zero (Option 10)
..............................
170