Programming the VT1422A for Data Acquisition and Control 95Chapter 4

Chapter 4

Programming the VT1422A forData Acquisition and Control
About This Chapter The focus in this chapter is to show the VT1422A’s general programming
model. The programming model is basically the sequence of SCPI
commands the application program will send to the VT1422A to configure
it to execute the defined Scan List and/or algorithms. This chapter contains:
Overview of the VT1422A Multifunction DAC Module. . . . page 96
Multifunction DAC?. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . page 97
Flexible Signal Conditioning for Input and Output . . . . page 97
Remote Multiplexing and Signal Conditioning . . . . . . . page 97
Programmable Signal Conditioning and EU Conversion page 98
Scan List and/or C Language Control Programming . . . page 98
Runtime Remote Scan Verification. . . . . . . . . . . . . . . . . page 98
Programming Model. . . . . . . . . . . . . . . . . . . . . . . . . . . . . page 102
Executing the Programming Model . . . . . . . . . . . . . . . . . . . page 104
Programming Overview Diagram. . . . . . . . . . . . . . . . . . . page 106
-- Setting up Analog Input and Output Channels. . . . . . . . . page 107
Configuring Programmable Analog SCP Parameters. . page 107
Linking Input Channels to EU Conversion. . . . . . . . . . page 109
Linking Output Channels to Functions. . . . . . . . . . . . . . page 117
-- Setting Up Digital Input and Output Channels. . . . . . . . . . page 118
Setting Up Digital Inputs . . . . . . . . . . . . . . . . . . . . . . . . page 118
Setting Up Digital Outputs . . . . . . . . . . . . . . . . . . . . . . . page 119
-- Performing Channel Calibration (Important!) . . . . . . . . . page 122
Calibrating the VT1422A . . . . . . . . . . . . . . . . . . . . . . . page 122
Calibrating Remote Signal Conditioning Units . . . . . . page 123
-- Defining an Analog Input Scan List (ROUT:SEQ:DEF) . page 123
-- Defining C Language Algorithms. . . . . . . . . . . . . . . . . . . page 125
Global Variable Definition . . . . . . . . . . . . . . . . . . . . . . page 126
Algorithm Definition. . . . . . . . . . . . . . . . . . . . . . . . . . . page 126
Pre-setting Algorithm Variables . . . . . . . . . . . . . . . . . . page 126
-- Defining Data Storage. . . . . . . . . . . . . . . . . . . . . . . . . . . . page 127
Specifying the Data Format . . . . . . . . . . . . . . . . . . . . . page 127
Selecting the FIFO Mode . . . . . . . . . . . . . . . . . . . . . . . page 128
-- Setting up the Trigger System. . . . . . . . . . . . . . . . . . . . . . page 129
Arm and Trigger Sources . . . . . . . . . . . . . . . . . . . . . . . page 129
Programming the Trigger Timer. . . . . . . . . . . . . . . . . . page 131
-- INITiating the Module/Starting Scanning and Algorithms page 132
The Operating Sequence . . . . . . . . . . . . . . . . . . . . . . . . page 133