VXI VT1422A User Manual

Page 12

Advertising
background image

12 Contents

Chapter 5

Advanced Programming with the VT1529B . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161

About This Chapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161

Additional Capabilities of the VT1529B . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161

Changes to the Use Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162

Engineering Units Conversion Done in VXIplug&play Driver . . . . . . . . . 162
Must Count writefifo Calls in Algorithms . . . . . . . . . . . . . . . . . . . . . . . . . . 163
New SCPI Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163

Strain Measurements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164

Field Wiring for Excitation Measurements . . . . . . . . . . . . . . . . . . . . . . . . . 165
Strain Measurement Command Sequence . . . . . . . . . . . . . . . . . . . . . . . . . . 165
Strain Conversion Sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167
Alternate Method of Computing Strain . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168

Temperature Measurements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170

Connecting the VT1586A to the VT1529B . . . . . . . . . . . . . . . . . . . . . . . . . . 170
Field Wiring of the VT1586A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172
Temperature Measurement Command Sequence . . . . . . . . . . . . . . . . . . . . 174
Temperature Conversion Sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175

Voltage Measurements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175

Field Wiring for dc Voltage Measurements . . . . . . . . . . . . . . . . . . . . . . . . . 176
DCV Measurement Command Sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
DCV Measurement Sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178

Settling Time Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178

Chapter 6

Creating and Running Algorithms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181

About This Chapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181

Overview of the Algorithm Language . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182

Example Language Usage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183

The Algorithm Execution Environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184

The Main Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184
How User Algorithms Fit In . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184

Accessing the VT1422A's Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185

Accessing I/O Channels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186
Accessing Remote Scan Status Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . 187
Runtime Remote Scan Verification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187
Defining and Accessing Global Variables . . . . . . . . . . . . . . . . . . . . . . . . . . 190
Determining First Execution (First_loop) . . . . . . . . . . . . . . . . . . . . . . . . . . 190
Initializing Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191
Sending Data to the CVT and FIFO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191
Setting a VXIbus Interrupt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192
Determining An Algorithm's Identity (ALG_NUM) . . . . . . . . . . . . . . . . . 193
Calling User Defined Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193

Operating Sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194

Overall Sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194
Algorithm Execution Order . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194

Advertising
This manual is related to the following products: