
VT1422A Remote Channel Multi-Function DAC Module with VT1529A/B 32 Ch Remote Strain Conditioning Unit and VT1539A Remote Channel Signal Conditioning Plug-On
Module configuration and wiring This Manual SCPI programming This Manual SCPI example programs This Manual, Driver Disc SCPI command reference This Manual
VXIplug&play programming VXIplug&play Online Help VXIplug&play example programs VXIplug&play Online Help VXIplug&play function reference VXIplug&play Online Help Soft Front Panel information VXIplug&play Online Help
VISA language information VISA User's Guide
VEE programming information VEE User's Manual

This page is blank.

PRODUCT: VT1422A Remote Channel Multi-function DAC Module, DURATION OF WARRANTY: 3 years VT1529A/B Remote Strain Conditioning Module, VT1539A Remote Channel Signal Conditioning Plug-on, and all other applicable Signal Conditioning Plug-ons
FOR CONSUMER TRANSACTIONS IN AUSTRALIA AND NEW ZEALAND: THE WARRANTY TERMS CONTAINED IN THIS STATEMENT, EXCEPT TO THE EXTENT LAWFULLY PERMITTED, DO NOT EXCLUDE, RESTRICT OR MODIFY AND ARE IN ADDITION TO THE MANDATORY STATUTORY RIGHTS APPLICABLE TO THE SALE OF THIS PRODUCT TO YOU.
U.S. Government Restricted Rights
The Software and Documentation have been developed entirely at private expense. They are delivered and licensed as "commercial computer software" as defined in DFARS 252.227- 7013 (Oct 1988), DFARS 252.211-7015 (May 1991), or DFARS 252.227-7014 (Jun 1995), as a "commercial item" as defined in FAR 2.101(a) or as "Restricted computer software" as defined in FAR 52.227-19 (Jun 1987) (or any equivalent agency regulation or contract clause), whichever is applicable. You have only those rights provided for such Software and Documentation by the applicable FAR or DFARS clause or the VXI Technology standard software agreement for the product involved.
VT1422A Remote Channel Multi-Function DAC Module User's and SCPI Programming Manual
Copyright © 2005 VXI Technology, Inc. All Rights Reserved.

Alternating current (ac) Instruction manual symbol affixed to product. Indicates that the user must refer to the manual for specific WARNING or CAUTION information to avoid personal injury or damage to the product.
Direct current (dc).
Indicates hazardous voltages.
Indicates the field wiring terminal that must be connected to earth ground before operating the equipment—protects against electrical shock in case of fault.
Calls attention to a procedure, practice, or condition that could cause bodily injury or death.
Calls attention to a procedure, practice or condition that could possibly cause damage to equipment or permanent loss of data.
Frame or chassis ground terminal— typically connects to the equipment's metal
WARNINGS
The following general safety precautions must be observed during all phases of operation, service, and repair of this product. Failure to comply with these precautions or with specific warnings elsewhere in this manual violates safety standards of design, manufacture, and intended use of the product. VXI Technology assumes no liability for the customer's failure to comply with these requirements.
Ground the equipment: For Safety Class 1 equipment (equipment having a protective earth terminal), an uninterruptible safety earth ground must be provided from the mains power source to the product input wiring terminals or supplied power cable.
DO NOT operate the product in an explosive atmosphere or in the presence of flammable gases or fumes.
For continued protection against fire, replace the line fuse(s) only with fuse(s) of the same voltage and current rating and type. DO NOT use repaired fuses or short-circuited fuse holders.
Keep away from live circuits: Operating personnel must not remove equipment covers or shields. Procedures involving the removal of covers or shields are for use by service-trained personnel only. Under certain conditions, dangerous voltages may exist even with the equipment switched off. To avoid dangerous electrical shock, DO NOT perform procedures involving cover or shield removal unless you are qualified to do so.
DO NOT operate damaged equipment: Whenever it is possible that the safety protection features built into this product have been impaired, either through physical damage, excessive moisture or any other reason, REMOVE POWER and do not use the product until safe operation can be verified by service-trained personnel. If necessary, return the product to VXI Technology for service and repair to ensure that safety features are maintained.
DO NOT service or adjust alone: Do not attempt internal service or adjustment unless another person, capable of rendering first aid and resuscitation, is present.
DO NOT substitute parts or modify equipment: Because of the danger of introducing additional hazards, do not install substitute parts or perform any unauthorized modification to the product. Return the product to VXI Technology for service and repair to ensure that safety features are maintained.
Operating Location: Sheltered location where air temperature and humidity are controlled within this product’s specifications and the product is protected against direct exposure to climatic conditions such as direct sunlight, wind, rain, snow, sleet and icing, water spray or splash, hoarfrost or dew (typically, indoor). Pollution environment for which this product may be operated is IEC 664 Pollution degree 2.
Cleaning the front panel and top/bottom Shields: Clean the outside surfaces of this module with a cloth slightly dampened with water. Do not attempt to clean the interior of this module.
If this symbol appears on your product, it indicates that it was manufactured after August 13, 2005. This mark is placed in accordance with EN 50419, Marking of electrical and electronic equipment in accordance with Article 11(2) of directive 2002/96/EC (WEEE). End-of-life product can be returned to VTI by obtaining an RMA number. Fees for recycling will apply if not prohibited by national law. SCP cards for use with the VT1422A have this mark placed on their packaging due to the densely populated nature of these cards.
Safety Symbols · or

Declares, that the product
Product Name: Remote Channel Multi-function DAC Module Model Number: VT1422A Product Options: This declaration covers all options of the above product(s).
Conforms with the following European Directives:
The product herewith complies with the requirements of the Low Voltage Directive 73/23/EEC and the EMC Directive 89/336/EEC (including 93/68/EEC) and carries the CE Marking accordingly.
Conforms with the following product standards:
IEC 61326-1:1997+A1:1998 / EN 61326-1:1997+A1:1998 CISPR 11:1990 / EN 55011:1991 IEC 61000-4-2:1995+A1:1998 / EN 61000-4-2:1995 IEC 61000-4-3:1995 / EN 61000-4-3:1995 IEC 61000-4-4:1995 / EN 61000-4-4:1995 IEC 61000-4-5:1995 / EN 61000-4-5:1995 IEC 61000-4-6:1996 / EN 61000-4-6:1996 IEC 61000-4-11:1994 / EN 61000-4-11:1994
Group 1 Class A 4kV CD, 8kV AD 3 V/m, 80-1000 MHz 0.5kV signal lines, 1kV power lines 0.5 kV line-line, 1 kV line-ground 3V, 0.15-80 MHz Dips: 30% 10ms; 60% 100 ms Interrupt > 95%@5000 ms
The product was tested in a typical configuration with VXI Technology test systems.
Safety IEC 61010-1:1990+A1:1992+A2:1995 / EN 61010-1:1993+A2:1995 Canada: CSA C22.2 No. 1010.1:1992 UL 3111-1: 1994

Steve Mauga Quality Assurance Manager
EMC Standard Limit · 15 March 2002 · Date

Declares, that the product
Product Name: Remote Strain Conditioning Unit Model Number: VT1529A, VT1529B Product Options: This declaration covers all options of the above product(s).
Conforms with the following European Directives:
The product herewith complies with the requirements of the Low Voltage Directive 73/23/EEC and the EMC Directive 89/336/EEC (including 93/68/EEC) and carries the CE Marking accordingly.
Conforms with the following product standards:
IEC 61326-1:1997+A1:1998 / EN 61326-1:1997+A1:1998 CISPR 11:1990 / EN 55011:1991 IEC 61000-4-2:1995+A1:1998 / EN 61000-4-2:1995 IEC 61000-4-3:1995 / EN 61000-4-3:1995 IEC 61000-4-4:1995 / EN 61000-4-4:1995 IEC 61000-4-5:1995 / EN 61000-4-5:1995 IEC 61000-4-6:1996 / EN 61000-4-6:1996 IEC 61000-4-11:1994 / EN 61000-4-11:1994
Group 1 Class A 4kV CD, 8kV AD 3 V/m, 80-1000 MHz 0.5kV signal lines, 1kV power lines 0.5 kV line-line, 1 kV line-ground 3V, 0.15-80 MHz I cycle, 100% Dips: 30% 10 ms; 60% 100 ms Interrupt > 95%@5000 ms
Canada ICES-001 Australia AS/NZS/2064 Russia GOST 23450-79 Czech Republic CSN EN55011 Hungary MSZ EN55011
The product was tested in a typical configuration with VXI Technology test systems.
Safety IEC 61010-1:1990+A1:1992+A2:1995 / EN 61010-1:1993+A2:1995 Canada: CSA C22.2 No. 1010.1:1992 UL 3111-1
Steve Mauga Quality Assurance Manager
EMC Standard Limit · 15 March 2002 · Date

Declares, that the product
Product Name: Remote Channel Signal Conditioning Plug-on Model Number: VT1539A Product Options: This declaration covers all options of the above product(s).
Conforms with the following European Directives:
The product herewith complies with the requirements of the Low Voltage Directive 73/23/EEC and the EMC Directive 89/336/EEC (including 93/68/EEC) and carries the CE Marking accordingly.
Conforms with the following product standards:
IEC 61326-1:1997+A1:1998 / EN 61326-1:1997+A1:1998 Canada ICES-001:1998 Australia/New Zealand AS/NZS/2064.1 Russia GOST 23450-79 Czech Republic CSN EN 55011 Hungary MSZ EN 55011
The product was tested in a typical configuration with VXI Technology test systems.
Safety IEC 61010-1:1990+A1:1992+A2:1995 / EN 61010-1:1993+A2:1995 Canada: CSA C22.2 No. 1010.1:1992 UL 3111-1: 1994
Steve Mauga Quality Assurance Manager
EMC Standard Limit · 30 July 2001 · Date














Support resources for this product are available on the Internet and at VXI Technology customer support centers.
VXI Technology, Inc. 2031 Main Street Irvine, CA 92614-6509

VXI Technology, Inc. 7525 Granger Road, Unit 7 Valley View, OH 44125
VXI Technology, Inc. 1924 - 203 Bickford Snohomish, WA 98290
Visit http://vxitech.com for worldwide support sites and service plan information.
Support 21

22 Support

About this Chapter
This chapter will explain hardware configuration before installation in a VXIbus mainframe. By attending to each of these configuration items, the VT1422A won't have to be removed from its mainframe later. Chapter contents include:
There are several aspects to configuring the module before installing it in a VXIbus mainframe. They are:
For most applications, only the Logical Address switch needs to be changed prior to installation. The other settings can be used as delivered.
Logical Address Switch 208
Input Protect Jumper Protected
Flash Memory Protect Jumper PROG
Getting Started 23 Chapter 1
Switch/Jumper Setting

Follow the next figure and ignore any switch numbering printed on the Logical Address switch. When installing more than one VT1422A in a single VXIbus Mainframe, set each instrument to a different Logical Address.

24 Getting Started Chapter 1

The following illustrations show the steps used to install Signal Conditioning Plug-ons (SCPs). Before installing an SCPs, reading the "Separating Digital and Analog SCP Signals" in Appendix E page 483 is recommended.
Plug-Ons

Getting Started 25 Chapter 1


26 Getting Started Chapter 1


Getting Started 27 Chapter 1


28 Getting Started Chapter 1

Disabling the Input Protect feature voids the VT1422A's warranty. The Input Protect feature allows the VT1422A to open all channel input relays if any input's voltage exceeds ±19 volts (±6 volts for digital I/O SCPs). This feature will help to protect the card's Signal Conditioning Plug-ons, input multiplexer, ranging amplifier and A/D from destructive voltage levels. The level that trips the protection function has been set to provide a high probability of protection. The voltage level that is certain to cause damage is somewhat higher. If, in an application, the importance of completing a measurement run outweighs the added risk of damage to the VT1422A, the input protect feature may be disabled.
Feature (Optional)
Voids Warranty! Disabling the Input Protection Feature voids the VT1422A's warranty.
To disable the Input Protection feature, locate and cut JM2202. Make a single cut in the jumper and bend the adjacent ends apart. See following illustration for location of JM2202.
The Flash Memory Protect Jumper (JM2201) is shipped in the “PROG” position. It is recommended that the jumper be left in this position so that all of the calibration commands can function. Changing the jumper to the protect position prevents the following from being executed:
With the jumper in the “PROG” position, one or more VT1422As can be completely calibrated without removing them from the application system. A VT1422A calibrated in its working environment will, in general, be better calibrated than if it were calibrated separate from its application system.
The multimeter used during the periodic calibration cycle should be considered the calibration transfer standard. Allow Calibration Organization control unauthorized access to the calibration constants.
If access must be limited to the VT1422A's calibration constants, place JM2201 in the protected position and cover the shield retaining screws with calibration stickers. See the following illustration for location of JM2201.
Getting Started 29 Chapter 1


30 Getting Started Chapter 1

Installation of the VT1422A VXI module is covered in the mainframe manual.
Two driver types are supplied on the VXIplug&play Drivers & Product Manuals CD that comes with the VT1422A. There is a VXIplug&play driver which includes a front panel program and help file. In addition, there is also a downloadable driver for the Agilent/HP E1406A Command Module. View the readme.txt file provided with the VXIplug&play driver for possible update information.
Examples on CD All example programs mentioned by file name in this manual are available on the VXIplug&play Drivers & Product Manuals CD supplied with the VT1422A. Again, see the readme.txt file for the specific file locations of these examples.
Where programming concepts are discussed in this manual, the commands to send to the VT1422A are shown in the form of command sequences. These are not example programs because they are not written in any computer language. They are meant to show the VT1422A SCPI commands in the sequence they should be sent. Where necessary these sequences include comments to describe program flow and control such as loop - end loop and if - end if. See “Example SCPI Command Sequence” on page 139. for an example. For VXIplug&play users, there is an “Example VXIplug&play Driver Function Sequence” on page 140.
The Verify program (file name verif.cpp) is printed below to show a typical VXIplug&play program for the VT1422A.
Getting Started 31 Chapter 1

An example C program source is shown on the following pages. This program is included on the VXI Technology VXIplug&play Drivers & Product Manuals CD that comes with the VT1422A (file name verif.cpp). The program uses the *IDN? query command to verify the VT1422A is operational and responding to commands. The program also has an error checking function (check()). It is important to include an instrument error checking routine in the programs created, particularly the initial trial programs, so that instant feedback can be attained while learning about the VT1422A. Compile this program according to the plug&play help file (hpe1422.hlp) topics "Introduction to Programming" → "Compiling and Linking Programs Using Integrated Environments."
/******************************************************************************* verif.cpp
This example program verifies your instrument installation by reading the instrument IDs and then querying for and printing the SCP types found. Use the "Copy Button" in the Help File's "Example" window to place this code into the clipboard, then paste this code text into your development tool's editor window. Similarly, "Copy" the actual example code from the help file's "Example" window and paste it into the location provided below.
link with the hpe1422_32.lib - library file
#include #include #include #include /* include the driver header file */
/* GPIB-VXI addressing (0 is the interface number, 208 is the */ /* instrument logical address, INSTR is a VISA resource type) */ #define INSTR_ADDRESS "GPIB-VXI0::208::INSTR"
ViSession addr; ViStatus errStatus;
/* Function Prototypes */ void main (void); /* Main function */ void rst_inst(void); /* Resets the instrument and sends a device clear */ void reads_instrument_id(void); /* reads instrument software revision */ void check (ViSession addr, ViStatus errStatus); /* checks module errors */
/*******************************************************************************/ void main (void) /* Main function */ { ViChar err_message[256];
/* open device session and reset the instrument; check if successful */ errStatus = hpe1422_init(INSTR_ADDRESS,0,0,&addr); if( VI_SUCCESS > errStatus) { hpe1422_error_message( addr, errStatus, err_message); printf("Unable to open %s\n", INSTR_ADDRESS); printf("hpe1422_init() returned error message %s\n", err_message);
32 Getting Started Chapter 1
******************************************************************************* */

rst_inst(); /* Resets the instrument and sends a device clear */
reads_instrument_id(); /* Reads instrument software revision */
/* close the device session */ hpe1422_close(addr); }
/****************************************************************************/ void rst_inst(void) /* Function to set the interface timeout period, resets the instrument, */ /* waits for completion of reset and sends a device clear to enable */ /* the instrument to receive a new command */ { ViInt32 result;
/* set timeout to allow completion of reset */ errStatus = hpe1422_timeOut(addr, 5000); check(addr, errStatus); /* reset the instrument */ errStatus = hpe1422_reset(addr); check(addr, errStatus);
/* wait for completion of *RST */ errStatus = hpe1422_cmdInt32_Q(addr,"*OPC?",&result); check(addr, errStatus);
/* send a device clear to enable new commands to be sent to the instrument */ errStatus = hpe1422_dcl(addr); check(addr, errStatus);
/* enables automatic error checking after each driver call */ errStatus = hpe1422_errorQueryDetect( addr, VI_TRUE);
/****************************************************************************/ void reads_instrument_id(void) /* Function uses a hpe1422__revision_query to read the software revision */ /* string. */ { ViChar driver_rev[256]; ViChar instr_rev[256];
/* Query the instrument for its firmware revision */ errStatus = hpe1422_revision_query(addr, driver_rev, instr_rev);
/* Print the results */ printf("The instrument driver's revision is %s\n", driver_rev); printf("The instrument's firmware revision is %s\n", instr_rev); }
/****************************************************************************/ /****************************************************************************/ /* error checking routine */ void check (ViSession addr, ViStatus errStatus) { ViInt32 err_code; ViChar err_message[256];
Getting Started 33 Chapter 1
return; } · }

if(VI_SUCCESS > errStatus) { hpe1422_dcl(addr); /* send a device clear */ if(hpe1422_INSTR_ERROR_DETECTED == errStatus) { /* read instrument error until error queue is empty*/
do { hpe1422_error_query( addr, &err_code, err_message); if(err_code != 0) printf("Instrument Error : %ld, %s\n", err_code, err_message);
} while(err_code != 0); } else { /* query the instrument */ hpe1422_error_message( addr, errStatus, err_message); /* display the error */ printf("Driver Error : %ld, %s\n", errStatus, err_message); } }
34 Getting Started Chapter 1
return; }

About This Chapter
This chapter shows how to plan and connect field wiring to the VT1422A's Terminal Module. The chapter explains proper connection of analog signals to the VT1422A, both two-wire voltage type and four-wire resistance type measurements. Connections for other measurement types (e.g. strain using the Bridge Completion SCPs) refer to the specific SCP manual. Chapter contents include:
The first point to understand is that the VT1422A makes no assumptions about the relationship between Signal Conditioning Plug-on (SCP) function and the position in the VT1422A that it can occupy. Any type of SCP can be placed into any SCP position. There are, however, some factors which should be considered when planning what mix of SCPs should be installed in each of the VT1422As. The following discussions will help explain and clarify these factors.
The VT1422A has a fixed relationship between Signal Conditioning Plug-on positions and the channels they connect to. Each of the eight SCP positions can connect to eight channels. Figure 2-1 shows the channel number to SCP relationship.
Field Wiring 35 Chapter 2


Figure 2-1. Channel Numbers at SCP Positions
36 Field Wiring Chapter 2

Some SCPs provide input signal conditioning (sense SCPs such as filters and amplifiers) while others provide stimulus to the measurement circuit (output SCPs such as current sources and strain bridge completion). In general, channels at output SCP positions are not used for external signal sensing but are paired with channels of a sense SCP. Two points to remember about mixing output and sense SCPs:
Figure 2-2 illustrates an example of "pairing" output SCP channels with sense SCP channels (in this example, four-wire resistance measurements).

Figure 2-2. Pairing Output and Sense SCP Channels
Field Wiring 37 Chapter 2

Using either the Screw Terminal or Spring Terminal Modules, thermocouples and the thermocouple reference temperature sensor can be wired to any of the VT1422A's channels. When the scan list is executed, one must ensure that the reference temperature sensor is specified in the channel sequence before any of the associated thermocouple channels.
External wiring and connections to the VT1422A are made using Terminal Modules (see Figures 2-4 through 2-6).
Note To make good low-noise measurements, shielded wiring must be used from the device under test to the Terminal Module at the VT1422A. The shield must be continuous through any wiring panels or isothermal reference connector blocks and must be grounded at a single point to prevent ground loops. See "Preferred Measurement Connections" later in this section and “Wiring and Noise Reduction Methods” on page 483.
38 Field Wiring Chapter 2

Figure 2-3 shows the Faceplate Connector Pin Signal List for the VT1422A.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
GND G0 G1 H08 L08 H11 L11 H14 L14 H17 L17 H20 L20 H23 L23 G2 H27 L27 H30 L30 G3 G3 GND
H00 H01 H02 H03 H04 H05 H06 H07 H09 H10 H12 H13 H15 H16 H18 H19 H21 H22 H24 H25 H26 H28 H29 H31 G3 G3 GND HOHM HCAL GND H_I GND
L00 L01 L02 L03 L04 L05 L06 L07 L09 L10 L12 L13 L15 L16 L18 L19 L21 L22 L24 L25 L26 L28 L29 L31 G3 G3 GND LOHM LCAL GND L_I GND
32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
H L G H L G
1 2 3 4 5 6
HCAL LCAL GND HOHM LOHM GND
6 5 4 3 2 1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
GND GND GND TST-A GND G4 G4 G4 L33 H33 L36 H36 G5 L40 H40 L43 H43 L46 H46 L49 H49 L52 H52 L55 H55 G6 G7 GND
GND TRG GND SYSF GND G4 G4 G4 H32 H34 H35 H37 H38 H39 H41 H42 H44 H45 H47 H48 H50 H51 H53 H54 H56 H57 H58 H59 H60 H61 H62 H63
GND G4 G4 G4 L32 L34 L35 L37 L38 L39 L41 L42 L44 L45 L47 L48 L50 L51 L53 L54 L56 L57 L58 L59 L60 L61 L62 L63
32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
Figure 2-3. VT1422A Faceplate Connector Pin Signals
Field Wiring 39 Chapter 2

The VT1422A is comprised of the main A/D module and optionally, a Connector or Terminal Module. The Option 001 Connector Module provides sixteen RJ-45 jacks to allow easy connection of the VT1422A to Remote Signal Conditioning Units (RSCUs) like the VT1529A/B Remote Strain Conditioning Unit. Optional conventional terminal modules include a Terminal Module with screw-clamped terminal blocks (Option 011) and another with spring-clamped terminal blocks (Option 013).
The Spring Terminal Module and Screw Terminal Module provide:
The RJ-45 Connector Module provides:
Each SCP includes a set of labels to map that SCP's channels to the Terminal Module's terminal blocks. See “Installing SCPs: Step 4, Labeling” on page 28
Figures 2-4 through 2-6 show the layout and feature location of the Terminal Modules available for the VT1422A.
WARNING When handling user wiring connected to the Terminal Module, consider the highest voltage present accessible on any terminal. Use only wire with an insulation rating greater than the highest voltage which will be present on the Terminal Module. Do not touch any circuit element connected to the Terminal Module if any other connector to the Terminal Module is energized to more than 30 V ac rms or 60 V dc.
40 Field Wiring Chapter 2

Figure 2-4 shows the VT1422A Option 001 RJ-45 Connector Module with connector pin numbering.

RJ-45 Connector Module Pinout for Std SCP I/O (even chs 0,2,4,6)
0 1 8 9 16 17 24 25 32 33 40 41 48 49 56 57
RJ-45 Connector Module Pinout for Std SCP I/O (odd chs 1,3,5,7)
Figure 2-4. RJ-45 Connector Module and Pin-out
Figure 2-5 shows the VT1422A Option 013 Spring Terminal Module features and jumper locations.
Field Wiring 41 Chapter 2


H L G H L G H L G H L G H L G H L G H L G H L
H L G H L G H L G H L G H L G H L G H L G H L G
Jumper to select for On-board or Remote Temperature Sensing
Terminal Block with Remote Temperature Sensing, Trigger, and other Connections On-board Thermistor for Temperature Sensing
Figure 2-5. VT1422A Spring Terminal Module
42 Field Wiring Chapter 2

Figure 2-6 shows the VT1422A Option 011 Screw Terminal Module features and jumper locations.

Figure 2-6. VT1422A Screw Terminal Module
Field Wiring 43 Chapter 2

The Screw Terminal and Spring Terminal Modules provide an on-board thermistor for sensing isothermal reference temperature of the terminal blocks. Also provided is a jumper set (J1 in Figures 2-7 and 2-8) to route the VT1422A's on-board current source to a thermistor or RTD on a remote isothermal reference block. Figure 2-7 and Figure 2-8 show connections for both local and remote sensing. See “Connecting the On-Board Thermistor” on page 49 for location of J1.

Figure 2-7. On-Board Thermistor Connection

Figure 2-8. Remote Thermistor or RTD Connections
44 Field Wiring Chapter 2

The isothermal characteristics of the VT1422A Terminal Module are crucial for good TC readings and can be affected by any of the following factors:
1. The clear plastic cover must be on the Terminal Module. 2. The thin white mylar thermal barrier must be inserted over the Terminal Module connector. This prevents airflow from the VT1422A A/D Module into the Terminal Module. 3. The Terminal Module must also be in a fairly stable temperature environment and it is best to minimize the temperature gradient between the VT1422A module and the Terminal Module. 4. The VXI mainframe cooling fan filters must be clean and there should be as much clear space in front of the fan intakes as possible. 5. Recirculating warm air inside a closed rack cabinet can cause a problem if the Terminal Module is suspended into ambient air that is significantly warmer or cooler. If the mainframe recess is mounted in a rack with both front and rear doors, closing both doors helps keep the entire VT1422A at a uniform temperature. If there is no front door, try opening the back door. 6. VXI Technology recommends that the cooling fan switch on the back of the of the CT-400 Mainframe be in the "High" position. The normal variable speed cooling fan control can make the internal VT1422A module temperature cycle up and down, which affects the amplifiers with these microvolt-level signals.
Field Wiring 45 Chapter 2

For any A/D Module to scan channels at high speeds, it must use a very short sample period (< 10 μs for the VT1422A). If significant normal mode noise is presented to its inputs, that noise will be part of the measurement. To make quiet, accurate measurements in electrically noisy environments, use properly connected shielded wiring between the A/D and the device under test. Figure 2-9 shows recommended connections for powered transducers, thermocouples, and resistance transducers. (See Appendix E page 483 for more information on Wiring Techniques.)
Notes 1. Try to install Analog SCPs relative to Digital I/O as shown in "Separating Digital and Analog Signals" in Appendix E. 2. Use individually shielded, twisted-pair wiring for each channel. 3. Connect the shield of each wiring pair to the corresponding Guard (G) terminal on the Terminal Module (see Figure 2-10 for schematic of Guard to Ground circuitry on the Terminal Module). 4. The Terminal Module is shipped with the Ground-to-Guard (GND-GRD) shorting jumper installed for each channel. These may be left installed or removed (see Figure 2-11 to remove the jumper), dependent on the following conditions:
a. Grounded Transducer with shield connected to ground at
the transducer: Low frequency ground loops (dc and/or 50/60 Hz) can result if the shield is also grounded at the Terminal Module end. To prevent this, remove the GND-GRD jumper for that channel (Figure 2-9 A/C). b. Floating Transducer with shield connected to the transducer at
the source: In this case, the best performance will most likely be achieved by leaving the GND-GRD jumper in place (Figure 2-9 B/D). 5. In general, the GND-GRD jumper can be left in place unless it is necessary to remove to break low frequency (below 1 kHz) ground loops. 6. Use good quality foil or braided shield signal cable. 7. Route signal leads as far as possible from the sources of greatest noise. 8. In general, don't connect Hi or Lo to Guard or Ground at the VT1422A. 9. It is best if there is a dc path somewhere in the system from Hi or Lo to Guard/Ground. 10.The impedance from Hi to Guard/Ground should be the same as from Lo to Guard/Ground (balanced). 11.Since each system is different, don't be afraid to experiment using the suggestions presented here until an acceptable noise level is found.
46 Field Wiring Chapter 2


Remove Jumper to break Ground Loop (shield connected to ground at transducer)
Leave Jumper in Place (transducer floating)

Remove Jumper to break Ground Loop (shield connected to ground at transducer)
Leave Jumper in Place (transducer floating)

Jumper may be left in place as Current Lo (+) is at VT1422A GND Potential
Figure 2-9. Preferred Signal Connections
Field Wiring 47 Chapter 2
Device Under Test · Device Under Test · Shield


Figure 2-10. GRD/GND Circuitry on Terminal Module

Figure 2-11. Grounding the Guard Terminals
48 Field Wiring Chapter 2

The following figures show how to use the VT1422A to make temperature measurements using the on-board Thermistor or a remote reference sensor. The Thermistor is used for reference junction temperature sensing for thermocouple measurements. Figure 2-12 shows the configuration for the VT1422A’s Spring Terminal Module, Figure 2-6 shows the configuration for the Screw Terminal Module. See “Reference Temperature Sensing with the VT1422A” on page 44 for a schematic diagram of the reference connections.

ON BOARD Place both J1 jumpers here to connect current source to on-board thermistor RT1. Sense RT1 by connecting any sense channels to terminals HTS and LTS.
REMote Place both J1 jumpers here to route current source to terminals HTI and LTI. Connect these terminals to remote thermistor or RTD. Sense with any sense channel.
See Figure 2-13 on page 50 to remove the cover
Figure 2-12. Temperature Sensing for the Terminal Module
Field Wiring 49 Chapter 2
Under Cove · r

Figures 2-13 and 2-14 show how to open, wire and attach the terminal module to a VT1422A.

Figure 2-13. Opening and Wiring the VT1422A’s Terminal Module
50 Field Wiring Chapter 2


A. Hook in the top cover tabs onto the fixture
Keep wiring exit panel hole as small as possible
Push in the Extraction Levers to Lock the Terminal Module onto the VT1422A
Figure 2-14. Closing and Attaching the VT1422A Terminal Module
Field Wiring 51 Chapter 2

Figure 2-15 shows how to remove the Spring Terminal and Screw Terminal Modules from the VT1422A.

1 Release the two extraction levers and push both levers out simultaneously
2 Free and remove the Terminal Module from the A/D Module
Figure 2-15. Removing the Screw and Spring Terminal Modules
52 Field Wiring Chapter 2

Figure 2-16 shows how to remove the RJ-45 Terminal Module.

Install on VT1422A 1 the Terminal Module onto the VT1422A Push in the Extraction Levers to Lock
Releasing the Extraction Levers to Remove the Terminal Module 3
Figure 2-16. Removing the RJ-45 Terminal Module
Field Wiring 53 Chapter 2

The back of the terminal module PCB (printed circuit board) provides surface mount pads which can be used to add serial and parallel components to any channel's signal path. Figure 2-17 shows additional component locator information (see the schematic and pad layout information on the back of the terminal module PCB). Figure 2-18 shows some usage example schematics.

Upper layout also applies here Upper layout also applies here
Lower layout also applies here Lower layout also applies here
Figure 2-17. Additional Component Location

4-20 mA NOTE: input must not exceed common mode limits (usually ±16 volts unless attenuated with a VT1513A SCP)
4 to 20 mA Sense 5 V full scale with 250 ohm (must use 16 volt range) 4 V full scale with 200 ohm (can use 4 volt range for better resolution)
Figure 2-18. Series & Parallel Component Examples
54 Field Wiring Chapter 2

Figure 2-19 shows the Spring Terminal Module wiring map.
H16
H08
H00
L24 G24 H25
L16 G16 H17
L08 G08 H09
L00 G00 H01
L25 G25 H26
L17 G17 H18
L09 G09 H10
L01 G01 H02
L26 G26
L18 G18
L10 G10
L02 G02
H27
H19
H11
H03
L27 G27 H28
L19 G19 H20
L11 G11 H12
L03 G03 H04
L28 G28 H29
L20 G20 H21
L12 G12 H13
L04 G04 H05
L21 G21
L13 G13
L29 G29
L05 G05
H30
H22
H14
H06
L30 G30 H31
L22 G22 H23
L14 G14 H15
L06 G06 H07
L31 G31
L23 G23
L15 G15
L07 G07
GND GND GND GND
LTS HTS
All wiring entering Terminal
Module passes under this
GND GND GND
G32
G40
G48
G56
L40 H40 G41
L48 H48 G49
L32 H32 G33
L56 H56 G57
L33 H33 G34
L41 H41 G42
L49 H49 G50
L57 H57 G58
L34 H34 G35
L42 H42 G43
L50 H50 G51
L58 H58 G59
L51 H51 G52
L35 H35 G36
L43 H43 G44
L59 H59 G60
L36 H36 G37
L44 H44 G45
L52 H52 G53
L60 H60 G61
L37 H37 G38
L45 H45 G46
L53 H53 G54
L61 H61 G62
L46 H46 G47
L54 H54 G55
L38 H38 G39
L62 H62 G63
L63 H63 Heavy line indicates the side of the terminal block
L47 H47
L55 H55
that the wire enters
Figure 2-19. Spring Terminal Module Full-Size Wring Map
Field Wiring 55 Chapter 2
Top · strain relief bar

Figure 2-20 shows the Screw Terminal Module wiring map.

Figure 2-20. Screw Terminal Module Full-Size Wiring Map
56 Field Wiring Chapter 2

Field Wiring 57 Chapter 2

58 Field Wiring Chapter 2

for Remote Strain Measurement
About This Chapter
This chapter describes using the VT1422A in combination with the VT1539A Remote Channel SCP and VT1529A/B Remote Strain Conditioning Units to make large channel count strain measurements. The system is shown being used strictly in a data acquisition mode where, after configuration, it is driven by a user-defined channel list (the Scan List) and sends the measurements to the unit’s FIFO buffer and Current Value Table (CVT) for transfer to the computer. Of course, control algorithms can also be created that execute concurrently with the Scan List driven data acquisition operation. Chapter 4 and Chapter 6 cover general data acquisition and control programming with algorithms. This chapter assumes that the user is an expert when it comes to making strain measurements, so this chapter simply illustrates how to make strain measurements with the VXI Technology Remote Strain Measuring System (VT1422A, VT1539A, and VT1529A/B). The chapter will cover:
Programming the VT1422A & VT1529A/B for Remote Strain Measurement 57 Chapter 3

This section involves:
The VT1422A requires VT1539A SCPs to control Remote Signal Conditioning Units like the VT1529A/B Remote Strain Conditioning Unit. Chapter 1 “Getting Started” covers everything which is needs to be done before installing the VT1422A in its mainframe. This includes switch settings and SCP installation. After performing the operations in Chapter 1, return here for Remote Strain specific operations.
Installation
Overview Before getting into the specifics of configuring a Remote Strain Measuring System, it might be helpful to see the overall set up. Figure 3-1 shows the components and connections of a remote strain measuring system. The circled letters identify connections that will be referenced in later sections.
Up to 4 excitation supplies
Each VT1422A with VT1539A SCPs and VT1529A/B Remote Strain Units
can support up to 512 strain gages
VT1539A SCP (Up to 8)
Up to 16 VT1529A/Bs
Up to 32 strain
Up to four excitation supplies
VT1529A/B
VT1422A Multifunction DAC Module shown with
an Option 001 RJ-45
Up to 32 strain
Figure 3-1. Components of the Remote Strain Measuring System
58 Programming the VT1422A & VT1529A/B for Remote Strain Measurement Chapter 3
gages · Connector Module · gages

For most applications, the VT1529A/B is ready for installation as delivered. It is designed to be easily rack mounted in a system cabinet by its built-in front panel extensions. All user connection are accessible on the front panel with the exception of the line-cord jack which is on the rear of the unit. The only pre-installation operation which may need to be considered is installation of the user supplied quarter-bridge completion resistors. If these are required by the application, see “Installing User Selected 1/4 Bridge Resistors (Optional)” in the following section.
Perform this operation only if one or more VT1529A/B channels are required to provide 1/4 Bridge completion of other than 120 Ω or 350 Ω. Only those with experience in soldering components on printed circuit boards should attempt this installation. The VT1529A/B provides locations on its printed circuit board for the user’s own 1/4 bridge completion resistors. Bridge configuration commands then can switch these resistors into the bridge completion circuits where the custom value resistors are installed.
WARNING Keep away from live circuits: Operating personnel must not remove equipment covers or shields. Procedures involving the removal of covers or shields are for use by service-trained personnel only. Under certain conditions, dangerous voltages may exist even with the equipment switched off. To avoid dangerous electrical shock, DO NOT perform procedures involving cover or shield removal unless qualified to do so.
Removing the Top Cover Figure 3-2 shows how to access the printed circuit board where the user specified resistors will be installed. Notice that both a surface-mount as well as a through-hole position is provided for each channel.
Programming the VT1422A & VT1529A/B for Remote Strain Measurement 59 Chapter 3


Figure 3-2. Removing the VT1529A/B Top Cover
60 Programming the VT1422A & VT1529A/B for Remote Strain Measurement Chapter 3

Locating Resistors Figure 3-3 provides the relationship between P.C. board location and bridge resistor channel number. The surface mount pads nearest the through-hole locations are in parallel with them.

Figure 3-3. Locating User 1/4 Bridge Resistor Positions
Installing Resistors Figure 3-4 shows a typical user selected 1/4 bridge resistor installation. Note that resistor installations can be accomplished from the top of the board without further disassembly. If installing through-hole resistors, be very careful to observe the specified maximum safe resistor lead length to avoid shorting the resistor to the chassis.

Figure 3-4. Installing User 1/4 Bridge Resistors
Programming the VT1422A & VT1529A/B for Remote Strain Measurement 61 Chapter 3

The cable between a VT1422A and each VT1529A/B (connection "A" in Figure 3-1) is a standard type of cable used in computer Local Area Networks (LANs). The VT1529A/B can be any distance up to 1000 feet (304.8 m) from the VT1422A and the interconnect cable can be easily custom made to fit the installation. This type of cable assembly can typically be found in the IT (Information Technology) department of most companies.
The cable assembly as a whole must comply with the TIA/EIA-568 Category 5 standard for LAN interconnecting cable. This is a performance based standard and will insure that the VT1422A will be able to make accurate measurements from a VT1529A/B over the maximum cable length of 1000 feet (304.8 meters). Additionally, the cable and connectors must be shielded.
Tables 3-1 and 3-2 show part numbers for supplies which can facilitate the production of custom high quality cables for the installation. If a third party builds the cables, make certain they supply cables that comply with the TIA/EIA-568 Category 5 standard and are they are shielded. The part numbers shown here are those of major suppliers in the industry. These numbers can be cross-referenced to other supplier’s equivalent products.
Please note that safety standards for wiring (flammability, etc.) may apply to the installation and that one should check applicable local codes and standards and select the proper type of cable accordingly (plenum vs. non-plenum types, etc.).
Table 3-1. Cable Part Numbers
Cable Part Numbers for Belden Wire & Cable Company
Overall-Shielded Twisted Pair (STP) TIE/EIA-568 Category 5 (4 twisted pairs)
Table 3-2. Connector Part Numbers
Connector Part Numbers for AMP Incorporated
Hooded Boot: (replace X with 0=Gry, 1=Blk, 2=Lt. Almond, 3=Red, 4=Grn, 5=Blu, 6=Yel, 7=Org, 8=Wht, 9=Vio) 569875-X
62 Programming the VT1422A & VT1529A/B for Remote Strain Measurement Chapter 3
‡DuPont trademark · Strain Relief 558527-1

Depending on the Terminal Module ordered with the VT1422A, there are two methods of interconnecting a VT1529A/B to the VT1422A (connection "A" in Figure 3-1).
The RJ-45 Connector Module is used when most or all of VT1422A SCP positions contain a VT1539A Remote Channel SCP. For RSCUs, simply plug one end into the VT1422A and the other into the VT1529A/B’s Data Interface connector. Figure 3-5 shows this connection and includes a schematic diagram of the RJ-45-to-RJ-45 cable. See Figure 2-4 on page 41 for on-board SCP channel connection through the RJ-45 connector module.

Figure 3-5. Connecting VT1529A/Bs to the RJ-45 Connector Module
Programming the VT1422A & VT1529A/B for Remote Strain Measurement 63 Chapter 3

For mixed on-board SCP channels and RSCU operation, spring or screw type terminal modules can be used. For standard SCP channel connections, see Chapter 2 “Field Wiring” on page 35. For remote channels, connect the individual wires from each VT1529A/B’s data interface cable to the appropriate terminals for remote channel operation. The VT1539A SCP is supplied with signal locator labels for each SCP position on a Spring Terminal Module. No label is provided for the Screw terminal module. Instead, Table 3-3 provides the relationship between each VT1539A signal name and associated terminal name as printed on the Terminal Module.
Table 3-3. VT1539A Signal Names
SCP Signal Names - to - Terminal Names
SCP Position Plug Pin#
Terminal Module (SCP’s low channel)
Terminal Module (SCP’s High Channel)
SCP Position 0 Addresses 10000 to 10131
1 Analog+ (wht-green) HI 00 HI 01
2 Analog- (green) LO 00 LO 01
3 Cal+ (wht-orange) HI 02 HI 03
4 RS-485+ (blue) HI 04 HI 05
5 RS-485- (wht-blue) LO 04 LO 05
6 Cal- (orange) LO 02 LO 03
7 Trigger+ (wht-brown) HI 06 HI 07
8 Trigger- (brown) LO 06 LO 07
SCP Position 1 Addresses 10800 to 10931
1 Analog+ (wht-green) HI 08 HI 09
2 Analog- (green) LO 08 LO 09
3 Cal+ (wht-orange) HI 10 HI 11
4 RS-485+ (blue) HI 12 HI 13
5 RS-485- (wht-blue) LO 12 LO 13
6 Cal- (orange) LO 10 LO 11
7 Trigger+ (wht-brown) HI 14 HI 15
8 Trigger- (brown) LO 14 LO 16
SCP Position 2 Addresses 11600 to 11731
1 Analog+ (wht-green) HI 16 HI 17
2 Analog- (green) LO 16 LO 17
3 Cal+ (wht-orange) HI 18 HI 19
4 RS-485+ (blue) HI 20 HI 21
5 RS-485- (wht-blue) LO 20 LO 21
6 Cal- (orange) LO 18 LO 19
7 Trigger+ (wht-brown) HI 22 HI 23
8 Trigger- (brown) LO 22 LO 23
64 Programming the VT1422A & VT1529A/B for Remote Strain Measurement Chapter 3

Table 3-3. VT1539A Signal Names
SCP Signal Names - to - Terminal Names
SCP Position Plug Pin#
Terminal Module (SCP’s low channel)
Terminal Module (SCP’s High Channel)
SCP Position 3 Addresses 12400 to 12531
1 Analog+ (wht-green) HI 24 HI 25
2 Analog- (green) LO 24 LO 25
3 Cal+ (wht-orange) HI 26 HI 27
4 RS-485+ (blue) HI 28 HI 29
5 RS-485- (wht-blue) LO 28 LO 29
6 Cal- (orange) LO 26 LO 27
7 Trigger+ (wht-brown) HI 30 HI 31
8 Trigger- (brown) LO 30 LO 31
SCP Position 4 Addresses 13200 to 13331
1 Analog+ (wht-green) HI 32 HI 33
2 Analog- (green) LO 32 LO 33
3 Cal+ (wht-orange) HI 34 HI 35
4 RS-485+ (blue) HI 36 HI 37
5 RS-485- (wht-blue) LO 36 LO 37
6 Cal- (orange) LO 34 LO 35
7 Trigger+ (wht-brown) HI 38 HI 39
8 Trigger- (brown) LO 38 LO 39
SCP Position 5 Addresses 14000 to 14131
1 Analog+ (wht-green) HI 40 HI 41
2 Analog- (green) LO 40 LO 41
3 Cal+ (wht-orange) HI 42 HI 43
4 RS-485+ (blue) HI 44 HI 45
5 RS-485- (wht-blue) LO 44 LO 45
6 Cal- (orange) LO 42 LO 43
7 Trigger+ (wht-brown) HI 46 HI 47
8 Trigger- (brown) LO 46 LO 47
SCP Position 6 Addresses 14800 to 14931
1 Analog+ (wht-green) HI 48 HI 49
2 Analog- (green) LO 48 LO 49
3 Cal+ (wht-orange) HI 50 HI 51
4 RS-485+ (blue) HI 52 HI 53
5 RS-485- (wht-blue) LO 52 LO 53
6 Cal- (orange) LO 50 LO 51
7 Trigger+ (wht-brown) HI 54 HI 55
8 Trigger- (brown) LO 54 LO 55
SCP Position 7 Addresses 156000 to 157131
1 Analog+ (wht-green) HI 56 HI 57
2 Analog- (green) LO 56 LO 57
3 Cal+ (wht-orange) HI 58 HI 59
4 RS-485+ (blue) HI 60 HI 61
5 RS-485- (wht-blue) LO 60 LO 61
6 Cal- (orange) LO 58 LO 59
7 Trigger+ (wht-brown) HI 62 HI 63
8 Trigger- (brown) LO 62 LO 63
Programming the VT1422A & VT1529A/B for Remote Strain Measurement 65 Chapter 3

Figure 3-6 shows a typical connection to a VT1529A/B through one of the optional terminal modules. In this case, the connection is to the low channel on the VT1539A in SCP position number 6 (channels 14800 - 14831). For connection to other SCP positions, use the "Terminal Module Connection Formula" from Figure 3-6 or the data from Table 3-3.

G L H G L H G L H G L H G L H G L H G L H G L H
G L H G L H G L H G L H G L H G L H G L H G L H
SCP Pos. * 8 + wht-grn green wht-org orange blue wht-blu wht-brn brown
0 Hi 0 Lo 2 Hi 2 Lo 4 Hi 4 Lo 6 Hi 6 Lo
Figure 3-6. Connecting a VT1529A/B to an Optional Terminal Module
66 Programming the VT1422A & VT1529A/B for Remote Strain Measurement Chapter 3

This connection is shown as "B" in Figure 3-1. The VT1529A/B uses external excitation supplies. There are four pairs of input pins (and Gnd) at the "Bridge Excitation" connector for up to four individual excitation supplies. Each of these four inputs power eight channels through a programmable switch. Multiple excitation inputs can be parallel-wired to a single power supply.
Notes 1. The excitation supply must have a balanced output with respect to ground. That is, the output must be centered about ground. For example, if the supply voltage is 5 V, then the positive lead should be +2.5 V and the negative lead at -2.5 V. Use of an unbalanced excitation supply causes longer than normal settling times in the VT1529A/B, which will cause errors during the measurement of the excitation voltage and the next few channels. 2. The maximum excitation voltage the VT1422A can sense through the VT1529A/B’s excitation sense path is 16 V (±8 V dc centered about the Gnd terminal). If a higher excitation voltage is supplied through the VT1529A/B, do not connect the excitation sense terminals. 3. Make sure that the power supply chosen can supply the current requirement of all of the bridges it can be switched to. It will be connected to all bridges to be measured before a measurement scan is started. The supply switches cannot be programmatically re-configured while a measurement scan is under way. The measurement scan must be halted to programmatically re-configure the excitation supply switches.
Programming the VT1422A & VT1529A/B for Remote Strain Measurement 67 Chapter 3

+P Power Supply 1
+P
Power Supply 4 Chs 24-31
-P
+ - + -
Ch 16-23 Ch 24-31
Figure 3-7. Excitation Supply Connections
68 Programming the VT1422A & VT1529A/B for Remote Strain Measurement Chapter 3

The following discussion relates to the connection marked "C" in Figure 3-1 on page 58. Connecting the strain gages to the RJ-45 telecom connectors is illustrated below. These connections can be made with the same type of cable and crimp-on connectors used for Data Interface connection (connection "A" in Figure 3-1). See Figure 3-8 for a gage connection example.

Figure 3-8. VT1422A to Strain Gage Connection
Figure 3-9 shows the pin-to-signal relationship for each VT1529A/B strain gage connector. The same signal names are found on the following strain bridge configuration illustrations as well.
Relationship

Figure 3-9. Pin-out for Strain Gage Connectors
Programming the VT1422A & VT1529A/B for Remote Strain Measurement 69 Chapter 3

Figure 3-10 shows the connections to the 8-pin telecom connector for a quarter bridge configuration. It also shows a simplified schematic of the bridge completion settings for a quarter bridge channel.

Figure 3-10. Bridge Completion for a Quarter Bridge Channel
Note While the diagram above shows amplifier gain in the measurement path, the measurement values returned by these channels are corrected by the VT1422A’s DSP (Digital Signal Processor) chip to reflect the actual value at the user input terminal. The only time gain must be considered is when the input voltage times the gain would overload the A/D range chosen with a SENS:FUNC:... <range>,(<ch_list>) command. For example, with a gain of 32, any input voltage greater than 0.5 V would cause an overload reading even on the highest A/D range (16 V).
70 Programming the VT1422A & VT1529A/B for Remote Strain Measurement Chapter 3

Figure 3-11 shows the connections to the 8-pin telecom connector for a half bridge configuration. It also shows a simplified schematic of the bridge completion settings for a half bridge channel.

Figure 3-11. Bridge Completion for a Half Bridge Channel
Note While the diagram above shows amplifier gain in the measurement path, the measurement values returned by these channels are corrected by the VT1422A’s DSP (Digital Signal Processor) chip to reflect the actual value at the user input terminal. The only time gain must be considered is when the input voltage times the gain would overload the A/D range chosen with a SENS:FUNC:... <range>,(<ch_list>) command. For example, with a gain of 32, any input voltage greater than 0.5 V would cause an overload reading even on the highest A/D range (16 V).
Programming the VT1422A & VT1529A/B for Remote Strain Measurement 71 Chapter 3

Figure 3-12 shows the connections to the 8-pin telecom connector for a full bridge configuration. It also shows a simplified schematic of the bridge completion settings for a full bridge channel.

Figure 3-12. Bridge Completion for a Full Bridge Channel
Note While the diagram above shows amplifier gain in the measurement path, the measurement values returned by these channels are corrected by the VT1422A’s DSP (Digital Signal Processor) chip to reflect the actual value at the user input terminal. The only time gain must be considered is when the input voltage times the gain would overload the A/D range chosen with a SENS:FUNC:... <range>,(<ch_list>) command. For example, with a gain of 32, any input voltage greater than 0.5 V would cause an overload reading even on the highest A/D range (16 V).
72 Programming the VT1422A & VT1529A/B for Remote Strain Measurement Chapter 3

The VT1529A/B has two, 37-pin connectors that provide wideband amplified outputs from each strain bridge signal. This allows for connection to a high-speed ADC-per-channel instrument like the VT1432A or VT1433B to capture dynamic strain events.
While an instrument like the VT1432A or VT1433B can measure signals from the VT1529A/B, a VT1422A is still required to control the VT1529A/B’s bridge configuration, calibration and self-test functions.
One VT1422A can control up to sixteen VT1529A/Bs. Figure 3-13 shows the general interconnection layout for a VT1432A. The cable shown is the VT1529A/B Option 001. This cable is 10 feet (3.05 meters) long.

Two VT1432As Are Required to Monitor All 32 VT1529A/B Channels
Figure 3-13. VT1432A to VT1529A/B Connection
If additional length is required, build or have an extender cable built with a male, 37-pin D-connector on one end and a female, 37-pin D-connector on the other. The extender cable must provide sixteen twisted pair conductors and be overall shielded. See “Dynamic Strain Extender Cable Pin-Out” on page 74.
L-COM (distributor catalog Cat# SDRS37HOT) Cinch DC24660 (Newark Cat# - 45F988)
Programming the VT1422A & VT1529A/B for Remote Strain Measurement 73 Chapter 3

Table 3-4. Dynamic Strain Extender Cable Pin-Out
Signal Name Male 37-Pin Connector
1 Buffered Output 0+/16+ 1
20 Buffered Output 0-/16- 20
2 Buffered Output 1+/17+ 2
21 Buffered Output 1-/17- 21
3 Buffered Output 2+/18+ 3
22 Buffered Output 2-/18- 22
4 Buffered Output 3+/19+ 4
23 Buffered Output 3-/19- 23
5 Buffered Output 4+/20+ 5
24 Buffered Output 4-/20- 24
6 Buffered Output 5+/21+ 6
25 Buffered Output 5-/21- 25
7 Buffered Output 6+/22+ 7
26 Buffered Output 6-/22- 26
8 Buffered Output 7+/23+ 8
27 Buffered Output 7-/23- 27
9 Buffered Output 8+/24+ 9
28 Buffered Output 8-/24- 28
10 Buffered Output 9+/25+ 10
29 Buffered Output 9-/25- 29
11 Buffered Output 10+/26+ 11
30 Buffered Output 10-/26- 30
12 Buffered Output 11+/27+ 12
31 Buffered Output 11-/27- 31
13 Buffered Output 12+/28+ 13
32 Buffered Output 12-/28- 32
14 Buffered Output 13+/29+ 14
33 Buffered Output 13-/29- 33
15 Buffered Output 14+/30+ 15
34 Buffered Output 14-/30- 34
16 Buffered Output 15+/31+ 16
35 Buffered Output 15-/31- 35
17, 18, 19, 36, 37 Shield (drain wire) 17, 18, 19, 36, 37
74 Programming the VT1422A & VT1529A/B for Remote Strain Measurement Chapter 3
Female 37-Pin Connector · Pin Number · Pin Number

Each buffered dynamic strain channel includes an offset adjusting DAC controlled by the command SOURce:VOLTage[:AMPLitude] <-offset_v>,(@<ch_list>) Reducing the unstrained bridge offset voltage at the dynamic strain port channel can allow the VT1432A to measure the channel using a more sensitive range. See Figure 3-14 for the offset DAC arrangement.
Dynamic Strain Buffered Output
Instrument.
8-bit offset DAC SOURce:VOLTage
To VT1422A (VT1539A SCP)
32:1 Mux
RJ-45 X2 2:1 Mux
Figure 3-14. Dynamic Strain Offset DAC
To reduce the offset voltage at each dynamic strain "Buffered Output" channel:
Programming the VT1422A & VT1529A/B for Remote Strain Measurement 75 Chapter 3

Figure 3-15 shows the relationship between SCP positions and Remote Channel Addressing through the VT1539A SCP (see Figure 2-1 on page 36 to compare with On-Board Channel Addressing). Not all SCP positions need to contain VT1539As. If needed, VT1539As can be mixed with other analog sense, source, and digital I/O SCPs.
Channels measured through Remote Signal Conditioning Units like the VT1529A/B Remote Strain Conditioning Unit are addressed with five digit channels specifiers rather than the traditional on-board channel’s three digit specifier. Both three and five digit specifier start with a "1." This is the SCPI "card number" digit and is retained in the VT1422A for SCPI compatibility. The next two digits complete the specification of an on-board channel. When used in a five digit remote multiplexed channel specifier, the first three digits mean the same as in the on-board specifier. Digits two and three specify the VT1539A SCP sense channel that is connected to a particular Remote Strain Conditioning Unit. Only the first two on-board channels are ever specified with the VT1539A Remote Channel SCP. So, digits two and three will specify channels 00, 01, 08, 09, 16, 17, 24, 25, 32, 33, 40, 41, 48, 49, 56, or 57. This allows the VT1422A to address up to sixteen VT1529A/Bs. Digits four and five specify one of 32 channels on the RSCU and can range from 00 to 31.
Example channel addresses (shown in SCPI channel list syntax), see Figure 3-15 also:
Ch 0 on VT1529A/B connected to on-board chan 0 (VT1539A in SCP position 0). (@10000)
Ch 0 on VT1529A/B connected to on-board chan 1 (VT1539A in SCP position 0). (@10100)
Ch 24 on VT1529A/B connected to on-board chan 48 (VT1539A in SCP position 6). (@14824)
Of course, in the Scan List, the channel list syntax allows a range of channels to be specified. Here are some examples:
channels 0 to 31 on each of the two VT1529A/Bs connected to on-board channels 0 and 1 (VT1539A in SCP position 0). This is 64 Chs. (@10000:10131)
channels 0 to 15 on the VT1529A/B connected to on-board channel 24 (VT1539A in SCP position 3). (@12400:12415)
combined previous two examples into a single scan list to show combining ranges. (@10000:10131,12400:12415)
The VT1422A provides a method to verify that remote channels in the scan list defined in algorithms or with the ROUTe:SEQuence DEFine command are successfully scanned in each RSCU. See “Runtime Remote Scan Verification” on page 98, “The Operating Sequence” on page 133 and “Runtime Remote Scan Verification” on page 187.
76 Programming the VT1422A & VT1529A/B for Remote Strain Measurement Chapter 3


Figure 3-15. Remote Strain Channel Addressing
Programming the VT1422A & VT1529A/B for Remote Strain Measurement 77 Chapter 3

This programming section is focused exclusively on programming the VT1422A and VT1529A/B for remote strain measurement. For more general VT1422A programing see Chapter 4 “Programming the VT1422A for Data Acquisition and Control”.
Some of the programming operations that follow may already be set after Power-on or after an *RST command. Where these default settings coincide with the configuration settings required, there is no need to execute a command to set them. These are the default settings:
(must be changed to actual value to make reasonable measurements).
This section describes the three ways to make strain measurements with the VT1529A/B. It includes references to SCPI commands as well as command sequences to perform the strain measurements described.
CALibration First To make proper measurements, *CAL? and CAL:REMote? should have been done first. Perform *CAL? and CAL:REMote? before making important measurement runs or if the temperature of the instrument’s environment has changed significantly. Remember, the accuracy specifications given in Appendix A on page 419 depend on recent *CAL? and CAL:REMote? operations.
78 Programming the VT1422A & VT1529A/B for Remote Strain Measurement Chapter 3

This method lets the VT1422A convert the strain bridge readings to units of strain (∈) before they are stored in the CVT and/or FIFO or accessed by algorithms. There is no speed penalty and there is significant convenience in allowing the VT1422A to make the Engineering Unit conversion to strain. In fact, this is considered the "normal" VT1422A measurement method.
Conversion
When the command SENSe:FUNC:STRain:<bridge_type> is sent, the specified bridge type is configured by switches in each VT1529A/B, the channel inputs are connected to the bridge outputs (see Figure 3-10 through Figure 3-12 starting on page 70) and when the INIT command is sent, bridge voltage readings are automatically converted to strain before being stored into the FIFO buffer and/or CVT (current value table).
Before the VT1422A can convert a channel’s bridge output voltage reading to strain, the gage factor, the excitation voltage and the unstrained reference voltage for that channel must be known.
The user provides the above information to the VT1422A and below are the methods/commands to do so:
a. Use the MEAS:VOLTage:UNSTrained? query (recommended)
which will take an average of 32 voltage readings on each specified channel and save the values internally for use later by the strain EU conversion process. When using this method, loaded algorithms are not executed to avoid putting extraneous readings into the FIFO buffer. The voltage readings are also sent to the FIFO buffer for review.
b. Measure the voltage directly using the following series of
commands:
ROUTe:SEQ:DEFine (input the list of channels to measure)
SENSe:FUNC:VOLT (set measurement to voltage)
INIT (take the measurement)
SENS:DATA:FIFO? (read the data)
Next, the unstrained voltage values read above must be sent back to the VT1422A’s EU conversion routine by using the command: SENS:STRain:UNST <voltage value>,channel list
Programming the VT1422A & VT1529A/B for Remote Strain Measurement 79 Chapter 3

a. Use the MEAS:VOLTage:EXCitation? query (recommended)
which will take an average of 32 voltage readings on each specified channel(s) and save the value(s) internally for later use by the strain EU conversion process. When using this method, any loaded algorithm(s) are not executed to avoid putting extraneous values into the FIFO buffer. The voltage readings are also sent to the FIFO buffer for review later if desire.
b. Measure the voltage directly using the following series of
commands:
ROUTe:SEQ:DEFine (input the list of channels to measure)
SENSe:FUNC:VOLT (sets measurement to voltage)
INIT (assuming trigger system defaults, starts single scan)
SENS:DATA:FIFO? (reads the data)
Next, the excitation voltage values read in above must be sent back to the VT1422A’s EU conversion routine by using the command: SENS:STRain:EXC <voltage value>,(@<channel>)
Figure 3-16 shows the sequence of commands to measure remote strain channels using the built-in strain Engineering Unit Conversion routines.
80 Programming the VT1422A & VT1529A/B for Remote Strain Measurement Chapter 3

*CAL? and CALibration:REMote?
To convert readings to Engineering Units of strain
SENSe:FUNCtion:STRain: . Also sets <bridge_type> bridge config switches and turns on excitation V
Set Input Filter on VT1529A/B INPut:FILTer:FREQuency and INPut:FILTer:STATe
Send gage factors to
SENSe:STRain:GFACtor
Measure bridge excitation voltages and send to EU routines
MEASure:VOLTage:EXCitation?
Measure unstrained bridge output
MEASure:VOLTage:UNSTrained?
voltages and send to EU routines
Set up the analog input Scan List
ROUTe:SEQuence:DEFine
Set up Trigger System to scan
TRIG:SOURce, TRIG:COUNt, ARM:SOURce TRIG:TIMer
Set up Sample Timer for best channel-to-channel scan rate
SAMPle:TIMer
INITiate[:IMMediate]
Trigger event for each pass
TRIG[:IMM], *TRG (if TRIG:SOUR HOLD), EXTernal trig, TTLTRGn signal, or TRIG:TIMer
SENSe:DATA:FIFO:..., SENSe:DATA:CVTable?
Figure 3-16. Sequence for Built-in Strain EU Conversion
Programming the VT1422A & VT1529A/B for Remote Strain Measurement 81 Chapter 3

Below is an example VXIplug&play command sequence. Note that this is not executable; it has been simplified for easier reading. The C++ example source file (euseq.cpp) is on the CD supplied with the instrument. View the readme.txt file provided with the VXIplug&play driver for example program file location.
/* set Engineering Units (function) to strain */ errStatus=hpe1422_cmd(sessn,"sens:func:str:hben auto,(@10000:10003)"); errStatus=hpe1422_cmd(sessn,"sens:func:str:fben auto,(@10004:10007)");
/* optionally set VT1529A/B input filters (2, 10 or 100Hz) */ errStatus = hpe1422_cmd(sessn,"input:filter:frequency 10,(@10000:10007)"); /* optionally enable VT1529A/B input filters (approx 100 kHz when OFF) */ errStatus = hpe1422_cmd(sessn,"input:filter:state ON,(@10000:10007)");
/* send gage factors to channel EU conversion routines */ errStatus=hpe1422_cmd(sessn,"sense:strain:gfactor 2,(@10000:10003)"); errStatus=hpe1422_cmd(sessn,"sense:strain:gfactor 2.5,(@10004:10007)");
/* measure the excitation voltage at each bridge. The values go to the channel EU conversion as well as the FIFO. We'll clear the FIFO */ errStatus=hpe1422_cmdInt16_Q(sessn,"meas:volt:excitation? (@10000:10007)", &result16); errStatus=hpe1422_cmd(sessn,"sense:data:fifo:reset"); /* throw away exc readings */
/* measure the unstrained bridge voltage at each bridge. The values go to the channel EU conversion as well as the FIFO. We'll clear the FIFO */ errStatus=hpe1422_cmdInt16_Q(sessn,"meas:volt:unstrained? (@10000:10007)", &result16); errStatus=hpe1422_cmd(sessn,"sense:data:fifo:reset"); /* throw away exc readings */
/* set up the scan list to include the strain channels to measure */ errStatus=hpe1422_cmd(sessn,"route:sequence:define (@10000:10007)");
/* set up the trigger system to make one scan for each trigger. Note that the default is one scan per trigger and trigger source is TIMer, so we only have to INITiate the trigger system to take readings. */ errStatus=hpe1422_cmd(sessn,"trigger:count 1"); /* *RST default */ errStatus=hpe1422_cmd(sessn,"trigger:source TIMer"); /* *RST default */ errStatus=hpe1422_cmd(sessn,"arm:source IMMediate"); /* *RST default */
/* set up the sample timer. This controls the channel to channel scan rate and can be important when channels need more than the default 40 microsecond sample time. */ errStatus=hpe1422_cmd(sessn,"sample:timer 40E-6"); /* *RST default */
/* set the data FIFO format from a command module to 64-bit */ errStatus=hpe1422_cmd(sessn,"FORM PACK,64");
/* INITiate the trigger system to execute a measurement scan */ errStatus=hpe1422_cmd(sessn,"INIT:IMMediate");
/* retrieve readings from FIFO. Notice that for each scan, we read the number of values in the FIFO (sens:data:fifo:count?), then apply that value to control the number of readings we read with the hpe1422_readFifo_Q() function. For continuous data acquisition, see Chapter 4 of the manual under "Reading Fifo Data." */ errStatus=hpe1422_cmd(sessn,"INIT:IMMediate");
/* find the number of readings present in the FIFO */ errStatus=hpe1422_cmdInt32_Q(sessn,"sense:data:fifo:count?",&result32);
/* read the values from the FIFO. count returns number actually read */ errStatus=hpe1422_readFifo_Q(sessn, result32, 65024, f64_array, &count);
82 Programming the VT1422A & VT1529A/B for Remote Strain Measurement Chapter 3

The VT1422A measures voltage and then applies a conversion routine (linear) supplied by the user. The user must supply the slope (M) and offset (B) of a linear M*volt + B conversion.
Conversion
The DIAGnostic:CUSTom:MXB <slope>,<offset>,(@<ch_list>) command is used to supply the slope and offset for the strain conversion. To select the custom linear conversion to be used, the command SENSe:FUNCtion:CUSTom [<range>,](@<ch_list>) must be sent before starting measurements with the INIT command.
Before taking a measurement the following must be done:
Figure 3-17 shows the sequence of commands to convert remote measurements according to the user’s own downloaded EU conversion method.
Programming the VT1422A & VT1529A/B for Remote Strain Measurement 83 Chapter 3

Set bridge configuration switches SENSe:STRain:BRIDge[:TYPE]
Set Input Filter on VT1529A/B INPut:FILTer:FREQuency and INPut:FILTer:STATe
to the strain bridges SENSe:STRain:EXCitation:STATe
Measure bridge excitation voltages and retrieve from FIFO
MEASure:VOLTage:EXCitation? SENS:DATA:FIFO:PART?
Measure unstrained bridge output
MEASure:VOLTage:UNSTrained? SENSE:DATA:FIFO:PART?
voltages and retrieve from FIFO
solve your equation for M and B as a function of Vunstrained and Vexcitation and Gage Factor
Download your linear EU conversion
DIAGnostic:CUSTom:MXB , ,(@ ) <M> <B> <ch_list>
Convert readings using your custom
EU conversion SENS:FUNC:CUST ,(@ ) <ch_list>
Set up the analog input Scan List
ROUTe:SEQuence:DEFine
Set up Trigger System to scan
TRIG:SOURce, TRIG:COUNt, ARM:SOURce TRIG:TIMer
Set up Sample Timer for best channel-to-channel scan rate
SAMPle:TIMer
INITiate[:IMMediate]
Trigger event for each pass
TRIG[:IMM], *TRG (if TRIG:SOUR HOLD), EXTernal trig, TTLTRGn signal, or TRIG:TIMer
SENSe:DATA:FIFO:..., SENSe:DATA:CVTable?
Figure 3-17. Sequence for User’s Custom EU Conversion
84 Programming the VT1422A & VT1529A/B for Remote Strain Measurement Chapter 3

Below is an example VXIplug&play command sequence. Note that this is not executable; it has been simplified for easier reading. The C++ example source file (mxbseq.cpp) is on the CD supplied with the instrument. View the readme.txt file provided with the VXIplug&play driver for example program file location.
/* set bridge configuration switches */ errStatus=hpe1422_cmd(sessn,"sens:str:bridge fben,(@10000:10007)");
/* optionally set VT1529A/B input filters (2, 10 or 100 Hz) */ errStatus = hpe1422_cmd(sessn,"input:filter:frequency 10,(@10000:10007)"); /* optionally enable VT1529A/B input filters (approx 100 kHz when OFF) */ errStatus = hpe1422_cmd(sessn,"input:filter:state ON,(@10000:10007)");
/* enable excitation voltage to strain bridges. Note that excitation is switched in banks of channels. So "VT1529A/B relative" channels to switch are 0, 8, 16 and 24. The channel-range shown works too and is easier. */ errStatus=hpe1422_cmd(sessn,"sense:strain:excitation:state ON,(@10000:10007)");
/* set the data FIFO format for the command module to 64-bit */ errStatus=hpe1422_cmd(sessn,"FORM PACK,64");
/* measure the excitation voltage at each bridge. The values go to the FIFO. We'll put them in their own array */ errStatus=hpe1422_cmdInt16_Q(sessn,"meas:volt:excitation? (@10000:10007)", &result16);
/* read the values from the FIFO. count returns number actually read */ errStatus=hpe1422_readFifo_Q(sessn, 0, 512, exc_array, &count);
/* measure the unstrained bridge voltage at each bridge. The values go to the channel EU conversion as well as the FIFO. We'll clear the FIFO */ errStatus=hpe1422_cmdInt16_Q(sessn,"meas:volt:unstrained? (@10000:10007)", &result16);
/* read the values from the FIFO. count returns number actually read */ errStatus=hpe1422_readFifo_Q(sessn, 0, 512, uns_array, &count);
/************************ Custom EU Pre-processing *************************** Solve your custom equation for M (slope) and B (offset) as a function * * of channel Vexcitation (exc_array), Vunstrained (uns_array) and * * gage factor. * * For this example, we'll just fix M and B at 2 and 0 respectively. ************************************************************************** */ M=2; B=0;
/* download your derived Ms and Bs. We show downloading the same M and B to all 8 channels. For highest accuracy, you would generate M and B for each channel to account for the channel-to-channel variability of the unstrained and excitation values measured. */
/* create scpi command string with M, B and channel list */ sprintf( cmd_str, "diag:cust:mxb %f, %f,(@%s)", M, B, "10000:10007");
/* link your derived linear EU conversion(s) to the required channels */ errStatus=hpe1422_cmd(sessn,"sens:func:custom (@10000:10007)");
/* set up the scan list to include the strain channels to measure bridge outputs */ errStatus=hpe1422_cmd(sessn,"route:sequence:define (@10000:10007)");
/* set up the trigger system to make one scan for each trigger. Note that the default is one scan per trigger and trigger source is TIMer, so we only have to INITiate the trigger system to take readings. */ errStatus=hpe1422_cmd(sessn,"trigger:count 1"); /* *RST default */ errStatus=hpe1422_cmd(sessn,"trigger:source TIMer"); /* *RST default */ errStatus=hpe1422_cmd(sessn,"arm:source IMMediate"); /* *RST default */
Programming the VT1422A & VT1529A/B for Remote Strain Measurement 85 Chapter 3
errStatus=hpe1422_cmd(sessn,cmd_str);

/* set up the sample timer. This controls the channel to channel scan rate and can be important when channels need more than the default 40 microsecond sample time. */ errStatus=hpe1422_cmd(sessn,"sample:timer 40E-6"); /* *RST default */
/* INITiate the trigger system to execute a measurement scan */ errStatus=hpe1422_cmd(sessn,"INIT:IMMediate");
/* retrieve readings from FIFO. Notice that for each scan, we read the number of values in the FIFO (sens:data:fifo:count?), then apply that value to control the number of readings we read with the hpe1422_readFifo_Q() function. For continuous data acquisition, see Chapter 4 of the manual under "Reading Fifo Data." */ errStatus=hpe1422_cmd(sessn,"INIT:IMMediate");
/* find the number of readings present in the FIFO */ errStatus=hpe1422_cmdInt32_Q(sessn,"sense:data:fifo:count?",&result32);
/* read the values from the FIFO. count returns number actually read */ errStatus=hpe1422_readFifo_Q(sessn, result32, 512, brdg_array, &count);
If this method is desired, voltage measurements will be made at the strain bridges while unstrained, then again while under strain. The excitation voltage will also be measured at each bridge. Using this data as well as the gage factor, strain conversion equations can be calculated in the computer.
86 Programming the VT1422A & VT1529A/B for Remote Strain Measurement Chapter 3

Figure 3-18 shows the sequence of commands to convert bridge voltage measurements to strain by post-processing.
Programming the VT1422A & VT1529A/B for Remote Strain Measurement 87 Chapter 3

Readings returned in voltage
SENSe:FUNCtion:VOLTage
Set bridge configuration switches SENSe:STRain:BRIDge[:TYPE]
Set Input Filter on VT1529A/B INPut:FILTer:FREQuency and INPut:FILTer:STATe
SENSe:STRain:EXCitation:STATe
to the strain bridges
Measure bridge excitation voltages and retrieve from FIFO
MEASure:VOLTage:EXCitation? SENS:DATA:FIFO:PART?
Measure unstrained bridge output
MEASure:VOLTage:UNSTrained? SENSE:DATA:FIFO:PART?
voltages and retrieve from FIFO
Set up the analog input Scan List
ROUTe:SEQuence:DEFine
Set up Trigger System to scan
TRIG:SOURce, TRIG:COUNt, ARM:SOURce TRIG:TIMer
Set up Sample Timer for best channel-to-channel scan rate
SAMPle:TIMer
INITiate[:IMMediate]
Trigger event for each pass
TRIG[:IMM], *TRG (if TRIG:SOUR HOLD), EXTernal trig, TTLTRGn signal, or TRIG:TIMer
SENSe:DATA:FIFO:..., SENSe:DATA:CVTable?
gage factor, and strained values
Figure 3-18. Converting Bridge Voltage Measurements to Strain
Below is an example VXIplug&play command sequence. Note that this is not executable; it has been simplified for easier reading. The C++ example source file (voltseq.cpp) is on the CD supplied with the instrument. View the readme.txt file provided with the VXIplug&play driver for example program file location.
88 Programming the VT1422A & VT1529A/B for Remote Strain Measurement Chapter 3

/* set channel function for voltage readings (autorange) */ errStatus=hpe1422_cmd(sessn,"sens:func:voltage auto,(@10000:10007)");
/* set bridge configuration switches */ errStatus=hpe1422_cmd(sessn,"sens:str:bridge fben,(@10000:10007)");
/* optionally set VT1529A/B input filters (2, 10 or 100 Hz) */ errStatus = hpe1422_cmd(sessn,"input:filter:frequency 10,(@10000:10007)"); /* optionally enable VT1529A/B input filters (approx 100 kHz when OFF) */ errStatus = hpe1422_cmd(sessn,"input:filter:state ON,(@10000:10007)");
/* enable excitation voltage to strain bridges. Note that excitation is switched in banks of channels. So "VT1529A/B relative" channels to switch are 0, 8, 16 and 24. The channel-range shown works too and is easier. */ errStatus=hpe1422_cmd(sessn,"sense:strain:excitation:state ON,(@10000:10007)");
/* set the data FIFO format for the command module to 64-bit */ errStatus=hpe1422_cmd(sessn,"FORM PACK,64");
/* measure the excitation voltage at each bridge. The values go to the FIFO. We'll put them in their own array */ errStatus=hpe1422_cmdInt16_Q(sessn,"meas:volt:excitation? (@10000:10007)", &result16);
/* read the values from the FIFO. count returns number actually read */ errStatus=hpe1422_readFifo_Q(sessn, 0, 512, exc_array, &count);
/* measure the unstrained bridge voltage at each bridge. The values go to the FIFO. We'll put them in their own array */ errStatus=hpe1422_cmdInt16_Q(sessn,"meas:volt:unstrained? (@10000:10007)", &result16);
/* read the values from the FIFO. count returns number actually read */ errStatus=hpe1422_readFifo_Q(sessn, 0, 512, uns_array, &count);
/* set up the scan list to include the strain channels to measure bridge outputs */ errStatus=hpe1422_cmd(sessn,"route:sequence:define (@10000:10007)");
/* set up the trigger system to make one scan for each trigger. Note that the default is one scan per trigger and trigger source is TIMer, so we only have to INITiate the trigger system to take readings. */ errStatus=hpe1422_cmd(sessn,"trigger:count 1"); /* *RST default */ errStatus=hpe1422_cmd(sessn,"trigger:source TIMer"); /* *RST default */ errStatus=hpe1422_cmd(sessn,"arm:source IMMediate"); /* *RST default */
/* set up the sample timer. This controls the channel to channel scan rate and can be important when channels need more than the default 40 microsecond sample time. */ errStatus=hpe1422_cmd(sessn,"sample:timer 40E-6"); /* *RST default */
/* INITiate the trigger system to execute a measurement scan */ errStatus=hpe1422_cmd(sessn,"INIT:IMMediate");
/* retrieve readings from FIFO. Notice that for each scan, we read the number of values in the FIFO (sens:data:fifo:count?), then apply that value to control the number of readings we read with the hpe1422_readFifo_Q() function. For continuous data acquisition, see Chapter 4 of the manual under "Reading Fifo Data." */ errStatus=hpe1422_cmd(sessn,"INIT:IMMediate");
/* find the number of readings present in the FIFO */ errStatus=hpe1422_cmdInt32_Q(sessn,"sense:data:fifo:count?",&result32);
/* read the values from the FIFO. count returns number actually read */ errStatus=hpe1422_readFifo_Q(sessn, result32, 512, brdg_array, &count);
/********************** Strain post-processing *********************** here you take the values for excitation (exc_array), unstrained * * (uns_array), bridge output values (brdg_array) and gage factor * * and calculate individual strain values for each channel using * * your own equations. *********************************************************************/
Programming the VT1422A & VT1529A/B for Remote Strain Measurement 89 Chapter 3

Verifying bridge configurations and connections is accomplished by inserting a known resistance (shunt cal resistor) in parallel with one leg of the bridge to imbalance it by a predictable amount. The VT1529A/B provides a single, internal 50 kΩ shunt cal resistor that can be programmatically connected to each of the 32 channels, one channel at a time. The VT1529A/B also provides the same connection capability for an optional external user supplied shunt cal resistor. The user’s shunt cal resistor can be connected via the front panel "Shunt Cal Resistor" terminal block. See Figure 3-19.
Figure 3-19. User Shunt Cal Resistor Connection
For the following discussion, refer to Figure 3-10 through Figure 3-12. The OUTPut:SHUNt:SOURce INT | EXT,(@) command selects either the INTernal (built-in) or EXTernal (user supplied) shunt cal resistor. Use the OUTput:SHUNt ON | OFF,(@) command to actually connect the shunt cal resistor to the bridge to be tested. For OUTP:SHUN, may specify only a single channel on any one VT1529A/B. This is because a single resistor is used to shunt each of a VT1529A/B’s 32 channels. When the command is sent to connect another channel, the previously closed channel is opened.
To perform shunt cal on multiple channels, the program will have to enter a loop to connect the shunt cal resistor to sequential channels and read the result from the shunted channel. Generally, only OUTP:SHUN OFF needs to be sent to open the last channel closed on a particular VT1529A/B. For quarter bridge completion, the shunt cal resistor is connected locally (on-board the VT1529A/B). For both half and full bridge completion, the shunt cal resistor is connected remotely via the -Real and +Real terminals. The switches that route Real are automatically controlled by the bridge configuration commands [SENSe:]FUNCtion:Q120, [SENSe:]FUNCtion:Q350, [SENSe:]FUNCtion:USER, [SENSe:]FUNCtion:HBEN, [SENSe:]FUNCtion:FBEN, and [SENSe:]STRain:BRIDge[:TYPE].
See Figure 3-20 for a general shunt cal programming sequence. A C++ example source file (shuntcal.cpp) is available in the VXIplug&play help file and on the CD supplied with the instrument. View the readme.txt file provided with the VXIplug&play driver for example program file location.
90 Programming the VT1422A & VT1529A/B for Remote Strain Measurement Chapter 3
Shunt · Cal Resistor

Measure bridge excitation voltages and get from FIFO MEASure:VOLTage:EXCitation?/SENSe:DATA:FIFO?
Measure unstrained bridge output
voltages and get from FIFO MEASure:VOLTage:UNSTrained?/SENSe:DATA:FIFO?
Send gage factors to
channel EU routines SENSe:STRain:GFACtor
To convert readings to Engineering Units of strain
SENSe:FUNCtion:STRain:. Also sets bridge config switches and turns on excitation V
Measure unstrained bridge output
MEASure:VOLTage:UNSTrained?
voltages and send to EU routines
Set up Trigger System to scan
strain bridge channel TRIG:SOURce IMM
Set up the analog input Scan List to
ROUTe:SEQuence:DEFine (@ ) <ch_list>
Initiate Trigger System INITiate[:IMMediate]
readings from FIFO SENSe:DATA:FIFO?
Select INTernal or EXTernal
shunt resistor OUTPut:SHUNt:SOURce
Set up the analog input Scan List to
measure single shunted channel ROUTe:SEQuence:DEFine (@ ) <shunt_channel>
Turn on shunt resistor
to slected channel OUTPut:SHUNt:STATe ON (@ ) <shunt_channel>
Initiate Trigger System (measure shunted strain channel) INITiate[:IMMediate]
reading from FIFO SENSe:DATA:FIFO?
Figure 3-20. Performing Shunt Calibration
Programming the VT1422A & VT1529A/B for Remote Strain Measurement 91 Chapter 3
measure un-shunted channels · Retrieve un-shunted strain · Retrieve shunted strain

When using the VT1422A’s built-in strain conversion (SENSe:FUNCtion:STRain:<bridge_type> <range>,(@<ch_list>)), the following equations are used to convert voltage to strain.
This equation is used by the VT1422A to convert bridge measurements to Engineering Units of Strain for channels specified in the command SENSe:FUNCtion:STRain:FBEN <range>,(@<ch_list>).
Strain Vmeasured Vunstrained – ( ) gFactor Vexcitation × ( ) ⁄ =
where: Vmeasured = measured voltage value Vexcitation = excitation voltage Vunstrained = unstrained voltage gFactor = gage factor
This equation is used by the VT1422A to convert bridge measurements to Engineering Units of Strain for channels specified in the command SENSe:FUNCtion:STRain:HBEN <range>,(@<ch_list>).
Strain 2 Vmeasured Vunstrained – ( ) gFactor Vexcitation × ( ) ⁄ × =
where: Vmeasured = measured voltage value Vexcitation = excitation voltage Vunstrained = unstrained voltage gFactor = gage factor
This second-order equation is used by the VT1422A to convert bridge measurements to Engineering Units of Strain for on-board strain SCP channels only. Because VT1529A/Bs can expand the VT1422As strain channel count to 512, use of this non-linear strain conversion equation would require too much VT1422A memory. Instead, a quadratic approximation of this equation is used. See below. For the following equations, Vi = bridge output while strained, Vu = bridge output unstrained and Ve = excitation voltage at the bridge.
Quarter Bridge Equation for Strain SCPs only
4Vr GF 1 2Vr – ( ) = WhereVr
Vi Vu – Ve =
2 a1Vi a0 + + =
Strain a2Vi
4 4Vu Ve – ( ) –
4 2Vu 2 VeVu – ( )
8 GF Ve
2 × = = =
2 × , a1
2 × , a0
92 Programming the VT1422A & VT1529A/B for Remote Strain Measurement Chapter 3

Figure 3-21 compares the non-linear quarter bridge equation used for strain SCPs with the linear approximation used with the VT1529A/B. Notice that while the error is independent of excitation voltage and unstrained voltage, error is quite sensitive to gage factor.

-100000 -80000 -60000 -40000 -20000 0 20000 40000 60000 80000 100000
Figure 3-21. Error of Quarter Bridge Linear Approximation
Programming the VT1422A & VT1529A/B for Remote Strain Measurement 93 Chapter 3

94 Programming the VT1422A & VT1529A/B for Remote Strain Measurement Chapter 3




in_val = I100 - 5.3; O108 = in_val * profile[j]; writecvt( inval, 10 );
Figure 4-1. Simplified Functional Block Diagram
Multifunction DAC? The VT1422A is a complete data acquisition and control system on a single VXI card. It is multifunction because it uses the Signal Conditioning Plug-on (SCP) concept whereby analog input/output and digital input/output channels can be mixed and matched to meet various application needs. It can be self-contained because it has local intelligence to permit the card to run stand-alone with very little interaction required from the supervisory computer.
The VT1422A has eight SCP positions with each SCP position capable of addressing up to eight channels of input or eight channels of output for a total of 64 channels. These 64 channels are known as the on-board channels. The eight SCP slots can be used for any of the analog/digital SCPs available for the VT1422A which cover most data acquisition and control needs.
Remote Multiplexing and
In addition, each SCP slot that contains a VT1539A SCP can operate two Remote Signal Conditioning Units (RSCUs) that externally multiplex up to 32 channels each. These channels are known as remote channels because they are multiplexed remotely to the VT1422A. So, with 32 channels per RSCU and 16 RSCUs, the VT1422A can make analog measurements on 512 remote channels. The upper left corner of Figure 4-1 shows how Remote Signal Conditioning Units fit in.
Programming the VT1422A for Data Acquisition and Control 97 Chapter 4

The input and output SCPs are configured with the SCPI and/or VXIplug&play programming. Analog SCPs are measured with the VT1422A’s A/D. Configuring the analog SCPs include specifying what type of Engineering Unit (EU) conversions are desired for each analog input channel. For example, one channel may require a type T thermocouple conversion and another may be a resistance measurement. The on-board Digital Signal Processor (DSP) converts the voltage read across the analog input channel and applies a high-speed conversion which results in temperature, resistance, etc. Digital input SCPs perform their own conversions as configured by the SCPI language.
Conversion
Scan List and/or C Language Control
The VT1422A can be used as either a conventional Scan List controlled data acquisition unit with analog measurements automatically buffered and available to the supervisory computer or the VT1422A can execute its own internal ’C’ language algorithms which can perform data acquisition and control and pass values to the supervisory computer when required. Of course, both modes can be used for example when many analog data acquisition channels need to be measured using the Scan List and one or more algorithms are needed to perhaps monitor some of the data points and make control decisions.
Runtime Remote Scan Verification
The VT1422A provides a method to verify that remote channels in the scan list defined in algorithms or with the ROUTe:SEQuence DEFine command are successfully scanned in each RSCU. Special algorithm variables are available to check the operating status of each VT1539A main channel. This provides protection against an RSCU failing to scan remote channels due to a signal cable disconnect or a power failure at the RSCU.
When the Trigger System is configured and either generates its own trigger or accepts a trigger from an external source, an instrument operation cycle begins. A simplified description of the cycle follows.
Acquire Input Values All digital input SCP's latch their current input state and the A/D starts scanning the analog channels specified in the Scan List with the ROUTe:SEQuence:DEFine command or analog channels referenced by any ’C’ algorithms. All measurement data as seen by the ’C’ algorithms is represented as 32-bit real numbers even if the input channel is inherently integer (digital byte/word). The EU-converted numbers such as temperature, strain, resistance, volts, state, frequency, etc. from Scan List channels (ROUT:SEQ:DEF) are stored by default in the Current Value Table (CVT) and the FIFO reading buffer. Values from analog channels referenced by ’C’ algorithms are stored in an Input Buffer and later accessed by the ’C’ algorithms executing on the VT1422A card.
Analog input values from channels in the Scan List, stored in the FIFO and/or CVT can be read from the VT1422A without creating or running any ’C’ algorithms. This makes for easy traditional analog data acquisition where no control aspect is required.
98 Programming the VT1422A for Data Acquisition and Control Chapter 4

Start Algorithms Approximately 2000 lines of user-written 'C' code can be downloaded into the VT1422A's memory and can be split among up to 32 algorithms. VXI Technology refers to these as algorithms because an algorithm is a step-by-step procedure for solving some problem or accomplishing some end. Though the documentation continues to refer to the 'C' code as algorithms, they can be thought of in traditional terms, with each algorithm representing a 'C' function with a main() program which calls them.
The user-written 'C' algorithms execute after all analog/digital inputs have been stored in the Input Buffer. The 'C' code accesses the measurement data like constants with the names of I100-I163 (for on-board channels) and I10000-I15731 (for remote channels) representing the 32-bit real EU-converted numbers. As seen in Figure 4-1, the algorithms have access to both local and global variables and arrays. The I-variables are inherently global and accessible by any algorithm. Local variables are only visible to the particular algorithm (just like in 'C' functions). Declared global variables can be shared by any algorithm.
The application program can read or write any local or global variable in any algorithm by using SCPI syntax that actually identifies the variable by name, but a more efficient means of reading data is available through the VT1422A's FIFO and Current Value Table (CVT). As seen in Figure 4-1, any algorithm can write any expression or constant to the FIFO/CVT. The application can then read the FIFO/CVT to characterize what's happening inside the VT1422A and to provide an operator view of any input/output channel, variable, or constant.
Algorithms Control
Output SCP's derive their channel values from O-variables that are written by the algorithms. O100-O163 are read/write global variables that are read after all algorithms have finished executing. The 32-bit real values are converted to the appropriate units as defined by the SCPI configuration commands and written to the various output SCP's by channel number.

Figure 4-2. Instrument Operation Cycle Phases
Programming the VT1422A for Data Acquisition and Control 99 Chapter 4

Figure 4-2 illustrates the timing of all these operations and describes the VT1422A's input-update-execute algorithms-output phases. This cycle-based design is desirable because it results in deterministic operation of the VT1422A. That is, the input channels are always scanned and the output channels are always written at pre-defined intervals. Note, too, that any number of input channels or output channels are accessible by any of up to 32 user-written algorithms. The algorithms are named ALG1-ALG32 and execute in numerical order.
In Phase 1, all input channels specified in the ROUTe:SEQuence:DEFine command and/or referenced in downloaded algorithms are scanned.
Phase 1A is for Runtime Remote Scan Verification and is optional. When one or more special scan status variables (S1xx) are included in an algorithm, this time is required to evaluate the scan status of each VT1539A SCP channel reference by a status variable. The time required is 230 µs + 40 µs * (number of S1xx variables referenced). If no status variables are referenced in any algorithms, then Phase 1A is not executed.
Notice the Update Window (Phase 2) illustrated in Figure 4-2. This window has a user-specified length and is used to accept and make changes to local and global variables from the supervisory computer. Up to 512 scalar or array changes can be made while executing algorithms. Special care was taken to make sure all changes take place at the same time so that any particular algorithm or group of algorithms all operate on the new changes at a user-specified time. This does not mean that all scalar and array changes have to be received during one cycle to become effective at the next cycle. On the contrary, it may take several cycles to download new values, especially when trying to re-write 1024 element arrays and especially when the trigger cycle time is very short.
There are multiple times between the base triggers where scalar and array changes can be accepted from the supervisory computer and these changes are kept in a holding buffer until the supervisory computer instructs the changes to take effect. These changes then take place during the Update window and take effect BEFORE algorithms start executing. The "do-update-now" signal can be sent by command (ALG:UPD) or by a change in a digital input state (ALG:UPD:CHAN). In either case, the programmer has control over when the new changes take effect.
The VT1422A's ability to execute programs directly on the card and its fast execution speed give the programmer real-time response to changing conditions. Plus, programming the card has been made very easy to understand. The C language was chosen for writing user programs as this language is already considered the industry standard. Choosing C allows the user to write algorithms on PCs or UNIX workstations that have C compilers, so they can debug algorithms before execution on the card. The VT1422A also provides good debugging tools that permit users to determine worst-case execution speed, monitor variables while running, and selectively enabling/disabling any of the VT1422A's 32 algorithms.
100 Programming the VT1422A for Data Acquisition and Control Chapter 4

A limited and simplified version of C was created since most applications need only basic operations: add, subtract, multiply, divide, scalar variables, arrays, and programming constructs. The programming constructs are limited to if-then-else to allow conditional evaluation and response to input changes. Since all algorithms have an opportunity to execute after each time-base trigger, the if-then-else constructs permit conditional skipping of cycle intervals so that some code segments or algorithms can execute at multiples of the cycle time instead of every cycle.
Looping constructs such as for or while are purposely left out of the language so that user programs are deterministic. Note that looping is not really needed for most applications since the cycle interval execution (via the trigger system) of every algorithm has inherent repeat looping. With no language looping constructs, the VT1422A's C compiler can perform a worst-case branch analysis of user programs and return the execution time for determining the minimum time-base interval. Making this timing query available allows the programmer to know exactly how much time may be required to execute any/all phases before attempting to set up physical test conditions.
Note the darker shaded portion at the end of the Execute Algorithms Phase in Figure 4-2. The conditional execution of code can cause the length of this phase to move back and forth and vary considerably. This can cause undesirable output jitter when the beginning of the output phase starts immediately after the last user algorithm executes. The VT1422A's design allows the user to specify when output signals begin relative to the start of the trigger cycle. Outputs then always occur at the same time, every time.
The programming task is further simplified with this design because all the difficult structure of handling input and output channels is done automatically. This is not true of many other products that may have several ways to acquire measurement data or write results to its I/O channels. When the VT1422A's user-written C algorithms are compiled, input channels and output channels are detected in the algorithms and are automatically grouped and configured for the Input and Output phases as seen in Figure 4-2. Each algorithm simply accesses input channels as variables and writes to output channels as variables. The rest is handled and optimized by the Input and Output phases. This allows for more time to solve the application in terms of input and output value variables rather than dealing with the individual differences of each SCP.
Programming the VT1422A for Data Acquisition and Control 101 Chapter 4

SCPI commands and/or VXIplug&play driver functions are used to configure, start, stop, and communicate with the VT1422A. The module can be in one of two states: either the "idle" state or the "running" state. The INITiate[:IMMediate] command moves the module from the "idle" state to the "running" state. These two states will be called "before INIT" and "after INIT," respectively. See Figure 4-3 for the following discussion.
Before INIT, the module is in the Trigger Idle State and its DSP chip (the on-board control processor) is ready to accept virtually any of its SCPI or Common commands. At this point, commands will be sent that configure SCPs, link input channels to EU conversions, configure Remote Signal Conditioning Units, configure digital input and output channels, define a Scan List, configure the trigger system, and define control algorithms.
After INIT (and with trigger events occurring), the DSP is busy measuring input channels, executing algorithm code, sending internal algorithm values to the CVT and updating control outputs. To insulate the DSP from commands that would interrupt its measurement scanning and/or algorithm execution, the VT1422A’s driver disallows execution of most SCPI commands and VXIplug&play functions after INIT. The driver does allow certain commands that make sense while the module is scanning and running algorithms. These are the commands that read and update algorithm variables, retrieve data acquisition values from the CVT and FIFO and return Status System values. The Command Reference Section (Chapter 7) specifies whether a command is accepted before or after INIT.
The next section in this chapter ("Executing the Programming Model"), shows the programming sequence that should be followed when setting up the VT1422A to make measurement scans and/or run algorithms.
102 Programming the VT1422A for Data Acquisition and Control Chapter 4


*RST ABORT Most of ALG subsystem ARM[:IMM] FETCH? FORMAT SENSe:DATA ... STATus ... SYSTem ... *TRG & TRIGger[:IMMediate] (if TRIG:SOUR is HOLD)
Figure 4-3. Module States
Programming the VT1422A for Data Acquisition and Control 103 Chapter 4

This section shows the sequence of programming steps that should be used for the VT1422A. Within each step, most of the available choices are shown using command sequence examples, with further details available in the Command Reference Chapter 7.
Some of the programming operations that follow may already be set after Power-on or after a *RST command. Where these default settings coincide with the configuration settings required, there is no need to execute a command to set them. These are the default settings:
Figure 4-4 provides a quick reference to the Programming model. Refer to this along with the “Programming Overview Diagram” to keep an overview of the VT1422A SCPI programming sequence. Again, when default settings match the settings desired, that configuration step can be skipped.
104 Programming the VT1422A for Data Acquisition and Control Chapter 4

Power On or *RST
Set up SCP & RSCU Amps, Filters, and
Link Engineering Units (Functions)
[SENSe:]FUNC: ... commands
to Analog Input Channels
INP: ..., OUTP: ..., [SENSe:] ...,SOUR: ...
Set up Digital I/O Channels
*CAL? or CAL:SETup command
(after 1 hour warm-up)
ROUTe:SEQuence:DEFine command
ARM:SOUR, TRIG:SOUR, TRIG:COUN, TRIG:TIMer commands
Set up Trigger System
[SENSe:]DATA:FIFO:MODE command
ALG:DEF "GLOBALS", ... command
Set up Algorithm(s) and Preset Algorithm Variables
ALG:DEF, ALG:ARRay, ALG:SCALar, ALG:SCAN:RATio, ALG:UPDate
Trigger events execute Scan List & algs
SENS:DATA:FIFO: ..., SENS:DATA:CVT? ALG:SCAL?, and ALG:ARR? commands
Modify Algorithm Variables ALG:ARRay, ALG:SCALar, ALG:STAT, ALG:SCAN:RATio, ALG:UPD
Figure 4-4. Programming Sequence
Programming the VT1422A for Data Acquisition and Control 105 Chapter 4


(analog input SCP config, analog output SCP programming, dgiital SCP I/O and config)
OUTPut:POLarity OUTPut:TYPe SOURce:FM:STATe SOURce:FUNCtion:CONDition SOURce:FUNCtion:PULSe SOURce:FUNCtion:SQUare SOURce:PULM:STATe SOURce:PULSe:PERiod SOURce:PULSe:WIDth
106 Programming the VT1422A for Data Acquisition and Control Chapter 4

This section covers configuring input and output channels to provide the measurement values and output characteristics that the algorithms need to operate.
This step applies only to programmable Signal Conditioning Plug-ons such as the VT1503A Programmable Amplifier/Filter SCP, the VT1505A Current Source SCP, the VT1510A Sample and Hold SCP, the VT1511A Transient Strain SCP and Remote Signal Conditioning Units (RSCUs such as the VT1529A/B Remote Strain Conditioning Units). See the particular SCP’s User’s manual to determine the gain, filter cutoff frequency or excitation amplitude selections that it may provide. See “Programming the VT1422A & VT1529A/B for Remote Strain Measurement” on page 57. for information on the VT1529A/B’s programmable settings.
Parameters
Setting SCP Gains An important thing to understand about input amplifier SCPs and RSCUs is that, given a fixed input value at a channel, changes in channel gain do not change the value returned from that channel. The DSP (Digital Signal Processor) chip keeps track of SCP gain and Range Amplifier settings and "calculates" a value that reflects the signal level at the input terminal. The only time this in not true is when the SCP gain chosen would cause the output of the SCP amplifier to be too great for the selected A/D range. As an example, with SCP gain set to 64, an input signal greater than ±0.25 volts would cause an over-range reading even with the A/D set to its 16 volt range.
The gain command for SCPs with programmable amplifiers is:
The gain selections provided by the SCP can be assigned to any channel individually or in groups. Send a separate command for each gain selection. An example for the VT1503A programmable Amp & Filter SCP:
To set the SCP gain to 8 for channels 0, 4, 6, and 10 through 19, send:
To set the SCP gain to 16 for channels 0 through 15 and to 64 for channels 16 through 23, send:
or combine into a single command message:
Programming the VT1422A for Data Acquisition and Control 107 Chapter 4

The commands for programmable filters are:
INPut:FILTer[:LPASs][:STATe] ON | OFF,(@< ch_list >) to enable or disable input filtering
The cutoff frequency selections provided by the SCP can be assigned to any channel individually or in groups. Send a separate command for each frequency selection. For example:
To set 10 Hz cutoff for channels 0, 4, 6, and 10 through 19, send:
To set 10 Hz cutoff for channels 0 through 15 and 100 Hz cutoff for channels 16 through 23, send:
INP:FILT:FREQ 100,(@116:123)
or combine into a single command message:
By default (after *RST or at power-on) the filters are enabled. To disable or re-enable individual (or all) channels, use the INP:FILT ON | OFF, (@<ch_list>) command. For example, to program all but a few filters on, send:
INP:FILT:STAT ON,(@100:163) all channel’s filters on (same as at *RST) INP:FILT:STAT OFF,(@100,123,146,163) only channels 0, 23, 46, and 63 OFF
The Current Source and Resistance Measurement SCPs supply excitation current for resistance type measurements. These include resistance and temperature measurements using resistance temperature sensors. The commands to control Current Source SCPs are:
Measurement SCP
OUTPut:CURRent:AMPLitude ,(@) OUTPut:CURRent[:STATe]
108 Programming the VT1422A for Data Acquisition and Control Chapter 4
![Page 111 of the VXI VT1422A user manual — [SENSe:]FUNCtion:RESistance < excite_current >,[< range >,] (@< ch_list >) for resistance measurements](/cdn/reader/9e/9e80b65a3c1c97d177a1eec46a7ccf82e797658477697872f7e1e0d805bc440a/images/page-111.webp?w=400)
To set channels 0 through 9 to output 30 µA and channels 10 through 19 to output 488 µA:
OUTP:CURR 30e-6,(@100:109) OUTP:CURR 488e-6,(@110:119) separate command per output level
or combine into a single command message:
OUTP:CURR 30e-6,(@100:109);CURR 488e-6,(@110:119)
The VT1511A Strain Bridge Completion SCP has a programmable bridge excitation voltage source. The command to control the excitation supply is OUTPut:VOLTage:AMPLitude ,(@)
Excitation Voltage
To set the excitation supplies for channels 0 through 3 to output 2 volts:
This step links each of the module’s channels to a specific measurement type. For analog input channels this "tells" the on-board control processor which EU conversion to apply to the value read on any channel. The processor is creating a list of conversion types vs. channel numbers. The commands for linking EU conversion to channels are:
[SENSe:]FUNCtion:STRain:… <excite_current>,[<range>,] (@<ch_list>) for strain bridge measurements
Programming the VT1422A for Data Acquisition and Control 109 Chapter 4

[SENSe:]FUNCtion:TEMPerature <type>,<sub_type>,[<range>,] (@<ch_list>) for temperature measurements with thermocouples, thermistors or RTDs
[SENSe:]FUNCtion:CUSTom <range>,(@<ch_list>) for custom EU conversions.
To link channels to the voltage conversion send the [SENSe:]FUNCtion:VOLTage [,] (@) command.
To set channels 0 through 15 to measure voltage using auto-range, send:
SENS:FUNC:VOLT AUTO,(@100:115) SENS:FUNC:VOLT AUTO,(@10000:10131) first 64 RSCU channels
To set channels 16 and 24 to the 16 volt range and 32 through 47 to the 0.0625 volt range, send:
SENS:FUNC:VOLT 16,(@116,124) SENS:FUNC:VOLT .0625,(@132:147) must send a command per range
or send both commands in a single command message:
NOTE When using manual range in combination with amplifier SCPs, the EU conversion will try to return readings which reflect the value of the input signal. However, it is up to the user to choose range values that will provide good measurement performance (avoiding over-ranges and selecting ranges that provide good resolution based on the input signal). In general, measurements can be made at full speed using auto-range. Auto-range will choose the optimum A/D range for the amplified signal level.
110 Programming the VT1422A for Data Acquisition and Control Chapter 4

To link channels to the resistance EU conversion send the [SENSe:]FUNCtion:RESistance ,[,](@) command.
Resistance measurements assume that there is at least one Current Source SCP installed (eight current sources per SCP). See Figure 4-5.

* Because of the 150 ohm resistor in series with each of the current source outputs, Two-Wire resistance and temperature measurements will have a 300 ohm offset.
** The current source Hi terminal is the negative voltage node. The current source LO terminal is the positive voltage node.
Figure 4-5. Resistance Measurement Sensing
Programming the VT1422A for Data Acquisition and Control 111 Chapter 4

To set channels 0 through 15 to measure resistances greater than 8,000 Ω and set channels 16, 20, and 24 through 31 to measure resistances less than 8k (in this case paired to current source SCP channels 32 through 57):
OUTP:CURR:AMPL 30e-6, (@132:147)
set 16 channels to output 30 μA for 8 kΩ or greater resistances SENS:FUNC:RES 30e-6, (@100:115)
link channels 0 through 15 to resistance EU conversion (8 kΩ or greater) OUTP:CURR:AMPL 488e-6, (@148,149,150:157)
set 10 channels to output 488 μA for less than 8 kΩ resistances SENS:FUNC:RES 488e-6, (@116,120,124:132)
link channels 16, 20, and 24 through 32 to resistance EU conversion (less than 8 kΩ)
To link channels to temperature EU conversion, send the [SENSe:]FUNCtion:TEMPerature , , [,](@) command.
Temperature measurements using resistance type sensors involve all the same considerations as resistance measurements discussed in the previous section. See the discussion of Figure 4-5 in "Linking Resistance Measurements."
For resistance temperature measurements, the <sub_type> parameter specifies:
112 Programming the VT1422A for Data Acquisition and Control Chapter 4

MAX (488 µA) RTD,85 | 92 and THER,2250
MIN (30 µA) THER,5000 | 10000
To set channels 0 through 15 to measure temperature using 2,250 Ω thermistors (in this case, paired to current source SCP channels 16 through 31):
OUTP:CURR:AMPL 488e-6,(@116:131)
set excite current to 488 μA on current SCP channels 16 through 31 SENS:FUNC:TEMP THER, 2250, (@100:115)
link channels 0 through 15 to temperature EU conversion for 2,250 Ω thermistor
To set channels 32 through 47 to measure temperature using 10,000 Ω thermistors (in this case paired to current source SCP channels 48 through 63):
OUTP:CURR:AMPL 30e-6,(@148:163)
set excite current to 30 μA on current SCP channels 48 through 63 SENS:FUNC:TEMP THER, 10000, (@132:147)
link channels 32 through 47 to temperature EU conversion for 10 kΩ thermistor
To set channels 48 through 63 to measure temperature using 100 Ω RTDs with a TC of 0.00385 ohm/ohm/°C (in this case paired to current source SCP channels 32 through 47):
OUTP:CURR:AMPL 488e-6,(@132:147)
set excite current to 488 μA on current SCP channels 32 through 47 SENS:FUNC:TEMP RTD, 85, (@148:163)
link channels 48 through 63 to temperature EU conversion for 100 Ω RTDs with 0.00385 TC
Programming the VT1422A for Data Acquisition and Control 113 Chapter 4

Thermocouple measurements are voltage measurements that the EU conversion changes into temperature values based on the <sub_type> parameter and latest reference temperature value.
To set channels 32 through 40 to measure temperature using type E thermocouples:
SENS:FUNC:TEMP TC, E, (@132:140) (see following section to configure a TC reference measurement)
The isothermal reference temperature is required for thermocouple temperature EU conversions. The Reference Temperature Register must be loaded with the current reference temperature before thermocouple channels are scanned. The Reference Temperature Register can be loaded two ways:
This operation requires two commands, the [SENSe:]REFerence command and the [SENSe:]REFerence:CHANnels command.
The [SENSe:]REFerence , ,[,](@) command links channels to the reference temperature EU conversion.
114 Programming the VT1422A for Data Acquisition and Control Chapter 4

-- For RTDs; "85" or "92" (for 100 ohm RTDs with 0.00385 or
0.00392 ohms/ohm/°C temperature coefficients respectively)
-- For Thermistors; only "5000" (See previous note on page 113)
-- For CUSTom; only "1"
At this point, the concept of the VT1422A Scan List will be introduced. As each algorithm is defined, the VT1422A places any reference to an analog input channel into the Scan List (this is in addition to those channels specified by the ROUT:SEQ:DEF command, see "Defining an Analog Input Scan List" on page 123). When the algorithms are run, the scan list tells the VT1422A which analog channels to scan during the Input Phase.
The [SENSe:]REFerence:CHANnels (@),(@) is used to place the channel in the scan list before the related thermocouple measuring channels in . Now when analog channels are scanned, the VT1422A will include the reference channel in the scan list and will scan it before the specified thermocouples are scanned. The reference measurement will be stored in the Reference Temperature Register. The reference temperature value is applied to the thermocouple EU conversions for thermcouple channel measurements that follow.
The command sequence performs these functions:
SENS:REF THER, 5000, (@115) 5k thermistor temperature for channel 15 SENS:FUNC:TEMP TC,J,(@116:123) Type J thermocouple temperature for channels 16 through 23 SENS:REF:CHAN (@115),(@116:123) reference channel scanned before channels 16 - 23
Programming the VT1422A for Data Acquisition and Control 115 Chapter 4

The [SENse:]REFerence:TEMPerature command immediately stores the temperature of a controlled temperature reference junction panel in the Reference Temperature Register. The value is applied to all subsequent thermocouple channel measurements until another reference temperature value is specified or measured. There is no need to use SENS:REF:CHANNELS.
To specify the temperature of a controlled temperature reference panel:
SENS:REF:TEMP 50 reference temp = 50 °C
Now begin scan to measure thermocouples.
Strain measurements usually employ a Strain Completion and Excitation SCP (VT1506A, VT1507A, VT1511A) or VT1529A/B Remote Strain Conditioning Unit. To link channels to strain EU conversions send the [SENSe:]FUNCtion:STRain: [,](@)
:FBENding Full Bending Bridge
:FBPoisson Full Bending Poisson Bridge
:FPOisson Full Poisson Bridge
:HBENding Half Bending Bridge
:HPOisson Half Poisson Bridge
[:QUARter] Quarter Bridge (default)
:Q120 * Quarter using VT1529A/B’s
internal 120 Ω resistor
:Q350 * Quarter using VT1529A/B’s
internal 350 Ω resistor
:User ** Quarter using VT1529A/B’s user supplied resistor value
* These choices are only available with the VT1529A/B. ** This choice is only available with VT1529A/B channels that have had a user-supplied resistor installed.
116 Programming the VT1422A for Data Acquisition and Control Chapter 4
Command Bridge Type

The following command sequence is for conventional strain completion SCPs. For VT1529A/B based command sequences, see “Programming the VT1422A & VT1529A/B for Remote Strain Measurement” on page 57.
To link channels 23 through 30 to the quarter bridge strain EU conversion:
SENS:FUNC:STR:QUAR (@123:130) uses autorange
Other commands used to set up strain measurements are: [SENSe:]STRain:POISson [SENSe:]STRain:EXCitation [SENSe:]STRain:GFACtor [SENSe:]STRain:UNSTrained
See the Command Reference (Chapter 7) and the VT1506A/07A and VT1511A User’s Manuals for more information on strain measurements.
Custom EU Conversions See “Creating and Loading Custom EU Conversion Tables” on page 150.
Analog outputs are implemented either by a VT1531A Voltage Output SCP or a VT1532A Current Output SCP. Channels where these SCPs are installed are automatically considered outputs. No SOURce:FUNCtion command is required since the VT1531A can only output voltage, while the VT1532A can only output current. The only way to control the output amplitude of these SCPs is through the VT1422A’s Algorithm Language.
Functions
Programming the VT1422A for Data Acquisition and Control 117 Chapter 4

Digital inputs can be configured for polarity and, depending on the SCP model, a selection of input functions as well. The following discussion will explain which functions are available with a particular Digital I/O SCP model. Setting a digital channel’s input function is what defines it as an input channel.
Setting Input Polarity To specify the input polarity (logical sense) for digital channels use the command INPut:POLarity ,(@). This capability is available on all digital SCP models. This setting is valid even while the specified channel is not an input channel. If and when the channel is configured for input (an input FUNCtion command), the setting will be in effect.
To configure the lower 8 bit channel of a VT1533A for inverted polarity:
INP:POLARITY INV,(@108) SCP in SCP position 1
To configure the lower 4 bits of a VT1534A for inverted polarity:
INP:POL INV,(@132:135) SCP in SCP position 4
Setting Input Function The VT1533A Digital I/O SCP and the VT1534A Frequency/Totalizer SCP can both input static digital states. The VT1534A Frequency/Totalizer SCP can also input frequency measurements and totalize the occurrence of positive or negative edges.
To configure digital channels to input static states, use the [SENSe:]FUNCtion:CONDition (@) command. Examples:
To set the lower 8 bit channel of a VT1533A in SCP position 4 to input SENS:FUNC:COND (@132)
To set the upper 4 channels (bits) of a VT1534A in SCP pos 2 to input states SENS:FUNC:COND (@120:123)
118 Programming the VT1422A for Data Acquisition and Control Chapter 4

The frequency function uses two commands. For more on this VT1534A and VT1538A capability, see the appropriate SCP’s User’s Manual.
To set the frequency counting gate time execute [SENSe:]FREQuency:APERture ,(@)
To set the digital channel function to frequency [SENSe:]FUNCtion:FREQuency (@)
The totalizer function uses two commands also. One sets the channel function and the other sets the condition that will reset the totalizer count to zero. For more on this VT1534A and VT1538A capability see the appropriate SCP’s User’s Manual.
To set the VT1534A’s totalize reset mode [SENSe:]TOTalize:RESet:MODE INIT | TRIG,(@)
To configure VT1534A channels to the totalizer function [SENSe:]FUNCtion:TOTalize (@)
Digital outputs can be configured for polarity, output drive type and, depending on the SCP model, a selection of output functions as well. The following discussion will explain which functions are available with a particular Digital I/O SCP model. Setting a digital channel’s output function is what defines it as an output channel.
Setting Output Polarity To specify the output polarity (logical sense) for digital channels use the command OUTPut:POLarity ,(@). This capability is available on all digital SCP models. This setting is valid even while the specified channel in not an output channel. If and when the channel is configured for output (an output FUNCtion command), the setting will be in effect.
To configure the higher 8 bit channel of a VT1533A for inverted polarity:
OUTP:POLARITY INV,(@109) SCP in SCP position 1
To configure the upper 4 bits of a VT1534A for inverted polarity:
OUTP:POL INV,(@132:135) SCP in SCP position 4
Programming the VT1422A for Data Acquisition and Control 119 Chapter 4

The VT1533A and VT1534A use output drivers that can be configured as either active or passive pull-up. To configure this, use the command OUTPut:TYPE ,(@). This setting is valid even while the specified channel in not an output channel. If and when the channel is configured for output (an output FUNCtion command), the setting will be in effect.
To configure the higher 8-bit channel of a VT1533A for passive pull-up:
OUTP:TYPE PASS,(@109) SCP in SCP position 1
To configure the upper 4 bits of a VT1534A for active pull-up:
OUTP:TYPE ACT,(@132:135) SCP in SCP position 4
Setting Output Functions The VT1533A Digital I/O SCP, VT1534A, and VT1538A Frequency/ Totalizer SCPs can output static digital states. The Frequency/Totalizer SCPs can also output single pulses per trigger, continuous pluses that are width modulated (PWM) and continuous pulses that are frequency modulated (FM).
To configure digital channels to output static states, use the SOURce:FUNCtion:CONDition (@) command. Examples:
To set the upper 8-bit channel of a VT1533A in SCP position 4 to output SOUR:FUNC:COND (@133)
To set the lower 4 channels (bits) of a VT1534A in SCP pos 2 to output states SOUR:FUNC:COND (@116:119)
This function sets up one or more VT1534A or VT1538A channels to output a single pulse per trigger (per algorithm execution). The width of the pulse from these channels is controlled by Algorithm Language statements. Use the command SOURce:FUNCtion[:SHAPe]:PULSe (@). Example command sequence:
To set VT1534A/38 channel 2 at SCP position 4 to output a pulse per trigger SOUR:FUNC:PULSE (@134)
Example algorithm statement to control pulse width to 1 ms O134 = 0.001;
120 Programming the VT1422A for Data Acquisition and Control Chapter 4

This function sets up one or more VT1534A/38A channels to output a train of pulses. A companion command sets the period for the complete pulse (↑edge to ↑edge). This of course fixes the frequency of the pulse train. The width of the pulses from these channels is controlled by Algorithm Language statements.
Use the command SOURce:FUNCtion[:SHAPe]:PULSe (@). Example command sequence:
Enable pulse width modulation for VT1534A’s first channel at SCP position 4 SOUR:PULM:STATE ON,(@132)
To set pulse period to 0.5 ms (which sets the signal frequency 2 kHz) SOUR:PULSE:PERIOD 0.5e-3,(@132)
To set function of VT1534A’s first channel in SCP position 4 to PULSE
Example algorithm statement to control pulse width to 0.1 ms (20% duty-cycle) O132 = 0.1e-3;
This function sets up one or more VT1534A/38A channels to output a train of pulses. A companion command sets the width (↑edge to ↓edge) of the pulses. The frequency of the pulse train from these channels is controlled by Algorithm Language statements.
Use the command SOURce:FUNCtion[:SHAPe]:PULSe (@). Example command sequence:
Enable frequency modulation for VT1534A’s second channel at SCP position 4 SOUR:FM:STATE ON,(@133)
To set pulse width to 0.3333 ms SOUR:PULSE:WIDTH 0.3333e-3,(@133)
To set function of VT1534A’s second channel in SCP position 4 to PULSE SOUR:FUNCTION:PULSE (@133)
Example algorithm statement to control frequency to 1000 Hz O133 = 1000;
To set function of VT1534A/38A’s third channel in SCP position 4 to output a variable frequency square-wave. SOUR:FUNCTION:SQUare (@134)
Example Algorithm Language statement to set output to 20 kHz O134 = 20e3;
Programming the VT1422A for Data Acquisition and Control 121 Chapter 4

The *CAL? (also performed using CAL:SETup then CAL:SETup?) is a very important step. *CAL? generates calibration correction constants for all analog input and output channels on-board the VT1422A. *CAL? must be performed in order for the VT1422A to deliver its specified accuracy.
*CAL? generates calibration correction constants for each analog input channel for offset and gain at all five A/D range settings. For programmable input SCPs, these calibration constants are only valid for the current configuration (gain and filter cut-off frequency). This means that *CAL? calibration is no longer valid if channel gain or filter settings (INP:FILT or INP:GAIN) are changed, but is still valid for changes of channel function or range (using SENS:FUNC...). Calibration becomes invalid if the SCPs are moved to different SCP locations.
For analog output channels (both measurement excitation SCPs as well as control output SCPs), *CAL? also generates calibration correction constants. These calibration constants are valid only for the specific SCPs in the positions they are currently in. Calibration becomes invalid if the SCPs are moved to different SCP locations.
How to Use *CAL? When power is turned on to the VT1422A after the SCPs are first installed (and after they are moved), the module will use approximate values for calibration constants. This means that input and output channels will function although the values will not be as accurate as the VT1422A’s specified capability. At this point, make sure the module is firmly anchored to the mainframe (front panel screws are tight) and let it warm up for one full hour. After it has warmed up, execute the *CAL? query.
What *CAL? Does The *CAL? query causes the module to calibrate A/D offset, gain, and all channel offsets. This may require several minutes to complete. The actual time it takes the VT1422A to complete *CAL? depends on the mix of SCPs installed. *CAL? literally performs hundreds of internal calibration source measurements for each channel and must allow seventeen time constants of settling wait each time a filtered channel’s calibration source changes value. The *CAL? procedure is internally very sophisticated and results in an extremely well-calibrated module.
When *CAL? finishes, it returns a +0 value to indicate success. The generated calibration constants are now in volatile memory as they are always ready to use. If the configuration just calibrated is to be fairly long-term, the CAL:STORE ADC command should be executed to store these constants in non-volatile memory. That way, the module can restore calibration constants for this configuration in case of a power failure. After power returns and the module warms up, these constants will be relatively accurate.
122 Programming the VT1422A for Data Acquisition and Control Chapter 4

RSCUs have a local calibration source that the VT1422A can measure directly. This source voltage along with a local short can be fed to each channel on the RSCU. The VT1422A reads the output value of each remote channel when connected to the short and then the calibration voltage source. Using this method, the VT1422A can determine the offset and gain values for each remote channel. Further, these values can be stored in non-volatile memory in the RSCU. The commands used to perform the remote calibration are: CALibration:REMote (@) where <ch_list> need only contain the first channel on each RSCU to calibrate all channels on that RSCU. The command to store the calibration constants into non-volatile memory is: CALibration:REMote:STORe (@) where <ch_list> need only contain the first channel on each RSCU to store the calibration constants into non-volatile flash memory.
Defining an Analog Input Scan List (ROUT:SEQ:DEF)
In this programming step, the contents of the analog input Scan List will be defined using the ROUTe:SEQuence:DEFine command. This allows measurements to be made that will be stored to the Current Value Table (CVT) and/or the FIFO buffer without programming or executing any algorithms. While the VT1422A can be used exclusively in this way, these modes of operation can also be combined (scanned analog input and algorithmic acquisition-and-control). In fact, there is only a single analog input scan list and it is defined as the sum of channels specified by ROUT:SEQ:DEF and referenced in any algorithms downloaded with the ALG:DEF SCPI command or the hpe1422_downloadAlg(...) plug&play function. Duplicate channel references are discarded. No matter how many times a channel is referenced, it is only measured once per trigger and the same value is seen in storage and by algorithms.
Programming the VT1422A for Data Acquisition and Control 123 Chapter 4

ROUTe:SEQuence:DEFine accepts both on-board channels from conventional SCPs as well as remote channels from Remote Signal Conditioning Units (RSCUs). For details about syntax see “Channel List (Standard Form)” starting on page 231 and “ROUTe:SEQuence:DEFine” on page 323.
To set up a scan list to take measurements on all on-board channels of a conventional SCP in position 0 and all remote channels of four VT1529A/Bs connected to two VT1539A SCPs in SCP positions 1 and 2:
Controlling Scan List
Readings taken on channels specified by ROUT:SEQ:DEF by default go to both the FIFO buffer and the CVT. By using another form of the <ch_list> parameter this data destination can be controlled to be the CVT, the FIFO, or even neither (no reading stored). For more on controlling data destination, See “ROUTe:SEQuence:DEFine” on page 323.
Example Scan List with controlled data destination
To set up a scan list as above but send the remote channel readings only to the FIFO buffer:
124 Programming the VT1422A for Data Acquisition and Control Chapter 4

This section is an overview of how to write and download C algorithms into the VT1422A's memory. It is assumed that the user has some programming experience in C, but since the VT1422A's version of C is limited, just about any experience with a programming language will suffice. See “Creating and Running Algorithms” on page 181 for a complete discussion of the VT1422A's C language algorithm functionality.
Arithmetic Operators: add +, subtract -, multiply *, divide / Assignment Operator: = Comparison Functions: less than =, equal to ==, not equal to != Boolean Functions: and && or ||, not ! Variables: scalars of type static float and single dimensioned arrays of type static float limited to 1024 elements. Constants: 32-bit decimal integer; Dddd... where D and d are decimal digits but D is not zero. No decimal point or exponent specified. 32-bit octal integer; 0oo... where 0 is a leading zero and o is an octal digit. No decimal point or exponent specified. 32-bit hexadecimal integer; 0Xhhh... or 0xhhh... where h is a hex digit. 32-bit floating point; ddd., ddd.ddd, ddde±dd, dddE±d, ddd.ddde±dd or ddd.dddE±dd where d is a decimal digit. Flow Control: conditional construct if(){ } else { } Intrinsic Functions: Return the absolute value; abs() Return minimum; min(,) Return maximum; max(,) User defined function; () Write value to CVT element; writecvt(,) Write value to FIFO buffer; writefifo() Write value to both CVT and FIFO; writeboth(,)
While the following discussion of algorithm definition is useful for plug&play users as regards the coding of an algorithm or global variable definition, the method of generating an algorithm code and actually downloading it to the VT1422A becomes much easier because of plug&play VT1422A.exe Soft Front Panel program and hpe1422_downloadAlg(...) plug&play driver function.
Using the SFP "Algorithm Panel," an algorithm can be created and tested and then stored to a file. The hpe1422_downloadAlg(...) plug&play driver function was created specifically to download algorithms from files into the VT1422A as part of the application program.
Programming the VT1422A for Data Acquisition and Control 125 Chapter 4

Global variables are used when it is necessary to communicate information from one algorithm to another. Globals are initialized to 0 unless specifically assigned a value at define time. The initial value is only valid at the time of definition. That is, globals remain around and may be altered by other SCPI commands or algorithms. Globals are removed only by power-ON or *RST. The following string output is valid for strings of 256 characters or less.
ALG:DEF 'globals','static float output_max = 1, coefficients[ 10 ];'
If the global definition exceeds 256 characters, an indefinite block header and definitions must be downloaded and it must be terminated by an LF/EOI sequence:
ALG:DEF 'globals',#0static float output_max = 1, LF/EOI
The LF/EOI sequence is part of the I/O and Instrument Manager in VEE. It is necessary to edit the VT1422A I/O device for direct I/O and purposely select EOI to be sent with the EOL terminator.
Algorithm Definition Algorithms are similar in nature to global definitions. Both scalars and arrays can be defined for local use by an algorithm. If less than 256 characters, simply place an algorithm code within string quotes:
ALG:DEF 'alg1','static float a = 1; if ( I100 > a ) writecvt( I100,10);'
If the global definition exceeds 256 characters, an indefinite block header and definitions must be downloaded and it must be terminated by an LF/EOI sequence:
ALG:DEF 'alg2',#0static float a = 1; ... ;LF/EOI
Algorithms remain around and cannot be altered once defined unless a fixed size for the algorithm is specified (see Chapter 4). Algorithms are removed from memory only by issuing a *RST or power-ON condition.
As is evident above, a variable can be initialized to a particular value. However, that value is a one-time initialization. Later program execution may alter the variable and re-issuing an INIT command to re-start program execution will NOT re-initialize that variable. Instead, any scalar or array can be altered using SCPI commands prior to issuing the INIT command or the intrinsic variable, First_loop, can relied upon to conditionally preset variables after receiving the INIT command. First_loop is a variable that is preset to non-zero due to the execution of the INIT command. With the occurrence of the first scan trigger and when algorithms execute for the first time, First_loop's value will be non-zero. Subsequent triggers will find this variable cleared. Here's an example of how First_loop can be used:
ALG:DEF 'alg1',#0static float a,b,c, start, some_array[ 4 ]; if ( First_loop ){ a = 1; b = 2; c = 3; } * * LF/EOI
To pre-set variables under program control before issuing the INIT command, the ALG:SCALAR and ALG:ARRAY commands can be used. Assume the example algorithm above has already been defined. To preset the scalar start and the array some_array, the following commands can be used:
126 Programming the VT1422A for Data Acquisition and Control Chapter 4

ALG:SCAL 'alg1','start',1.2345 ALG:ARR 'alg1','some_array',#232 LF/EOI ALG:UPD
The ALG:SCAL command designates the name of an algorithm, indicates where to find the local variable start, and assigns that variable the value of 1.2345. Likewise, the ALG:ARRAY command designates the name of an algorithm, the name of the local array, and a definite length block for assigning the four real number values. As it can be seen, the scalar assignment uses ASCII and the array assignment uses binary. The later makes for a much faster transfer, especially for large arrays. The format used is IEEE-754 8-byte binary real numbers. The header is #232 which states "the next 2 bytes are to be used to specify how many bytes are comming." In this case, 32 bytes represent the four 8-byte elements of the array. A 100-element array would have a header of #3800. To pre-initialize a global scalar or array, the word 'globals' must be used instead of the algorithm name. The name simply specifies the memory space of where to find those elements.
As stated earlier in the chapter, all updates (changes) are held in a holding buffer until the computer issues the update command. The ALG:UPD is that command. Executing ALG:UPD before INIT does not make much difference since there is no concern as to how long it takes or how it is implemented. After INIT forces the buffered changes to all take place during the next Update Phase in the trigger cycle after reception of the ALG:UPD command.
For VXIplug&play Users: Use the functions hpe1422_algArray, hpe1422_algScal to send new values to algorithm variables and hpe1422_cmd to send the ALG:UPD... SCPI command. See the VT1422A plug&play driver Help file.
The format of the values stored in the FIFO buffer and CVT never changes. They are always stored as IEEE 32-bit Floating point numbers. The FORMat [,] command merely specifies whether and how the values will be converted as they are transferred from the CVT and FIFO to the host computer.
Programming the VT1422A for Data Acquisition and Control 127 Chapter 4

To specify that values are to remain in IEEE 32-bit Floating Point format for fastest transfer rate:
To specify that values are to be converted to 7-bit ASCII and returned as a fifteen character per value comma separated list:
FORMAT ASC,7 The *RST, *TST?, and power-on default format or FORM ASC same operation as above
The VT1422A’s FIFO can operate in two modes. One mode is for reading FIFO values while the VT1422A is scanning and/or running algorithms; the other mode is for reading FIFO values after operation have been halted (ABORT sent).
To set the FIFO mode (blocking is the *RST/Power-on condition):
[SENSe:]DATA:FIFO:MODE OVERWRITE select overwrite mode [SENSe:]DATA:FIFO:MODE BLOCK select blocking mode
128 Programming the VT1422A for Data Acquisition and Control Chapter 4

Figure 4-6 shows the trigger and arm model for the VT1422A. Note that when the Trigger Source selected is TIMer (the default), the remaining sources become Arm Sources. Using ARM:SOUR allows an event to be specified that must occur in order to start the Trigger Timer. The default Arm source is IMMediate (always armed).

Figure 4-6. Logical Arm and Trigger Model
In order to start an instrument operation cycle, a trigger event must occur. The source of this event is selected with the TRIGger:SOURce command. The following table explains the possible choices for .

IMMediate The trigger signal is always true (scan starts when an INITiate:… command is received).
TIMer The internal trigger interval timer (must set Arm source)
Programming the VT1422A for Data Acquisition and Control 129 Chapter 4

NOTES 1. When TRIGger:SOURce is not TIMer, ARM:SOURce must be set to IMMediate (the *RST condition). If not, the INIT command will generate an error -221,"Settings conflict." 2. When TRIGger:SOURce is TIMer, the trigger timer interval (TRIG:TIM ) must allow enough time to scan all channels, execute all algorithms and update all outputs or a +3012, "Trigger Too Fast" error will be generated during the trigger cycle. See the TRIG:TIM command on page 397 for details.
To set the trigger source to the internal Trigger Timer (the default):
TRIG:SOUR TIMER now select ARM:SOUR
To set the trigger source to the External Trigger input connection:
TRIG:SOUR EXT an external trigger signal
To set the trigger source to a VXIbus TTLTRG line:
TRIG:SOUR TTLTRG1 the TTLTRG1 trigger line
Figure 4-6 shows that when the TRIG:SOUR is TIMer, the other trigger sources become Arm sources that control when the timer will start. The command to select the arm source is ARM:SOURce .
BUS ARM[:IMMediate]
EXTernal "TRG" signal input on terminal module
HOLD ARM[:IMMediate]
IMMediate The arm signal is always true (scan starts when an INITiate:… command is received).
SCP SCP Trigger Bus (future SCP Breadboard)
TTLTrg The VXIbus TTLTRG lines (n=0 through 7)
To set the external trigger signal as the arm source:
ARM:SOUR EXT trigger input on connector module
130 Programming the VT1422A for Data Acquisition and Control Chapter 4

When the VT1422A is triggered, it begins its instrument operation cycle. The time it takes to complete a cycle is the minimum interval setting for the Trigger Timer. If programmed to a shorter time, the module will generate a "Trigger too fast" error. How can this minimum time be determined? After all algorithms are defined, send the ALG:TIME? query with its parameter set to ’MAIN’. This causes the VT1422A’s driver to analyze the time required for all four phases of the operation cycle: Input, Update, Calculate, and Output. The value returned from ALG:TIME? ’MAIN’ is the minimum allowable Trigger Timer interval required to avoid the "Trigger too fast" error. With this information, execute the command TRIGger:TIMer and set to the desired time that is equal to or greater than the minimum.
Setting the Trigger Counter
The Trigger Counter controls how many trigger events will be allowed to start an input-calculate-output cycle. When the number of trigger events set with the TRIGger:COUNt command is reached, the module returns to the Trigger Idle State (needs to be INITiated again). The default Trigger Count is 1. Note that this default was chosen to make testing data acquisition scan lists easier (only one scan list of data in the FIFO). For algorithm operation, changing the count to INFinite (can be triggered an unlimited number of times) is probably desired. This setting will be used most often for uninterrupted execution of control algorithms.
To set the trigger count to fifty (perhaps to help debug an algorithm):
TRIG:COUNT 50 execute algorithms 50 times then return to Trig Idle State.
The VT1422A can output trigger signals on any of the VXIbus TTLTRG lines. Use the OUTPut:TTLTrg[:STATe] ON | OFF command to select one of the TTLTRG lines and then choose the source that will drive the TTLTRG line with the command OUTPut:TTLTrg:SOURce command. For details, see OUTP:TTLTRG commands starting on page 319.
To output a signal on the TTLTRG1 line each time the Trigger Timer cycles, execute the commands:
TRIG:SOUR TIMER select trig timer as trig source OUTP:TTLTRG1 ON select and enable TTLTRG1 line OUTP:TTLTRG:SOUR TRIG each trigger output on TTLTRG1
Programming the VT1422A for Data Acquisition and Control 131 Chapter 4

When the INITiate[:IMMediate] command is sent, the VT1422A builds the input Scan List from the input channels referenced when an algorithm is defined with the ALG:DEF command above and from the channels referenced with the ROUTe:SEQuence:DEFine command. The module also enters the Waiting For Trigger State. In this state, all that is required to start a scan and/or run an algorithm is a trigger event for each pass through the input-calculate-output instrument operation cycle. To initiate the module, send the command:
INIT module to Waiting for Trigger State
When an INIT command is executed, the driver checks several interrelated settings programmed in the previous steps. If there are conflicts in these settings an error message is placed in the Error Queue (read with the SYST:ERR? query). Some examples:
Once the module is INITiated it can accept triggers from any source specified in TRIG:SOUR.
TRIG:SOUR TIMER (*RST default) ARM:SOUR IMM (*RST default) INIT INIT starts Timer triggers
TRIG:SOUR TIMER ARM:SOUR HOLD INIT INIT readies module ARM ARM starts Timer triggers.
... and the algorithms start to execute.
1 INPUT
1A VERIFY
2 UPDATE
3 EXECUTE ALGS
4 OUTPUT
1 INPUT
SCAN and update scan statue
execute all enabled algorithms
output table sent to SCP
output table sent to SCP
Set by ALG:OUTPUT:DELay (if any)
Trigger Event Figure 4-7. Sequence of Loop Operations
132 Programming the VT1422A for Data Acquisition and Control Chapter 4

The VT1422A has four major operating phases plus one optional phase. Figure 4-7 shows these phases. A trigger event starts the sequence:
1A.(Remote Runtime Scan Verification): If a Scan Status Variable (S1xx) is referenced in any algorithm, this time is used to check the scan list execution of the Remote Signal Conditioning Unit (RSCU) connected to the channel xx. The S1xx variable will then take on one of three values; 0=normal operation, 1=the RSCU is disconnected and 3= the RSCU scan list was out of synchronization. Each VT1539A SCP has 2 main channels so there are 16 possible scan status variables; S100, S101, S108, S109, S116, S117, S124, S125, S132, S133, S140, S141, S148, S149, S156, and S157. If no S1xx variable is referenced in any algorithm, then phase 1A is not executed.
2. (UPDATE): The update phase is a window of time made large enough to process all variables and algorithm changes made after INIT. Its width is specified by ALG:UPDATE:WINDOW. This window is the only time variables and algorithms can be changed. Variable and algorithm changes can actually be accepted during other phases, but the changes don’t take place until an ALG:UPDATE command is received and the update phase begins. If no ALG:UPDATE command is pending, the update phase is simply used to accept variable and algorithm changes from the application program (using ALG:SCAL, ALG:ARR, ALG:DEF). Data acquired by external specialized measurement instruments can be sent to the algorithms at this time.
Note Changing algorithm variables requires VT1422A hardware resources that can only be provided during the INPUT and UPDATE phases of the operating cycle. The VT1422A does not update variables during the time between the CALCULATE and OUTPUT phases. Therefore, applications that are intensive in the update area should consciously extend the INPUT and UPDATE periods through use of the ALG:UPD:WINDOW and SAMP:TIME commands or by reducing the time between the CALCULATE and OUTPUT phases through shorter algorithm loop time. See TRIG:TIMer.
Programming the VT1422A for Data Acquisition and Control 133 Chapter 4

The most efficient means of acquiring algorithm derived data from the VT1422A is to have its algorithms store real-number results in the FIFO or CVT. The algorithms use the writefifo(), writecvt(), and writeboth() intrinsic functions to perform this operation as shown below.
writecvt( , 10 );
writecvt( , 13 );
CVT 13
writeboth( , 14 );
CVT 511
Current Value Table (CVT)
First-in-First-Out Data Buffer (FIFO)
Reading CVT Data Note that the first ten elements of the CVT are unavailable. These are used by the driver for internal data retrieval. However, all algorithms have access to the remaining 502 elements. Data is retrieved from the CVT with the SCPI command DATA:CVT? (@10,12,14:67)
For VXIplug&play Users: Use the function hpe1422_readCVT_Q for reading contiguous elements or hpe1422_cmdReal64Arr_Q(ViSession vi, ’DATA:CVT? (@<element_list>)’, ViInt32 size, ViReal64 _VI_FAR result[ ], ViPInt32 count) for non-contiguous elements (as in the example above). See the VT1422A plug&play driver Help file.
The format of data coming from the CVT is determined by the FORMat command.
134 Programming the VT1422A for Data Acquisition and Control Chapter 4
writefifo( ); · (502 elements) · (65,024 elements)

Reading FIFO Data The FIFO can store up to 65,024 real numbers. Each writefifo() or writeboth() cause that expression to be placed into the FIFO. With a FIFO this large, many seconds worth of data can be stored, depending upon the volume of writes and the trigger cycle time. The FIFO's most valuable service is to keep the computer from having to spend too much time acquiring data from the VT1422A. Data is retrieved from the FIFO with the SCPI query DATA:FIFO:PART?<count>.
The <count> parameter can be a number larger than the FIFO (up to 2.1 billion) if a continuous data read is desired. A query can also be made of how much data is in the FIFO with the DATA:FIFO:COUNT? query.
For VXIplug&play Users: See the functions hpe1422_readFifo32_Q andhpe1422_readFifo_Q in the VT1422A plug&play driver Help file.
Which FIFO Mode? Reading the FIFO depends on how the FIFO mode was set in programming step 7 of the “Programming Sequence” on page 105.
If the FIFO is going to read while algorithms are running, the FIFO mode must be set to SENS:DATA:FIFO:MODE BLOCK. In this mode, if the FIFO fills up, it stops accepting values from algorithms. The algorithms continue to execute, but the latest data is lost. To avoid losing any FIFO data, the application needs to read the FIFO often enough to keep it from overflowing. A flow diagram is included on the following page to indicate where and when to use the FIFO commands.
Programming the VT1422A for Data Acquisition and Control 135 Chapter 4

Any Values in FIFO? Enough Values
Command Execute Bulk Transfer
DATA:FIFO:PART?
Figure 4-8. Controlling Reading Count
Below is an example command sequence for Figure 4-8. It assumes that the FIFO mode was set to BLOCK and that at least one algorithm is sending values to the FIFO.
following loop reads number of values in FIFO while algorithms executing loop while "measuring" bit is true see STAT:OPER:COND bit 4 SENS:DATA:FIFO:COUNT? query for count of values in FIFO input n_values here if n_values >= 16384 Sets the minimum block size to transfer SENS:DATA:FIFO:PART? n_values ask for n_values input read_data here Format depends on FORMat cmd end if end while loop
following checks for values remaining in FIFO after "measuring" false SENS:DATA:FIFO:COUNT? query for values still in FIFO input n_values here if n_values if any values... SENS:DATA:FIFO:PART? n_values input read_data here get remaining values from FIFO end if
136 Programming the VT1422A for Data Acquisition and Control Chapter 4

In this mode, the FIFO always contains the latest values (up to the FIFO’s capacity of 65,024 values) from running algorithms. In order to read these values, the algorithms must be stopped (use ABORT). This forms a record of the algorithm’s latest performance. In the OVERwrite mode, the FIFO cannot be read while it is accepting readings from algorithms. Algorithm execution must be stopped before the application program reads the FIFO.
Here is an example command sequence that can be used to read values from the FIFO after algorithms are stopped (ABORT sent).
SENS:DATA:FIFO:COUNT? query count of values in FIFO input n_values here if n_values if any values... SENS:DATA:FIFO:PART? n_values Format of values set by FORMat input read_data here get remaining values from FIFO end of if
For VXIplug&play Users: See the functions hpe1422_sensDataFifoCoun_Q, hpe1422_readFifo32_Q in the VT1422A plug&play driver Help file.
To directly read algorithm variables that are not stored in the FIFO or CVT, simply specify the memory space (algorithm name or globals) and the name of the variable. To read the values of scalar variables or single array elements, use the ALG:SCALar? query. To read an entire array, use the ALG:ARRay? query. The former returns data in ASCII and the later returns data in REAL,64 (8-byte IEEE-754 format). This coincides with the ALG:SCAL and ALG:ARR commands form writing data to these variables. Here are some examples:
ALG:SCAL? 'globals','my_var' read global variable ALG:SCAL? 'alg1','my_array[6]' read single element of array ALG:SCAL? 'alg1','S108' read scan status variable ALG:ARR? 'alg2','my_other_array' read all elements of array
The ALG:ARR? response data will consist of a block header and real-64 data bytes. For example, if my_other_array was ten elements, the block header would be #280 which says there are two bytes of count that specify 80 bytes of data to follow. Data from the VT1422A is terminated with the GPIB EOI signal.
For VXIplug&play Users: See the functions hpe1422_algScal_Q (for scalar variables) and hpe1422_algArray_Q (for array variables) in the VT1422A plug&play driver Help file.
Programming the VT1422A for Data Acquisition and Control 137 Chapter 4

The values sent with the ALG:SCALAR and ALG:ARRAY command are kept in the Update Queue until an ALGorithm:UPDate command is received.
ALG:UPD cause changes to take place
Updates are performed during phase 2 of the instrument operation cycle (see Figure 4-7 on page 132). The UPDate:WINDow command can be used to specify how many updates need to be performed during phase 2 (UPDATE phase) and assigns a constant window of time to accomplish all of the updates that will be made. The default value for is 20. Fewer updates (shorter window) means slightly faster loop execution times. Each update takes approximately 1.4 μs.
To set the Update Window to allow 10 updates in phase 2:
ALG:UPD:WIND 10 allows slightly faster execution than default of 20 updates
A way to synchronize variable updates with an external event is to send the ALGorithm:UPDate:CHANnel ’’ command.
When the ALG:UPD:CHAN command is received, the module checks the current state of the digital bit. When the bit next changes state, pending updates are made in the next UPDATE Phase.
ALG:UPD:CHAN ’I133.B0’ perform updates when bit zero of VT1533A at channel 133 changes state
For VXIplug&play Users: Use the functions hpe1422_algArray, hpe1422_algScal to send new values to algorithm variables and hpe1422_cmd to send the ALG:UPD... SCPI command. See the VT1422A plug&play driver Help file.
An algorithm is enabled by default when it is defined. To enable or disable an algorithm, use the ALG:STATe , ON | OFF command. When an individual algorithm is enabled, it executes when the module is triggered. When disabled, the algorithm does not execute.
138 Programming the VT1422A for Data Acquisition and Control Chapter 4

To enable ALG1 and ALG2 and disable ALG3 and ALG4:
ALG:STATE ’ALG1’,ON enable algorithm ALG1 ALG:STATE ’ALG2’,ON enable algorithm ALG2 ALG:STATE ’ALG3’,OFF disable algorithm ALG3 ALG:STATE ’ALG4’,OFF disable algorithm ALG4 ALG:UPDATE changes take effect at next update phase
VXIplug&play Users: See the function hpe1422_cmd to send ALG:STATE.
The ALGorithm:SCAN:RATio ’’, command sets the number of trigger events that must occur before the next execution of algorithm . To execute ’ALG3’ only every twenty triggers, an ALG:SCAN:RATIO ’ALG3’,20 command can be sent followed by an ALG:UPDATE command. ’ALG3’ would then execute on the first trigger after INIT, then the 21st, then the 41st, etc. This can be useful to adjust the response time of a control algorithm relative to others. The *RST default for all algorithms is to execute on every trigger event.
Example SCPI Command Sequence
This example SCPI command sequence puts together all of the steps discussed so far in this chapter.
*RST Reset the module Setting up Signal Conditioning (only for programmable SCPs & RSCUs) INPUT:FILTER:FREQUENCY 2,(@116:119) On-board SCP channels INPUT:FILTER:FREQUENCY 10,(@14000:14931) 128 Remote RSCU channels INPUT:GAIN 64,(@116:119) INPUT:GAIN 8,(@120:123)
set up digital channel characteristics INPUT:POLARITY NORM,(@125) (*RST default) OUTPUT:POLARITY NORM,(@124) (*RST default) OUTPUT:TYPE ACTIVE,(@124)
link channels to EU conversions (measurement functions) SENSE:FUNCTION:VOLTAGE AUTO,(@100:107) (*RST default) SENSE:REFERENCE THER,5000,AUTO,(@108) SENSE:FUNCTION:TEMPERATURE TC,T,AUTO,(@109:123) SENSE:REFERENCE:CHANNELS (@108),(@109:123)
configure digital output channel for "alarm channel" SOURCE:FUNCTION:CONDITION (@132)
execute On-board channel calibration (can take several minutes) *CAL? enter statement here for cal return
execute Remote channel calibration on RSCUs CAL:REMOTE? (@14000:14931) enter statement here for cal return
Direct data acquisition channels placed in Scan List. On-board channels 00-07 and 128 remote channels covered by VT1539A SCPs in positions 5 & 6 ROUTE:SEQUENCE:DEFINE (@100:107,14000:14931)
Configure the Trigger System ARM:SOURCE IMMEDIATE (*RST default) TRIGGER:COUNT 1 (*RST default) TRIGGER:TIMER .010 (*RST default)
Programming the VT1422A for Data Acquisition and Control 139 Chapter 4

TRIGGER:SOURCE TIMER (*RST default) Set the channel-to-channel measurement pacing (channel settling time) SAMPle:TIMer 4E-5 (*RST default) specify data format FORMAT ASC,7 (*RST default) select FIFO mode SENSE:DATA:FIFO:MODE BLOCK may read FIFO while running
Define algorithm ALG:DEFINE 'ALG1','static float a,b,c, div, mult, sub;
if ( First_loop )
{ a = 1; b = 2; c = 3; writecvt( a, 10 ); writefifo( b, 11 ); writefifo( c, 12 ); } writecvt( a / div, 13 ); writecvt( b * mult, 14 ); writecvt( c - sub, 15 ); /* end of algorithm */'
Pre-set the algorithm coefficients ALG:SCAL 'ALG1','div',5 ALG:SCAL 'ALG1','mult',5 ALG:SCAL 'ALG1','sub',0 ALG:UPDATE all alg vars updated at this time
initiate trigger system (start algorithm) INITIATE
retrieve algorithm data from elements 10 through 15 SENSE:DATA:CVT? (@10:15,330:457) enter statement here for CVT values from 6 on-board and 128 remote chans
This example plug&play command sequence puts together all of the steps discussed so far in this chapter.
hpe1422_init(INSTR_ADDRESS, 0, 0, &vi) hpe1422_reset(vi) Reset the module Setting up Signal Conditioning (only for programmable SCPs & RSCUs) hpe1422_cmd(vi, ’INPUT:FILTER:FREQUENCY 2,(@116:119)’) On-board SCP channels hpe1422_cmd(vi, ’INPUT:FILTER:FREQUENCY 10,(@14000:14931)’) 128 Remote channels hpe1422_cmd(vi, ’INPUT:GAIN 64,(@116:119)’) hpe1422_cmd(vi, ’INPUT:GAIN 8,(@120:123)’)
set up digital channel characteristics hpe1422_cmd(vi, ’INPUT:POLARITY NORM,(@125)’) (*RST default) hpe1422_cmd(vi, ’OUTPUT:POLARITY NORM,(@124)’) (*RST default) hpe1422_cmd(vi, ’OUTPUT:TYPE ACTIVE,(@124)’)
link channels to EU conversions (measurement functions) hpe1422_cmd(vi, ’SENSE:FUNCTION:VOLTAGE AUTO,(@100:107)’) (*RST default) hpe1422_cmd(vi, ’SENSE:REFERENCE THER,5000,AUTO,(@108)’) hpe1422_cmd(vi, ’SENSE:FUNCTION:TEMPERATURE TC,T,AUTO,(@109:123)’) hpe1422_cmd(vi, ’SENSE:REFERENCE:CHANNELS (@108),(@109:123)’)
140 Programming the VT1422A for Data Acquisition and Control Chapter 4

configure digital output channel for "alarm channel" hpe1422_cmd(vi, ’SOURCE:FUNCTION:CONDITION (@132)’)
execute On-board channel calibration (can take several minutes) hpe1422_cmdInt16_Q(vi, ’*CAL?’, ViPInt16 result) test "result" for success
execute Remote channel calibration on RSCUs hpe1422_cmdInt16_Q(vi, ’CAL:REMOTE? (@14000:14931)’, ViPInt16 &result) test "result" for success
Direct data acquisition channels placed in Scan List. On-board channels 00-07 and 128 remote channels covered by VT1539A SCPs in positions 5 & 6 hpe1422_cmd(vi, ’ROUTE:SEQUENCE:DEFINE (@100:107,14000:14931)’)
Configure the Trigger System hpe1422_cmd(vi, ’ARM:SOURCE IMMEDIATE’) (*RST default) hpe1422_cmd(vi, ’TRIGGER:COUNT 1’) (*RST default) hpe1422_cmd(vi, ’TRIGGER:TIMER .010’) (*RST default) hpe1422_cmd(vi, ’TRIGGER:SOURCE TIMER’) (*RST default) Set the channel-to-channel measurement pacing (channel settling time) hpe1422_cmd(vi, ’SAMPle:TIMer 4E-5’) (*RST default) specify data format hpe1422_cmd(vi, ’FORMAT ASC,7’) (*RST default) select FIFO mode hpe1422_cmd(vi, ’SENSE:DATA:FIFO:MODE BLOCK’) may read FIFO while running
Define algorithm. Algorithm from SCPI sequence on previous page can be put in a text file and saved as "seqalg.c." hpe1422_downloadAlg(vi, ’ALG1’, 0, ’seqalg.c’)
Pre-set the algorithm coefficients hpe1422_algScal(vi, 'ALG1', ’div’, 5) hpe1422_algScal(vi, 'ALG1', 'mult', 5) hpe1422_algScal(vi, 'ALG1', 'sub', 0) hpe1422_cmd(vi, ’ALG:UPDATE’) all alg vars updated at this time
initiate trigger system (start algorithm) hpe1422_initImm(vi)
retrieve algorithm data from elements 10 through 15 hpe1422_cmdReal64Arr_Q(vi, ’SENSE:DATA:CVT? (@10:15,330:457)’, 502, myfloat64array[ ],&count) may test the int32 value "count" for number of cvt values returned
Programming the VT1422A for Data Acquisition and Control 141 Chapter 4

The VT1422A’s Status System allows for the quick polling a single register (the Status Byte) to see if any internal conditions require attention. Figure 4-9 shows that the three Status Groups (Operation Status, Questionable Data and the Standard Event Groups) and the Output Queue all send summary information to the Status Byte. By this method, the Status Byte can report many more events than its eight bits would otherwise allow. Figure 4-10 shows the Status System in detail.

Figure 4-9. Simplified Status System Diagram
142 Programming the VT1422A for Data Acquisition and Control Chapter 4


QUE - Questionable Data MAV - Message Available ESB - Standard Event RQS - Request Service OPR - Operation Status
Figure 4-10. VT1422A Status System
Programming the VT1422A for Data Acquisition and Control 143 Chapter 4

Bit Bit Value Event Name Description
8 256 Lost Calibration At *RST or Power-on Control Processor has found a checksum error in the Calibration Constants. Read error(s) with SYST:ERR? query and re-calibrate areas that lost constants.
9 512 Trigger Too Fast Scan not complete when another trigger event received.
10 1024 FIFO Overflowed Attempt to store more than 65,024 values in FIFO.
11 2048 Overvoltage (Detected on Input)
If the input protection jumper has not been cut, the input relays have been opened and *RST is required to reset the module. Overvoltage will also generate an error.
12 4096 VME Memory
The number of values taken exceeds VME memory space.
13 8192 Setup Changed Channel Calibration in doubt because SCP setup may have changed since last *CAL? or CAL:SETup command. (*RST always sets this bit.)
Bit Bit Value Event Name Description
0 1 Calibrating Set by CAL:TARE and CAL:SETup. Cleared by CAL:TARE? and CAL:SETup?. Set while *CAL? executing, then cleared.
4 16 Measuring Set when instrument INITiated. Cleared when instrument returns to Trigger Idle State.
8 256 Scan Complete Set when each pass through a Scan List is completed.
9 512 SCP Trigger Reserved for future SCPs.
10 1024 FIFO Half Full FIFO contains at least 32,768 values.
11 2048 Algorithm Interrupt The interrupt() function was called in an executing algorithm.
Bit Bit Value Event Name Description
0 1 Operation Complete *OPC command executed and instrument has completed all pending operations.
1 2 Request Control Not used by VT1422A
2 4 Query Error Attempting to read empty output queue or output data lost.
3 8 Device Dependent Error A device-dependent error occurred. See Appendix B page 453.
4 16 Execution Error Parameter out of range or instrument cannot execute a proper command because it would conflict with another instrument setting.
5 32 Command Error Unrecognized command or improper parameter count or type.
6 64 User Request Not used by VT1422A.
7 128 Power-On Power has been applied to the instrument.
144 Programming the VT1422A for Data Acquisition and Control Chapter 4

There are two sets of registers that individual status conditions must pass through before that condition can be reported in the instrument’s Status Byte. These are the Transition Filter Registers and the Enable registers. They provide selectivity in recording and reporting module status conditions.
Status Byte
Figure 4-10 shows that the Condition Register outputs are routed to the input of the Negative Transition and Positive Transition Filter Registers. For space reasons they are shown together but are controlled by individual SCPI commands. It is important to understand that whether an event from the Condition Register was negative-going (NTR bit 1) or positive-going (PTR bit 1), the Event Register always records the event by setting a bit to 1. The only way Event Register Bits are changed from 1 to 0 is with the STAT:...:EVENt?, STAT:PRESet, *CLS, or *RST commands. Here is the truth table for the Transition Filter Registers:
Condition Reg Bit PTRansition Reg Bit NTRansition Reg Bit Event Reg Bit
0→1 0 0 no change
1→0 0 0 no change
0→1 1 0 1
1→0 1 0 no change
0→1 0 1 no change
1→0 0 1 1
0→1
1→0 1 1 1
The Power-on default condition is: All Positive Transition Filter Register bits set to one and all Negative Transition Filter Register bits set to 0. This applies to both the Operation and Questionable Data Groups.
Suppose that having the module report via the Status System when it has completed executing *CAL? is desired. The "Calibrating" bit (bit 0) in the Operation Condition Register goes to 1 when *CAL? is executing and returns to 0 when *CAL? is complete. In order to record only the negative transition of this bit in the STAT:OPER:EVEN register, send:
STAT:OPER:PTR 32766 All ones in Pos Trans Filter register except bit 0=0 STAT:OPER:NTR 1 All zeros in Neg Trans Filter register except bit 0=1
Now, when *CAL? completes and Operation Condition Register bit zero goes from 1 to 0, Operation Event Register bit zero will become a 1.
Programming the VT1422A for Data Acquisition and Control 145 Chapter 4

In Figure 4-10, note that each Status Group has an Enable Register. These control whether or not the occurrence of an individual status condition will be reported by the group’s summary bit in the Status Byte.
To have only the "FIFO Overflowed" condition reported by the QUE bit (bit 3) of the Status Byte, execute:
STAT:QUES:ENAB 1024 1024=decimal value for bit 10
To have only the "FIFO Overflowed" and "Setup Changed" conditions reported, execute:
STAT:QUES:ENAB 9216 9216=decimal sum of values for bits 10 and 13
To have only the "FIFO Half Full" condition reported by the OPR bit (bit 7) of the Status Byte, execute:
STAT:OPER:ENAB 1024 1024=decimal value for bit 10
To have only the "FIFO Half Full" and "Scan Complete" conditions reported, execute:
STAT:OPER:ENAB 1280 1280=decimal sum of values for bits 10 and 8
To have only the "Query Error", "Execution Error," and "Command Error" conditions reported by the ESB bit (bit 5) of the Status Byte, execute:
*ESE 52 52=decimal sum of values for bits 2, 4, and 5
To check if any enabled events have occurred in the status system, first read the Status Byte using the *STB? query. If the Status Byte is all zeros, there is no summary information being sent from any of the status groups. If the Status Byte is other than zero, one or more enabled events have occurred. The Status Byte bit values are interpreted and act as follows:
146 Programming the VT1422A for Data Acquisition and Control Chapter 4

Bit 3 (QUE) bit value 810 Read the Questionable Data Group’s Event Register using the STAT:QUES:EVENT? query. This will return bit values for events which have occurred in this group. After reading, the Event Register is cleared.
Bit 4 (MAV) bit value 1610 There is a message available in the Output Queue. The appropriate query should be executed.
Bit 5 (ESB) bit value 3210 Read the Standard Event Group’s Event Register using the *ESR? query. This will return bit values for events which have occurred in this group. After reading, this status register is cleared.
Bit 7 (OPR) bit value 12810 Read the Operation Status Group’s Event Register using the STAT:OPER:EVENT? query. This will return bit values for events which have occurred in this group. After reading, the Event Register is cleared.
To clear the Enable Registers execute:
STAT:PRESET for Operation Status and Questionable Data Groups *ESE 0 for the Standard Event Group *SRE 0 for the Status Byte Group
The Enable Register for the Status Byte Group has a special purpose. Notice in Figure 4-10 how the Status Byte Summary bit wraps back around to the Status Byte. The summary bit sets the RQS (request service) bit in the Status Byte. Using this Summary bit (and those from the other status groups) the Status Byte can polled and the RQS bit checked to determine if there are any status conditions which need attention. In this way, the RQS bit is like the GPIB’s SRQ (Service Request) line. The difference is that while executing a GPIB serial poll (SPOLL) releases the SRQ line, executing the *STB? query does not clear the RQS bit in the Status Byte. The Event Register of the group whose summary bit is causing the RQS must be read.
Register
Programming the VT1422A for Data Acquisition and Control 147 Chapter 4

It may be desirable to directly poll status groups for instrument status rather than poll the Status Byte for summary information.
Reading Event Registers The Questionable Data, Operation Status and Standard Event Groups all have Event Registers. These Registers log the occurrence of even temporary status conditions. When read, these registers return the sum of the decimal values for the condition bits set, then are cleared to make them ready to log further events. The commands to read these Event Registers are:
STAT:QUES:EVENT? Questionable Data Group Event Register STAT:OPER:EVENT? Operation Status Group Event Register *ESR? Standard Event Group Event Register
Clearing Event Registers To clear the Event Registers without reading them, execute:
*CLS clears all group’s Event Registers
The Questionable Data and Operation Status Groups each have a Condition Register. The Condition Register reflects the group’s status condition in "real-time." These registers are not latched so transient events may be missed when the register is read. The commands to read these registers are:
STAT:QUES:COND? Questionable Data Group Condition Register STAT:OPER:COND? Operation Status Group Condition Register
The VT1422A inherently runs its algorithms and calibrations in the background mode with no interaction required from the driver. All resources needed to run the measurements are controlled by the on-board Control Processor (DSP).
The driver is required to setup the type of measurement to be run, modify algorithm variables and to unload data from the card after it appears in the CVT or FIFO. Once the INIT[:IMM] command is given, the VT1422A is initiated and all functions of the trigger system, measurement scanning, and algorithm execution are controlled by its on-board control processor. The driver returns to waiting for user commands. No interrupts are required for the VT1422A to complete its measurement.
While the module is scanning and/or running algorithms, the driver can be queried for its status and data can be read from the FIFO and CVT. The ABORT command may be given to force continuous execution to complete. Any changes to the measurement setup will not be allowed until the TRIG:COUNT is reached or an ABORT command is given. Of course, any commands or queries can be given to other instruments while the VT1422A is running algorithms.
148 Programming the VT1422A for Data Acquisition and Control Chapter 4

The driver needs to update the status system’s information whenever the status of the VT1422A changes. This update is always done when the status system is accessed or when CALibrate, INITiate, or ABORt commands are executed. Most of the bits in the OPER and QUES registers represent conditions which can change while the VT1422A is measuring (initiated). In many circumstances, it is sufficient to have the status system bits updated the next time the status system is accessed or the INIT or ABORt commands are given. When it is desired to have the status system bits updated closer in time to when the condition changes on the VT1422A, the VT1422A interrupts can be used.
The VT1422A can send VXI interrupts upon the following conditions:
These VT1422A interrupts are not always enabled since, under some circumstances, this could be detrimental to the users system operation. For example, the Scan Complete, SCP triggers, FIFO half full, and Measurement complete interrupts could come repetitively, at rates that would cause the operating system to be swamped by processing interrupts. These conditions are dependent upon the user’s overall system design, therefore the driver allows the user to decide which, if any, interrupts will be enabled.
The way the user controls which interrupts will be enabled is via the *OPC, STATUS:OPER/QUES:ENABLE, and STAT:PRESET commands.
Each of the interrupting conditions listed above, has a corresponding bit in the QUES or OPER registers. If that bit is enabled via the STATus:OPER/ QUES:ENABle command to be a part of the group summary bit, it will also enable the VT1422A interrupt for that condition. If that bit is not enabled, the corresponding interrupt will be disabled.
Sending the STAT:PRESET will disable all the interrupts from the VT1422A.
Sending the *OPC command will enable the measurement complete interrupt. Once this interrupt is received and the OPC condition sent to the status system, this interrupt will be disabled if it was not previously enabled via the STATUS:OPER/QUES:ENABLE command.
Programming the VT1422A for Data Acquisition and Control 149 Chapter 4

The previous description is always true for a downloaded driver. In the C-SCPI driver, however, the interrupts will only be enabled if cscpi_overlap mode is ON when the enable command is given. If cscpi_overlap is OFF, the user is indicating they do not want interrupts to be enabled. Any subsequent changes to cscpi_overlap will not change which interrupts are enabled. Only sending *OPC or STAT:OPER/QUES:ENAB with cscpi_overlap ON will enable interrupts.
In addition the user can enable or disable all interrupts via the SICL calls, iintron() and iintroff().
The VT1422A provides for loading custom EU conversion tables. This allows for the on-board conversion of transducers not otherwise supported by the VT1422A.
Standard EU Operation The EU conversion tables built into the VT1422A are stored in a "library" in the module’s non-volatile Flash Memory. When a specific channel is linked to a standard EU conversion using the [SENSe:]FUNC:… command, the module copies that table from the library to a segment of RAM allocated to the specified channel. When a single EU conversion is specified for multiple channels, multiple copies of that conversion table are put in RAM, one copy into each channel’s Table RAM Segment. The conversion table-per-channel arrangement allows higher speed scanning since the table is already loaded and ready to use when the channel is scanned.
Custom EU Operation Custom EU conversion tables are loaded directly into a channel’s Table RAM Segment using the DIAG:CUST:MXB and DIAG:CUST:PIEC commands. The DIAG:CUST:… commands can specify multiple channels. To "link" custom conversions to their tables, execute the [SENSe:]FUNC:CUST ,(@) command. Unlike standard EU conversions, the custom EU conversions are already linked to their channels (tables loaded) before [SENSe:]FUNC:CUST is executed, but the command allows the A/D range for these channels to be specified.
Custom EU Tables The VT1422A uses two types of EU conversion tables: linear and piecewise. The linear table describes the transducer’s response slope and offset (y=mx+b). The piecewise conversion table gets its name because it is actually an approximation of the transducer’s response curve in the form of 512 linear segments whose end-points fall on the curve. Data points that fall between the end-points are linearly interpolated. The built-in EU conversions for thermistors, thermocouples, and RTDs use this type of table.
150 Programming the VT1422A for Data Acquisition and Control Chapter 4

The VT1422A can measure temperature using custom characterized thermocouple wire of types E, J, K, N, R, S, and T. The custom EU table generated for the individual batch of thermocouple wire is loaded to the appropriate channels using the DIAG:CUST:PIEC command. Since thermocouple EU conversion requires a "reference junction compensation" of the raw thermocouple voltage, the custom EU table is linked to the channel(s) using the command [SENSe:]FUNCtion:CUSTom:TCouple [,],(@).
The parameter specifies the type of thermocouple wire so that the correct built-in table will be used for reference junction compensation. Reference junction compensation is based on the reference junction temperature at the time the custom channel is measured. For more information, see “Thermocouple Reference Temperature Compensation” on page 114.
The VT1422A can measure reference junction temperatures using custom characterized RTDs and thermistors. The custom EU table generated for the individually characterized transducer is loaded to the appropriate channel(s) using the DIAG:CUST:PIEC command. Since the EU conversion from this custom EU table is to be considered the "reference junction temperature", the channel is linked to this EU table using the command [SENSe:]FUNCtion:CUSTom:REFerence [,](@).
Conversions
This command uses the custom EU conversion to generate the reference junction temperature as explained in the section “Thermocouple Reference Temperature Compensation” on page 114.
Contact a VXI Technology System Engineer for more information on creating Custom Engineering Unit Conversion.
Loading Custom EU
There is a specific location in the VT1422A’s memory for each channel’s EU Conversion table. When standard EU conversions are specified, the VT1422A loads these locations with EU conversion tables copied from its non-volatile flash memory. For Custom EU conversions, these table values must be loaded using either of two SCPI commands.
Loading Tables for Linear Conversions
The DIAGnostic:CUSTom:MXB ,, (@) command sends the <slope> and <offset> parameters that allow the driver to calculate and download a custom linear Engineering Unit Conversion table to the VT1422A for each channel specified.
foutp1 foutp0 – ( ) Vin1 Vin0 – ( ) ⁄
Programming the VT1422A for Data Acquisition and Control 151 Chapter 4

Usage Example:
The program puts table constants into array <table_block> DIAG:CUST:MXB 2.2,19,(@132:163) send table for chs 32-63 to VT1422A SENS:FUNC:CUST 1,(@132:163) link custom EU with chs 32-63 and set the 1 V A/D range INITiate then TRIGger module
The DIAGnostic:CUSTom:PIECewise ,, (@) command downloads a custom piecewise Engineering Unit Conversion table to the VT1422A for each channel specified.
Usage Example:
The program puts table constants into array table_block DIAG:CUST:PIEC <table_block>,1,(@124:131) send table for chs 24-31 to VT1422A SENS:FUNC:CUST 1,(@124:131) link custom EU with chs 24-31 and set the 1 V A/D range INITiate then TRIGger module
Summary The following points describe the capabilities of custom EU conversion:
152 Programming the VT1422A for Data Acquisition and Control Chapter 4

System Wiring Offsets The VT1422A can compensate for offsets in the system’s field wiring. Apply shorts to channels at the Unit-Under-Test (UUT) end of the field wiring and then execute the CAL:TARE (@) command. The instrument will measure the voltage at each channel in and save those values in RAM as channel tare constants.
Thermocouples
Residual Sensor Offsets To remove offsets like those in an unstrained strain gage bridge, execute the CAL:TARE command on those channels. The module will then measure the offsets and as in the wiring case above, remove these offsets from future measurements. In the strain gage case, this "balances the bridge" so all measurements have the initial unstrained offset removed to allow the most accurate high-speed measurements possible.
Operation After CAL:TARE measures and stores the offset voltages, it then performs the equivalent of a *CAL? operation. This operation uses the tare constants to set a DAC which will remove each channel offset as "seen" by the module’s A/D converter.
The absolute voltage level that CAL:TARE can remove is dependent on the A/D range. CAL:TARE will choose the lowest range that can handle the existing offset voltage. The range that CAL:TARE chooses will become the lowest usable range (range floor) for that channel. For any channel that has been "CAL:TARE’d" Autorange will not go below that range floor and selecting a manual range below the range floor will return an Overload value (see the table “Maximum CAL:TARE Offsets” on page 154).
Programming the VT1422A for Data Acquisition and Control 153 Chapter 4

As an example, assume that the system wiring to channel 0 generates a +0.1 volt offset with 0 volts (a short) applied at the UUT. Before CAL:TARE the module would return a reading of 0.1 volt for channel 0. After CAL:TARE (@100), the module will return a reading of 0 volts with a short applied at the UUT and the system wiring offset will be removed from all measurements of the signal to channel 0. Think of the signal applied to the instrument’s channel input as the gross signal value. CAL:TARE removes the tare portion leaving only the net signal value.
Because of settling times, especially on filtered channels, CAL:TARE can take several minutes to execute.
The tare calibration constants created during CAL:TARE are stored in and are usable from the instrument’s RAM. To store the tare constants in non-volatile flash memory, execute the CAL:STORE TARE command.
Resetting CAL:TARE To "undo" the CAL:TARE operation, execute CAL:TARE:RESet then *CAL?/CAL:SET. If current tare calibration constants have been stored in Flash Memory, execute CAL:TARE:RESET, then CAL:STORE TARE.
Here are some things to keep in mind when using CAL:TARE.
The tare value that can be compensated for is dependent on the instrument range and SCP channel gain settings. The following table lists these limits.
Maximum CAL:TARE Offsets A/D range ±V F.Scale
Offset V Gain x16
Offset V Gain x64
16 3.2213 0.40104 0.20009 0.04970 4 0.82101 0.10101 0.05007 0.01220 1 0.23061 0.02721 0.01317 0.00297 0.25 0.07581 0.00786 0.00349 0.00055 0.0625 0.03792 0.00312 0.00112 n/a
154 Programming the VT1422A for Data Acquisition and Control Chapter 4

To change a channel’s SCP setup after a CAL:TARE operation, a *CAL? operation must be performed to generate new DAC constants and reset the "range floor" for the stored tare value. The tare capability of the range/gain setup that the channel is being changed to must also be considered. For instance, if the actual offset present is 0.6 volts and was "tared" for a 4 volt range/Gain x1 setup, moving to a 1 volt range/Gain x1 setup will return Overload values for that channel since the 1 volt range is below the range floor as set by CAL:TARE. See Table 7-1 on page 294 for more on values returned for Overload readings.
Unexpected Channel Offsets or Overloads
This can occur when the VT1422A’s Flash Memory contains CAL:TARE offset constants that are no longer appropriate for its current application. Execute CAL:TARE:RESET then *CAL? to reset the tare constants in RAM. Measure the affected channels again. If the problems go away, then the tare constants in Flash memory by executing CAL:STORE TARE can be reset.
Most of the VT1422A’s analog input SCPs provide a method to detect open transducers. When Open Transducer Detect (OTD) is enabled, the SCP injects a small current into the HIGH and LOW input of each channel. The polarity of the current pulls the HIGH inputs toward +17 volts and the LOW inputs towards -17 volts. If a transducer is open, measuring that channel will return an over-voltage reading. OTD is available on a per SCP basis. All eight channels of an SCP are enabled or disabled together. See Figure 4-11 for a simplified schematic diagram of the OTD circuit.

Figure 4-11. Simplified Open Transducer Detect Circuit
Programming the VT1422A for Data Acquisition and Control 155 Chapter 4

NOTES 1. When OTD is enabled, the inputs have up to 0.2 µA injected into them. If this current will adversely affect the measurement, but checking for open transducers is still desired, enable OTD, run the algorithms, check analog input variables for measurement values that indicate an open transducer, then disable OTD and run the algorithms without it. The VT1422A’s accuracy specifications apply only when OTD is off. 2. When a channel’s SCP filtering is enabled, allow fifteen seconds after turning on OTD for the filters capacitors to charge before checking for open transducers.
To enable or disable Open Transducer Detection, use the DIAGnostic:OTDetect[:STATe] , (@) command.
To enable Open Transducer Detection on all channels on SCPs 1 and 3: DIAG:OTD ON, (@100,116) 0 is on SCP 1 and 16 is on SCP3
To disable Open Transducer Detection on all channels on SCPs 1 and 3: DIAG:OTD OFF, (@100,116)
There are rare circumstances where an input signal can be difficult for the VT1422A to auto range correctly. The module completes the range selection based on the input signal about 6 µs before the actual measurement is made on that channel. If, during that period, the signal becomes greater than the selected range can handle, the module will return an overflow reading (±INFinity).
To fix this problem, use the DIAGnostic:FLOor ,(@) command. Include the problem channel(s) in and specify the lowest range desired for auto range to select for those channels. This will set a range "floor" for these channels that auto range can’t go below while still allowing auto range to select higher ranges as necessary. If more than one range floor needs to specified for different channel sets, execute the DIAG:FLOOR command multiple times.
The DIAGnostic:FLOor:DUMP command sends the current range floor settings for all 64 channels to the FIFO. Use DATA:FIFO:PART? 64 to read these values.
The auto range floor settings remain until another DIAG:FLOOR command changes them or a *RST resets them to the lowest range for all channels.
156 Programming the VT1422A for Data Acquisition and Control Chapter 4

Some sequences of input signals, as determined by their order of appearance in a scan list, can be a challenge to measure accurately. This section is intended to help determine if a system presents any of these problems and how best to eliminate them or reduce their effect.
Background While the VT1422A can auto-range, measure and convert a reading to engineering units as fast as once every 10 µs, measuring a high-level signal followed by a very low-level signal may require some extra settling time. As seen from the point of view of the VT1422A’s Analog-to-Digital converter and its Range Amplifier, this situation is the most difficult to measure. For example, let’s look at two consecutive channels; the first measures a power supply at 15.5 volts, the next measures a thermocouple temperature. First the input to the Range Amplifier is at 15.5 volts (near its maximum) with any stray capacitances charged accordingly, then it immediately is switched to a thermocouple channel and down-ranged to its 0.0625 volt range. On this range, the resolution is now 1.91 µV per Least Significant Bit (LSB). Because of this sensitivity, the time to discharge these stray capacitances may have to be considered.
Thus far in the discussion, it has been assumed that the low-level channel measured after a high-level channel has presented a low impedance path to discharge the A/D’s stray capacitances (path was the thermocouple wire). The combination of a resistance measurement through a VT1501A Direct Input SCP presents a much higher impedance path. A very common measurement like this would be the temperature of a thermistor. If measured through a Direct Input SCP, the source impedance of the measurement is essentially the value of the thermistor (the output impedance of the current source is in the gigaohm region). Even though this is a higher level measurement than the previous example, the settling time can be even longer due to the slower discharge of the stray capacitances. The simple answer here is to always use an SCP that presents a low impedance buffered output to the VT1422A’s Range Amp and A/D. The VT1503A, 8A, 9A, 10A, 12A, and 14A through 17A SCPs all provide this capability.
This method can be used to quickly determine if any of the system’s channels need more settling time by simply applying some settling time to every channel. Use this procedure:
Programming the VT1422A for Data Acquisition and Control 157 Chapter 4

Fixing the Problem If the system scans fast enough with the increased sample period, the problem is solved. The system is only running as fast as the slowest channel allows, but, if its fast enough, that’s okay. If, on the other hand, getting quality readings has slowed the scan rate too much, there are two other methods that will, either separately or in combination, have the system making good measurements as fast as possible.
Use Amplifier SCPs Amplifier SCPs can remove the need to increase settling delays. How? Each gain factor of four provided by the SCP amplifier allows the Range Amplifier to be set one range higher and still provide the same measurement resolution. Amplifier SCPs for the VT1422A are available with gains of 0.5, 8, 16, 64, and 512. Now return to the earlier example of a difficult measurement where one channel is measuring 15.5 volts on the 16 volt range and the next a thermocouple on the 0.0625 range. If our thermocouple channel is amplified through an SCP with a gain of 16, the Range Amplifier can be set to the 1 volt range. On this range the A/D resolution drops to around 31 µV per LSB so the stray capacitances discharging after the 15.5 volt measurement are now only one-sixteenth as significant and thus reduce any required settling delay. Of course for most thermocouple measurements, a gain of 64 can be used and set the Range Amplifier to the 4 volt range. At this setting, the A/D resolution for one LSB drops to about 122 µV and further reduces or removes any need for additional settling delay. This improvement is accomplished without any reduction of the overall measurement resolution.
NOTE Filter-amplifier SCPs can provide improvements in low-level signal measurements that go beyond just settling delay reduction. Amplifying the input signal at the SCP allows using less gain at the Range Amplifier (higher range) for the same measurement resolution. Since the Range Amplifier has to track signal level changes (from the multiplexer) at up to 100 kHz, its bandwidth must be much higher than the bandwidth of individual filter-amplifier SCP channels. Using higher SCP gain along with lower Range Amplifier gain can significantly increase normal-mode noise rejection.
158 Programming the VT1422A for Data Acquisition and Control Chapter 4

This method adds settling time only to individual problem measurements as opposed to the SAMPle:TIMer command that introduces extra time for all analog input channels. If problems are seen on only a few channels, the SENS:CHAN:SETTLING ,(@) command can be used to add extra settling time for just these problem channels. What SENS:CHAN:SETTLING does is it instructs the VT1422A to replace single instances of a channel in the Scan List with multiple repeat instances of that channel if it is specified in (@). The number of repeats is set by .
Example:
Normal Scan List:
100, 101, 102, 103, 104
Scan List after SENS:CHAN:SETT 3,(@100,103)
100, 100, 100, 101, 102, 103, 103, 103, 104
When the algorithms are run, channels 0 and 3 will be sampled three times, and the final value from each will be sent to the Channel Input Buffer. This provides extra settling time while channels 1, 2, and 4 are measured in a single sample period and their values also sent to the Channel Input Buffer.
Programming the VT1422A for Data Acquisition and Control 159 Chapter 4

160 Programming the VT1422A for Data Acquisition and Control Chapter 4

About This Chapter
This chapter describes the advanced capability that is possible with the VT1529B Remote Strain Conditioning Unit (RSCU). This includes being able to scan thermocouples and high-level dc voltages in addition to strain measurements. Also, the strain bridge excitation voltage can be included as part of the scan list and have the VXIplug&play driver use the updated excitation voltage for a more accurate engineering units conversion. Using the advanced features changes some of the VT1422A behavior and this chapter describes these changes.
With the VT1529B/39A, only strain measurements can be made. For other measurements, such as 1-16 V dc or thermocouple temperature measurements, other SCPs (for example, the VT1511A Direct Input SCP or the VT1509A Fixed Filter and Amplifier SCP) must be used. The disadvantage of this solution is that a direct connection must be made between the VT1422A and the sensor being measured and this can mean long lengths of expensive shielded, twisted pair cables for each sensor, when it would probably be prefered to make these measurements using the VT1529A, with its 32:1 multiplexing and single cable back to the VT1422A.
Additionally, all VT1529A strain excitation voltages are measured once, when the INITiate:IMMediate command is executed. If the excitation supply varies over time, it is typically preferred that the excitation voltage be measured periodically and the new values be used in the strain computation.
Advanced Programming with the VT1529B 161 Chapter 5

The VT1529B provides the flexibility to make all of the measurements normally needed for structural test applications without the need for other SCPs: strain, temperature and dc voltage (from string pots or dc-dc LVDT). The VT1529B also allows channels to be dedicated to the strain excitation voltage and includes these channels in the scan list so that the excitation voltage is measured during every scan. The updated reference measurements can be used in the strain engineering units conversions, yielding more accurate data.
With the VT1529B option 002 VT1586A-to-VT1529B cable, the VT1586A Rack-Mount Terminal Panel can be connected to the VT1529B yielding an accurate and dependable isothermal reference needed for thermocouples.
Finally, the VT1529B is 100% backwards compatible with the VT1529A so programs written for the VT1529A will work unchanged with the VT1529B. This chapter only describes the new capability of the VT1529B.
There are some important changes in the way the VT1422A works with the VT1529B when these new features are used. Note that these changes affect only the new features; if the new features are not used or desired, the VT1422A operates exactly as described in the previous chapters.
The first thing to know is that, as noted above, the VXIplug&play driver must be used in order to use the new features and that these features are not available with the Agilent/HP 1406A VXI Command Module. A direct VXI interface must also be used such as a VXI embedded PC, MXI-2, or the Agilent/HP E8491B interface.
All of the new functionality is implemented by the VXIplug&play driver. The on-board DSP code of the VT1422A has not been changed and this has a significant impact on the use model. In particular, on channels programmed using the new features, engineering units conversions are performed by the driver, not by the on-board DSP. This means that all FIFO and CVT data for these channels will be voltages, not engineering units.
Additionally, if algorithms have been downloaded into the VT1422A, the channel values provided to the algorithms will be voltages, not engineering units. If the algorithms require engineering units, either the engineering units conversions in the algorithm code must be performed or the algorithm must be modified to accept voltages.
162 Advanced Programming with the VT1529B Chapter 5

Because the EU conversions for temperature and strain are performed in the host computer, not by the on-board DSP, a fast computer may be needed in order to keep up with multiple VT1529B’s scanning at full speed. These conversions use the full strain and ITS-90 thermocouple conversion equations, which offers more accuracy than the on-board DSP approximations, but at the cost of being slower to compute. A PC with a Pentium® III 800 MHz processor or faster is recommended.
Because the VXIplug&play driver does the engineering units conversion for all channels programmed with the new commands, the driver needs to understand the order of data in the FIFO, matching the FIFO data with the appropriate channel’s EU. This means that the driver must be made aware of any extra data written to the FIFO by any algorithms that has been downloaded. All writefifo() calls need to be counted in an algorithm and this count should be provided to the driver so that proper synchronization between the FIFO data and the scan list is maintained. This count is the third parameter to the hpe1422_readFifoPost_Q() driver call.
New SCPI Commands
In the VXIplug&play driver, there are some new calls. There are also new SCPI commands that support the new functionality of the VT1529B. Some of these commands are completely new while other commands are similar to the existing SCPI commands except that they have the :POST keyword and/or an extra parameter added to them. The new SCPI commands are used with the “pass-through” functions in the VXIplug&play driver. For complete information on the new SCPI commands, see the Command Reference Section (Chapter 7).
Advanced Programming with the VT1529B 163 Chapter 5

For example, the existing SCPI commands to measure thermocouples with a VT1508A SCP and the VT1422A are:
SENS:REF THER,5000,(@108) Sense the reference temperature on channel 108 using a 5k thermistor SENS:FUNC:TEMP TC,J,(@109:111) Indicates channels 109 through 111 are type J thermocouples SENS:REF:CHAN (@108),(@109:111) Specifies channel 108 as the isothermal reference for channels 109 through 111 ROUT:SEQ:DEF (@108:111) Sets scan list to include the reference and the thermocouples INIT Start scan
To measure thermocouples using the VT1529B and VT1586A using the new commands:
SENS:REF:POST THER,5000,(@10000),(@10001) Specifies that the reference thermistor voltage is on channel 10001 and its excitation voltage is on channel 10000 SENS:FUNC:TEMP:POST TC,J,(@10003:10005) Indicates channels 10003 through 10005 are type J thermocouples SENS:REF:CHAN:POST (@10001),(@10003:10005) Specifies channel 10001 as the
isothermal reference thermistor for channels 10003 through 10005 ROUT:SEQ:DEF (@10003:10005,10001,10000) Sets scan list to include the thermocouples, the reference thermistor and excitation voltage INIT Start scan
Similarly, the VXIplug&play call to read the FIFO data changes from:
hpe1422_readFifo_Q(vi, 1000) Read 1000 readings
hpe1422_readFifoPost_Q(vi, 2, 0, 65024, f64_array) Read 2 scans of data, post-convert to EU, no extra data in FIFO from algorithms
With the VT1529A, the excitation voltages are measured once prior to the start of scanning (INITiate:IMMediate command). The measured value is then sent to the DSP for use in the on-the-fly EU conversions. Therefore, for long tests, for the best possible accuracy, the excitation supply must be both long-term and short-term stable.
With the VT1529B, the excitation voltage can be measured during each scan and the VXIplug&play driver can use updated measurements for the conversions. This provides better accuracy and uses a less expensive excitation supply.
164 Advanced Programming with the VT1529B Chapter 5
to

To take advantage of the on-the-fly excitation measurement feature means that at least one channel of each VT1529B will need to dedicated to the excitation voltage measurement. Any of the 32 channels can be used for this purpose. If the application requires more frequent measurements than once per scan, multiple channels can be dedicated and a separate excitation measurement channel for each strain measurement channel can even be used. The excitation measurement channel must be specified for each strain measurement channel using SENS:FUNC:STR:<bridge_type>:POST.
For the dedicated excitation measurement channel, simply leave the RJ-45 ports for the channel unconnected. (Putting a short between the strain gage Sense + and Sense - inputs, however, may be desired. See “Settling Time Considerations” on page 178 for a discussion of why this may be desired.) This works because there is an internal 10 kΩ resistor between the Bridge Excitation input on the front of the VT1529B and the Excitation Sense + and - inputs for each channel in the 8-channel bank that each Bridge Excitation input provides power to. Thus, making an excitation voltage measurement on an unconnected channel input will measure the voltage supplied to the Bridge Excitation input.
The steps for making strain measurements with the new VT1529B functionality may already be familiar. The unstrained voltage and gage factor for the strain channels need to be provided. The excitation channel for each of the strain channels must also specified as well as the channels to be scanned. One difference is that the excitation channel(s) must be included in the scan list. Figure 5-1 shows the sequence of VXIplug&play driver calls to configure and scan strain channels using the new functionality.
Sequence
Advanced Programming with the VT1529B 165 Chapter 5

hpe1422_cmdInt32_Q(vi, "*CAL?", &result); hpe1422_cmdInt32_Q(vi, "CAL:REM? (@ )", &result); <ch_list>
hpe1422_cmd(vi, "SENS:FUNC:STR::POST
To convert readings to Engineering Units of strain
<range> <exc_ch> <ch_list>,(@ ),(@ )");
Also sets bridge config switches and turns on excitation V
Set Input Filter on VT1529B hpe1422_cmd(vi, "INPut:FILTer:FREQuency "); <freq>
hpe1422_cmd(vi, "INPut:FILTer:STATe "); <state>
Send gage factors to channel EU routines
hpe1422_cmd(vi, "SENSe:STRain:GFACtor ,(@ )"); <factor> <ch_list>
Measure unstrained bridge output
hpe1422_cmd(vi, "MEASure:VOLTage:UNSTrained? (@ )"); <ch_list>
voltages and send to EU routines
hpe1422_cmd(vi, "ROUTe:SEQuence:DEFine (@ , )"); <ch_list> <exc_ch>
Set up the analog input Scan List
Must include excitation voltage channel.
Set up Trigger System to scan
hpe1422_cmd(vi, "TRIG:SOURce "); <source> Similarly with TRIG:COUNt, ARM:SOURce, TRIG:TIMer
Set up Sample Timer for best channel-to-channel scan rate
hpe1422_cmd(vi, "SAMPle:TIMer 40e-6");
hpe1422_cmd(vi, "INITiate:IMMediate");
Trigger event for each pass
hpe1422_cmd(vi, "TRIG:IMM");
hpe1422_cmd(vi, "*TRG"); (if TRIG:SOUR HOLD set) EXTernal trig, TTLTRGn signal, or TRIG:TIMer
hpe1422_readFifoPost_Q(vi, , , & rdgs_array); <n_scans> <n_extra>
Figure 5-1. Sequence for VT1529B Strain Conversion
166 Advanced Programming with the VT1529B Chapter 5

Below is an example VXIplug&play command sequence. Note that this is not executable; it has been simplified for easier reading. The C++ example source file (eupost.cpp) is on the CD supplied with the instrument. View the readme.txt file provided with the VXIplug&play driver for example program file location.
/* set function to strain; note ch 10006 is excitation voltage */ errStatus = hpe1422_cmd(vi, "sens:func:str:hben:post auto,(@10006),(@10000:10005)");
/* optionally set VT1529B input filters (2, 10 or 100 Hz) */ errStatus = hpe1422_cmd(vi, "inp:filt:freq 10,(@10000:10005)"); errStatus = hpe1422_cmd(vi, "inp:filt:stat on,(@10000:10005)");
/* set gage factors for EU conversion routines */ errStatus = hpe1422_cmd(vi,"sens:str:gfac 2,(@10000:10005)");
/* measure the unstrained bridge voltage at each bridge. The values go to the channel EU conversion as well as the FIFO. */ errStatus = hpe1422_cmdInt16_Q(vi,"meas:volt:unst? (@10000:10005)",&result16);
/* set up the scan list to include the excitation and strain channels */ errStatus = hpe1422_cmd(vi,"rout:seq:def (@10000:10006)");
/* set up the trigger system to make one scan for each trigger. Note that the default is one scan per trigger and trigger source is TIMer, so we only have to INITiate the trigger system to take readings. errStatus = hpe1422_cmd(vi,"trig:coun 1"); /* *RST default */ errStatus = hpe1422_cmd(vi,"trig:sour tim"); /* *RST default */ errStatus = hpe1422_cmd(vi,"arm:sour imm"); /* *RST default */
/* set up the sample timer. This controls the channel-to-channel scan rate and can be important when channels need more that the default 40 us sample time. */ errStatus = hpe1422_cmd(vi,"samp:tim 40e-6"); /* *RST default */
/* INITiate the trigger system to execute a measurement scan */ errStatus = hpe1422_cmd(vi,"init:imm");
/* retrieve one scan’s data from the FIFO */ errStatus = hpe1422_readFifoPost_Q(vi, 1, 0, 65024, f64_array);
Advanced Programming with the VT1529B 167 Chapter 5

As stated above, to use the additional features of the VT1529B, the EU conversions are normally done in the VXIplug&play driver, not by the on-board DSP. For channels programmed using the new capability, all measurement data in the FIFO, CVT, and algorithms is voltage, not strain. For full- and half-bridge strain channels, there is an alternate method of doing the EU conversions if having the strain engineering units in the algorithms is needed while still using the most recent value of the excitation voltage for more accurate data. This method involves making strain measurements using the DSP while also scanning the excitation voltage. Because the full- and half-bridge strain conversions are linear with respect to the excitation voltage, an algorithm can be created that uses the ratio of the initial and current excitation voltages to correct the DSP-computed value to get a more accurate value.
Here are the steps to use this method:
MEAS:VOLT:EXC? (@10000:10002) Measure excitation on strain channels - the FIFO data needs to read and saved for later MEAS:VOLT:UNST? (@10000:10002) Measure unstrained voltages SENS:STR:GFAC 2.2,(@10000:10002) Specify gage factor SENS:FUNC:STR:FBEN (@10000:10002) Setup for full-bridge strain on channels (DSP will do EU)
ROUT:DEF (@(0(10000:10002),3(10006) Disable sending of uncorrected strain data to FIFO and CVT; enable sending to both for excitation data
Alternatively, simply omit the channels for the uncorrected values from the scan list – the VT1422A driver will automatically add them to the scan list because they appear in the algorithm and won’t send them to the FIFO or CVT.
168 Advanced Programming with the VT1529B Chapter 5

DIAG:CUST:MXB 1.0/5.60,0.0,(@10006) Create custom linear EU to compute ratio of current excitation voltage to initial value SENS:FUNC:CUST:HVOL (@10006) Enables custom EU on excitation channel
{ float ratio; float chan0, chan1, chan2;
/* get the ratio of new to initial excitation voltages */ ratio = I10006;
/* read and correct channel data */ chan0 = I10000 * ratio; chan1 = I10001 * ratio; chan2 = I10002 * ratio;
/* write corrected values to FIFO and the normal position in CVT for this channel */ writeboth(chan0, 10); writeboth(chan1, 11); writeboth(chan2, 12); writeboth(chan3, 13); } /* end of code segment */
Advanced Programming with the VT1529B 169 Chapter 5

The VT1529B adds the capability to measure E, J, and T type thermocouples in addition to strain (other thermocouple types are not supported with the new functionality). Either the VT1586A Rack-Mount Terminal Panel or a user provided isothermal panel can be used. For this discussion, assume that the VT1586A and the VT1529B option 002 VT1586A-to-VT1529B cable are being used.
To use the VT1586A with the VT1529B, the VT1529B option 002 VT1586A-to-VT1529B cable should be used. This cable provides connections for up to sixteen channels of temperature measurements (therefore, two cables are required for the 32 channels on a VT1586A).
VT1529B
On one end of the cable, there is a SCSI connector that plugs into one of the two SCSI jacks on the back of the VT1586A. On the other end, there are sixteen RJ-45 jacks that plug into the front of VT1529B. The RJ-45 jacks are numbered to make the interconnection easy. Figure 5-2 and Figure 5-3 show how to make the connections.
170 Advanced Programming with the VT1529B Chapter 5


Figure 5-2. Connecting the VT1586A to the VT1529B (front view)

Figure 5-3. Connecting the VT1586A to the VT1529B (rear view)
Advanced Programming with the VT1529B 171 Chapter 5

The field wiring for the VT1586A, when used with the VT1529B, is different from the wiring of the VT1586A when used stand-alone. In particular, with the VT1529B option 002 VT1529B-to-VT1586A cable, the G (Guard) terminals of the VT1586A are redefined to be the excitation source and excitation sense terminals for the reference thermistor(s). Figure 5-4 shows the VT1586A front panel connections. Note that the Sense + and - terminals for the channels are the same using the VT1586A.

Figure 5-4. VT1586A Terminal Panel Connections
When using the VT1586A with the VT1529B to measure temperature, instead of using a current source to excite the isothermal reference thermistor, use a voltage source and a resistor divider network. The excitation voltage supply that the VT1529B is connected to is routed through the VT1529A-to-VT1586A cable and is made available on the four Excitation + and - terminals on the VT1586A for use with the divider. The recommended thermistor divider circuit is shown in Figure 5-5 and the recommended field wiring for the divider in shown in Figure 5-6. Note that the excitation voltage is not being connected to a measurement channel. Instead, the same dedicated excitation measurement channel on the VT1529B can be used that was use for strain.
172 Advanced Programming with the VT1529B Chapter 5

Suggested Wiring for Thermistor Measurement
Figure 5-5. Recommended Reference Thermistor Divider Circuit
Ch19 Sense + Ch16 Sense -
Sense + Ch24 Sense -
Thermistor Center Sense +
Thermistor Center Sense -
Thermistor Right Sense +
Thermistor Right Sense -
Ch18 Ex.Sense +
Ch18 Ex.Sense -
Ch26 Ex.Sense +
Ch26 Ex.Sense -
Ch20 Ex.Sense +
Ch20 Ex.Sense -
Ch22 Ex.Sense +
Ch22 Ex.Sense -
Ch28 Ex.Sense +
Ch28 Ex.Sense -
Ch30 Ex.Sense +
Ch30 Ex.Sense -
Figure 5-6. Recommended Reference Thermistor Field Wiring
Notes The 200 kΩ resistors in the recommended divider circuit were chosen so that the VSENSE output voltage from the 5 kΩ reference thermistor will be less than 0.5 V over the temperatures above -15 °C with an excitation voltage of 5 V or less. (0.5 V is the maximum input voltage that is allowed between the Sense + and - terminals of the VT1529B.) The thermistor compensation routines in the VXIplug&play driver assume that the sum of the two resistors is exactly 400 kΩ. The SENS:REF:THERM:RES:POST command can be used to specify the actual total resistance value in the divider circuit.
If the combination of excitation voltage and isothermal temperature range produces divider output voltages greater than 0.5 V, change the resistor values shown to keep the output voltage below 0.5 V. Also, use the SENS:REF:THERM:RES:POST command to specify the sum of the resistor values so that the compensation routines will work correctly.
Advanced Programming with the VT1529B 173 Chapter 5

The steps for measuring temperature with the VT1529B and VT1586A should, again, be familiar. If a controlled temperature isothermal block is used, the command sequence is identical, except for the :POST keyword being added to some commands. Otherwise, the isothermal block temperature needs to measured, the major difference being that it is necessary to measure the excitation voltage, thermistor output voltage, and thermocouple voltage instead of just the thermistor and thermocouple voltage. This is because the VT1529B with VT1586A excites the thermistor with the excitation supply voltage that is provided instead of a calibrated current.
Sequence
The thermistor measurement channel must be associated with its excitation voltage measurement channel as well as associating each thermocouple to the thermistor. The excitation voltage and thermistor measurement channels must be part of the scan list. Figure 5-7 shows the sequence of VXIplug&play driver calls to configure and scan thermocouple channels using the new functionality.
hpe1422_cmdInt32_Q(vi, "*CAL?", &result); hpe1422_cmdInt32_Q(vi, "CAL:REM? (@ )", &result); <ch_list>
Set Input Filter on VT1529B hpe1422_cmd(vi, "INPut:FILTer:FREQuency "); <freq>
hpe1422_cmd(vi, "INPut:FILTer:STATe "); <state>
hpe1422_cmd(vi, "SENS:REF:POST THER,5000,(@ ),(@ )"); <exc_ch> <thr_ch>
Set up thermistor measurement
To convert readings to Engineering Units of temperature hpe1422_cmd(vi, "SENS:FUNC:TEMP:POST TC, ,(@ )"); <tc_type> <ch_list>
Associate TC channels to hpe1422_cmd(vi, "SENS:REF:CHAN:POST (@ ),(@ )"); <thr_ch> <ch_list> thermistor
hpe1422_cmd(vi, "ROUTe:SEQuence:DEFine (@ , ), <ch_list> <thr_ch>
Set up the analog input Scan List
Must include thermistor and excitation voltage channels.
Set up Trigger System to scan
hpe1422_cmd(vi, "TRIG:SOURce "); <source> Similarly with TRIG:COUNt, ARM:SOURce, TRIG:TIMer
Set up Sample Timer for best channel-to-channel scan rate
hpe1422_cmd(vi, "SAMPle:TIMer 40e-6");
hpe1422_cmd(vi, "INITiate:IMMediate");
hpe1422_cmd(vi, "TRIG:IMM");
Trigger event for each pass
hpe1422_cmd(vi, "*TRG"); (if TRIG:SOUR HOLD set) EXTernal trig, TTLTRGn signal, or TRIG:TIMer
hpe1422_readFifoPost_Q(vi, &rdgs_array); <n_scans> <n_extra> <size>
Figure 5-7. Sequence for VT1529B Temperature Conversion
174 Advanced Programming with the VT1529B Chapter 5

Below is an example VXIplug&play command sequence. Note that this is not executable; it has been simplified for easier reading. The C++ example source file (tcpost.cpp) is on the CD supplied with the instrument. View the readme.txt file provided with the VXIplug&play driver for example program file location.
Sequence
/* set up reference thermistor measurement note that ch 10006 is excitation voltage, 10007 is thermistor voltage */ errStatus = hpe1422_cmd(vi, "sens:ref:post ther,5000,(@10006),(@10007)");
/* set function to temperature on channels 10000-10005 */ errStatus = hpe1422_cmd(vi, "sens:func:temp:post TC,J,(@10000:10005)");
/* associate TC channels with reference thermistor channel */ errStatus = hpe1422_cmd(vi, "sens:ref:chan:post (@10007),(@10000:10005)");
/* optionally set VT1529B input filters (2, 10 or 100 Hz) */ errStatus = hpe1422_cmd(vi, "inp:filt:freq 10,(@10000:10005)"); errStatus = hpe1422_cmd(vi, "inp:filt:stat on,(@10000:10005)");
/* set up the scan list to include the TC, thermistor and excitation channels */ errStatus = hpe1422_cmd(vi,"rout:seq:def (@10000:10007)");
/* set up the trigger system to make one scan for each trigger. Note that the default is one scan per trigger and trigger source is TIMer, so we only have to INITiate the trigger system to take readings. errStatus = hpe1422_cmd(vi,"trig:coun 1"); /* *RST default */ errStatus = hpe1422_cmd(vi,"trig:sour tim"); /* *RST default */ errStatus = hpe1422_cmd(vi,"arm:sour imm"); /* *RST default */
/* set up the sample timer. This controls the channel-to-channel scan rate and can be important when channels need more than the default 40 us sample time. */ errStatus = hpe1422_cmd(vi,"samp:tim 40e-6"); /* *RST default */
/* INITiate the trigger system to execute a measurement scan */ errStatus = hpe1422_cmd(vi,"init:imm");
/* retrieve one scan’s data from the FIFO */ errStatus = hpe1422_readFifoPost_Q(vi, 1, 0, 65024, f64_array);
With the VT1529B, low- or high-level dc voltage measurements can also be made for sensors such as LVDT and string pots. While the VT1422A does not provide built-in engineering units conversions for these sensor types, custom EU conversions can be provided by the user.
Advanced Programming with the VT1529B 175 Chapter 5

There are separate input pins on the RJ-45 connector for the high-level and low-level DCV signals. See Figure 5-8 for the connector pin-out.
Pinout for Upper Connector Row
6 5 4 2 1 3 8 7
Low-Level DCV Sense -
Low-Level DCV Sense Low-Level DCV Sense
3 2 1 4 5 6 7 8
Pinout for Lower Connector Row
Figure 5-8. Pin-out for DCV Measurements
Low-Level Inputs The low-level input pins are limited to signals less than ±0.5 V dc. These inputs can be balanced with respect to chassis ground or can be single-ended. There are three optional low-pass filters that can be used on the low-level inputs, with cut-off frequencies of 2, 10, and 100 Hz. These filters are selected by the INPut:FILTer[:LPASS]:FREQuency command. After the filter, the low-level inputs go through an amplifier to give higher noise immunity before being sent to the VT1422A. When the VT1422A measures the amplified low-level signal, it internally compensates for the amplification so that the value sent to algorithms, the CVT and the FIFO is the actual voltage at the low-level input pins.
High-Level Inputs The high-level input pins can accept signals up to 10 V dc. These inputs should be balanced with respect to chassis. An unbalanced signal will not settle quickly if a long cable is placed between the VT1422A and the VT1529A/B, which can cause measurement errors both on the unbalanced input as well as on the next few channels in the scan list.
There is no filtering or amplification in the high-level input path.
176 Advanced Programming with the VT1529B Chapter 5

Note The high-level inputs actually use the same excitation voltage measurement path that is used for strain measurements. This means that there is an internal 10 kΩ resistor from each terminal to a common point for each 8-channel block as shown in Figure 5-9. During excitation voltage measurement of any channel in any bank on a VT1529B, the switches shown in the Figure 5-9 are closed on all banks, connecting the Bridge Excitation inputs on the front panel to the input resistors, which will cause a small current to be sourced to the other channel inputs. During other measurements, the switches are opened and the resistors become a connection between all bank + inputs and all - inputs. This connection can affect the input signal levels unless the inputs are driven from a low impedance source.
10k
Ch. 0 Ch. 7
10k
Figure 5-9. High-Level Input Circuit
For the low-level inputs, the input filter needs to be set up and the channels for voltage measurements need to be linked. The VXIplug&play driver calls for this are:
Sequence
hpe1422_cmd(vi, "INP:FILT:FREQ 10"); Set up 10 Hz input filter hpe1422_cmd(vi, "INP:FILT:STAT ON"); Enable filter hpe1422_cmd(vi, "SENS:FUNC:VOLT AUTO,(@10000:10005)"); Measure DCV on low-level inputs on channels 10000-10005
For the high-level inputs, simply link the channels for voltage measurements. Use the “SENS:FUNC:HVOL” command:
hpe1422_cmd(vi, "SENS:FUNC:HVOL AUTO,(@10008:10015)"); Measure DCV on high-level inputs on channels 10008-10015
Advanced Programming with the VT1529B 177 Chapter 5

Below is an example VXIplug&play command sequence. Note that this is not executable; it has been simplified for easier reading. The C++ example source file (dcv.cpp) is on the CD supplied with the instrument. View the readme.txt file provided with the VXIplug&play driver for example program file location.
/* This shows measuring low-level inputs on channels 10000-10005 */ /* and high-level inputs on channels 10008-10015 */
/* optionally set VT1529B input filters (2, 10 or 100 Hz) */ errStatus = hpe1422_cmd(vi, "inp:filt:freq 10,(@10000:10005)"); errStatus = hpe1422_cmd(vi, "inp:filt:stat on,(@10000:10005)");
/* set up channels 10000-10005 for DCV, low level inputs */ errStatus = hpe1422_cmd(vi, "sens:func:volt auto,(@10000:10005)");
/* set up channels 10008-10015 for DCV, high level inputs */ errStatus = hpe1422_cmd(vi, "sens:func:hvol auto,(@10008:10015)");
/* set up the scan list to include the DCV channels */ errStatus = hpe1422_cmd(vi,"rout:seq:def (@10000:10005,10008:10015)");
/* set up the trigger system to make one scan for each trigger. Note that the default is one scan per trigger and trigger source is TIMer, so we only have to INITiate the trigger system to take readings. errStatus = hpe1422_cmd(vi,"trig:coun 1"); /* *RST default */ errStatus = hpe1422_cmd(vi,"trig:sour tim"); /* *RST default */ errStatus = hpe1422_cmd(vi,"arm:sour imm"); /* *RST default */
/* set up the sample timer. This controls the channel-to-channel scan rate and can be important when channels need more than the default 40 us sample time. */ errStatus = hpe1422_cmd(vi,"samp:tim 40e-6"); /* *RST default */
/* INITiate the trigger system to execute a measurement scan */ errStatus = hpe1422_cmd(vi,"init:imm");
/* retrieve one scan’s data from the FIFO */ /* Note: if you’re not doing any measurements that require post-processed EU conversions, you can use hpe1422_readFifo_Q instead */ errStatus = hpe1422_readFifoPost_Q(vi, 1, 0, 65024, f64_array);
Channel settling interactions are present in every scanning system. A significant engineering effort has been applied to minimize these interactions, however, if the correct situation is present, errors caused by settling can be detected. This section presents a brief tutorial on settling errors and explains how to control the source of these errors.
Settling errors occur when the voltage value of one channel seems to leak into successive channels being scanned. This can be called switching crosstalk. Traditional crosstalk occurs when one input signal interferes with another input and is related to the frequency of the interfering signal. However, switching crosstalk is not related to the signal frequency, but rather is a function of the following factors which can be controlled:
178 Advanced Programming with the VT1529B Chapter 5

Some of the mechanisms by which previous channels interfere are micro- thermals in semiconductors, dielectric absorption in materials and simple capacitance. The cumulative effects of all of the mechanisms from previous channels result in errors on the current channel. A simple model of the error is not possible. It should also be noted that not all of the effects have the same polarity or time constant.
The following section describes several things that can be done to keep switching crosstalk to a minimum.
inputs: strain gages, thermocouples, etc. -- Channels with large voltages (greater than 0.1 V) on the low-level
dc voltages. Short the low-level inputs on these channels to chassis ground. • If the scan list on a VT1529A/B does not include an excitation voltage channel, the order should be as follows: -- Channels with large voltages (greater than 0.1 V) on the low-level
inputs: reference thermistor voltages. -- Channels with small voltages (µV or mV level) on the low-level
inputs: strain gages, thermocouples, etc.
If an unconnected channel is included in a scan list, short the inputs to chassis ground. An unconnected input will drift to the full-scale input and can cause switching crosstalk errors. Also, shorting the low-level inputs of channels used for high-level measurements to chassis ground is recommended – the VT1529A/B always switches both the high-level and low-level inputs and then selects between the two inputs. Shorting the low-level inputs on these channels will prevent drifting of the amplifier for the low-level inputs during high-level measurements.
2. Minimize the time the system remains on a large signal (> 0.1 V) on the low-level inputs. Leaving a channel on a large voltage will “soak” the system, but quickly scanning through a high voltage will cause minimal error. The longer the system soaks, the longer it takes to discharge. For example, at the fastest scanning speed of the VT1529A/B (40 µs if only one channel in the middle of a scan is 80% full scale (0.4 V)), then the effect on the following channel at near 0 V is an offset of about 2.4 µV. But, if many channels are scanned at 0.4 V followed by a channel near 0 V, then the effect is about 4 µV. The key point to remember is to avoid soaking the system unnecessarily.
Advanced Programming with the VT1529B 179 Chapter 5

When a VT1529A/B scans through a list of channels, it stays on the last channel in the scan list for that VT1529A/B until the unit is scanned again. To minimize the “soaking” effect, have a low voltage or a short on the low-level inputs on this last channel.
3. Reduce “switching crosstalk” by increasing time between channels. Increasing the time between channel measurements will give the VT1529A/B more time to settle. In the worst case, when all but one channel soaks the system with 80% of full-scale input voltage (0.4 V) and the system remains on this soaking voltage between scans, the VT1529A/B can settle to within about 4 µV in 40 µs. Note that this is within the offset spec of 2 µV within 100 µs. For best accuracy, scan at the slowest rate that is acceptable for that particular application.
The graph below shows the worst-case scenario for the VT1529A/B. As stated earlier, if only one channel is 80% of full scale, the switching crosstalk is barely measurable. Most system configurations do not approach the worst-case scenario.
Typical offset error due to "soak" voltage
-0.5 -0.4 -0.3 -0.2 -0.1 0 0.1 0.2 0.3 0.4 0.5
40usec 100usec 200usec 500usec
Sustained "soak" voltage on low-voltage inputs
180 Advanced Programming with the VT1529B Chapter 5
Offset error (µV)


The VT1422A'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 measurement and 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'. An algorithm cannot call another user-written function subprogram.
It is important to note that while the VT1422A's Algorithm Language has a limited set of intrinsic arithmetic operators, it also provides the capability to call special user defined functions "f(x)." Appendix F page 487 shows how to convert user defined functions into piece-wise linear interpolated tables which can be downloaded into the VT1422A. The VT1422A can extract function values from these tables in approximately 18 µs regardless of the function's original complexity. This method provides faster algorithm execution by moving the complex math operations off-board.
This section assumes that the user already programs in some language. If the experience is in the 'C' programming language, this chapter is probably all that will be needed to create an algorithm. If unfamiliar with the 'C' programming language, studying the "Program Structure and Syntax" section before beginning to write algorithms is recommended.
This section will present a quick look at the Algorithm Language. The complete language reference is provided later in this chapter.
182 Creating and Running Algorithms Chapter 6

Arithmetic Operators: add +, subtract -, multiply *, divide / Note: See “Calling User Defined Functions” on page 193.
Comparison Functions: less than <, less than or equal <=, greater than >, greater than or equal >=, equal to ==, not equal to !=
Boolean Functions: and && or ||, not !
Variables: scalars of type static float and single dimensioned arrays of type static float limited to 1024 elements.
Constants: 32-bit decimal integer; Dddd... where D and d are decimal digits but D is not zero. No decimal point or exponent specified. 32-bit octal integer; 0oo... where 0 is a leading zero and o is an octal digit. No decimal point or exponent specified. 32-bit hexadecimal integer; 0Xhhh... or 0xhhh... where h is a hex digit. 32-bit floating point; ddd., ddd.ddd, ddde±dd, dddE±dd, ddd.dddedd or ddd.dddEdd where d is a decimal digit.
Intrinsic Functions: Return minimum; min(<expr1>,<expr2>) Return maximum; max(<expr1>,<expr2>) User defined function; <user_name>(<expr>) Write value to CVT element; writecvt(<expr>,<expr>) Write value to FIFO buffer; writefifo(<expr>) Write value to both CVT and FIFO; writeboth(<expr>,<expr>)
Here are examples of some Algorithm Language elements assembled to show them used in context. Later sections will explain any unfamiliar elements seen here:
Example 1; /*** get input from channel 8, calculate output, check limits, output to ch 16 & 17 ***/ static float output_max = .020; /* 20 mA max output */ static float output_min = .004; /* 4 mA min output */ static float input_val, output_val; /* intermediate I/O vars */ static float remote_input_val; /* I/O var for remote channel*/
input_ val = I108; /* get value from input buffer channel 8*/ remote_input_ val = I14001; /* get value from input buffer channel 4001*/ output_val = 12.5 * input_val; /* calculate desired output */ if ( output_val > output_max ) /* check output greater than limit */ output_val = output_max; /* if so, output max limit */ else if( output_val < output_min) /* check output less than limit */ output_val = output_min; /* if so, output min limit */ O116 = output_val / 2; /* split output_val between two SCP */ O117 = output_val / 2; /* channels to get up to 20 mA max */ writecvt(remote_input_val,501); /* remote chan val to CVT element 501 */
Creating and Running Algorithms 183 Chapter 6

Example 2; /*** same function as example 1 above but shows a different approach ***/ static float max_output = .020; /* 20 mA max output */ static float min_output = .004; /* 4 mA min output */
/* following lines input, limit output between min and max_output and outputs. */ /* output is split to two current output channels wired in parallel to provide 20 mA */ /* write cvt is just to show access to remote channel O116 = max( min_output, min( max_output, (12.5 * I108) / 2 ) ); O117 = max( min_output, min( max_output, (12.5 * I108) / 2 ) ); writecvt(I14001,501);
This section describes the execution environment that the VT1422A provides for algorithms. Here, the relationship of algorithms to the main() function that calls it is described.
The Main Function All 'C' language programs consist of one or more functions. A 'C' program must have a function called main(). In the VT1422A, the main() function is usually generated automatically by the driver when the INIT command is executed. The main() function executes each time the module is triggered and controls execution of algorithm functions. See Figure 6-1 for a partial listing of main().
When the module is INITiated, a set of control variables and a function calling sequence are created for all algorithms defined. The value of variable "State_n" is set with the ALGorithm:STATe command and determines whether an algorithm will be called. The value of "Ratio_n" is set with the ALGorithm:SCAN:RATio command and determines how often an algorithm will be called (relative to trigger events).
Since the function-calling interface to an algorithms is fixed in the main() function, the "header" of an algorithm function is also pre-defined. This means that, unlike standard 'C' language programming, an algorithm program (a function) need not (must not) include the function declaration header, opening brace "{" and closing brace "}". Only the "body" of the function is supplied; the VT1422A's driver supplies the rest.
Think of the program space in the VT1422A in the form of a source file with any global variables first, then the main() function followed by as many algorithms as defined. Of course, what is really contained in the VT1422A's algorithm memory are executable codes that have been translated from the downloaded source code. While not an exact representation of an algorithm execution environment, Figure 6-1 shows the relationship between a normal 'C' program and two VT1422A algorithms.
184 Creating and Running Algorithms Chapter 6

/* GLOBALS you define with ALG:DEF GLOBALS... go here */
/* global variable First_loop equals 1 until all algorithms called */ static float First_loop; /* global value set to 1 at each INIT */ /**************************** function main() ****************************/ /*The VT1422A driver creates main() at INIT time. This example shows a main created after 2 algorithms have been defined. */ main() {
Begin main() function (built by VT1422A's driver)
/********* declaration of variables local to main() ********/ static float State_1, Ratio_1, Count_1; /* created if alg1 defined */ static float State_2, Ratio_2, Count_2; /* created if alg2 defined */
/********* this section created if ALG1 is defined ********/ Count_1 = Count_1 - 1; /* Count_1 used for ALG:SCAN:RATIO */ if (Count_1
Count_1 = Ratio_1; /* Count_1 = ALG:SCAN:RATIO setting */ if (State_1) alg1(); /* if ALG:STATE ALG1,ON, call alg1 */ }
/********* this section created if ALG2 is defined ********/ Count_2 = Count_2 - 1; /* Count_2 used for ALG:SCAN:RATIO */ if (Count_2
Count_2 = Ratio_2; /* Count_2 = ALG:SCAN:RATIO setting */ if (State_2) alg2(); /* if ALG:STATE ALG2,ON, call alg2 */ } First_loop = 0; /* reset First_loop after last alg has been called */ } /* ************************ end function main() *************************/
Begin algorithm "shells" (built by VT1422A's driver)
ALG1() /* this function shell created by ALG:DEF 'ALG1' */ { const int ALG_NUM = 1; /* created by driver to ID this algorithm */
/********* Your algorithm code goes here **********/ }
Your algorithms go here
ALG2() /* this function shell created by ALG:DEF 'ALG2' */ { const int ALG_NUM = 2; /* created by driver to ID this algorithm */
/********* Your algorithm code goes here **********/ }
Figure 6-1. Source Listing of Function main( )
This section describes how algorithms access hardware and software resources provided by the VT1422A. The resources are listed below:
Creating and Running Algorithms 185 Chapter 6

In the Algorithm Language, channels are referenced as pre-defined variable identifiers. Because input channels could be from Remote Signal Conditioning Units (RSCUs), there are two forms of input channel syntax. The general on-board input channel identifier syntax is "I1cc" where cc is a channel number from 00 (channel 0) through 63 (channel 63). The Remote input channel syntax is "I1ccrr" where cc is the SCP channel number (one of 00, 01, 08, 09, 16, 17, 24, 25, 32, 33, 40, 41, 48, 49, 56, or 57) and rr is the channel (0 through 31) on the RSCU see the heading "Remote Channels" on page 231 for more information.
For output channels, the syntax is "O1cc," where cc is a channel number from 00 (channel 0) through 63 (channel 63). Like all VT1422A variables, channel identifier variables always contain 32-bit floating point values even when the channel is part of a digital I/O SCP. If the digital I/O SCP has 8-bit channels (like the VT1533A), the channel's identifiers (O1cc and I1cc) can take on the values 0 through 255. To access individual bit values, ".Bn" may be appended to the normal channel syntax; where n is the bit number (0 through 7). If the Digital I/O SCP has single-bit channels (like the VT1534A), its channel identifiers can only take on the values 0 and 1. Examples:
O100 = 1; assign value to output chan 0 on VT1534A. Inp_val = I108; from 8-bit channel on VT1533A Inp_val will be 0 to 255. np_val will be 0 to 255. Bit_4 = I109.B4; assign VT1533A chan 9 bit 4 to variable Bit_4
Output channels can appear on either or both sides of an assignment operator. They can appear anywhere other variables can appear. Examples:
O100 = 12.5; send value to output channel buffer element 0 O108.B4 = ! O108.B4; complement value found in output channel buffer element 8, bit 4 each time algorithm is executed. writecvt(O116,350); send value of output channel 16 to CVT element 350
186 Creating and Running Algorithms Chapter 6

Input channel identifiers can only appear on the right side of assignment operators. It doesn't make sense to output values to an input channel. Other than that, they can appear anywhere other variables can appear. Examples:
dig_bit_value = I108.B0; retrieve value from Input Channel Buffer element 8, bit 0 inp_value = I124;
retrieve value from Input Channel Buffer element 24 rscu_value = I12422;
retrieve value from RSCU Channel Buffer element 2422 O156 = 4 * I124;
retrieve value from Input Channel Buffer element 24, multiply by 4 and send result to Output Channel Buffer element 56 writefifo(I124);
send value of input channel 24 to FIFO buffer
Algorithms "reference" channels. They can reference input or output channels. But, in order for these channels to be available to an algorithm, they must be "defined." What this means is that an SCP or RSCU must be installed and an appropriate SOURce or SENSe:FUNCtion must explicitly (or implicitly, in the case of VT1531A and VT1532A SCPs) be tied to the channels. If an algorithm references an input channel identifier that is not configured as an input channel or an output channel identifier that is not configured as an output channel, the driver will generate an error when the algorithm is defined with ALG:DEF.
Accessing Remote
Two remote scan status variables exist for each VT1539A SCP. The variable syntax is "S1<xx>" where <xx> can be one of 00, 01, 08, 09, 16, 17, 24, 25, 32, 33, 40, 41, 48, 49, 56, and 57. These values are sixteen possible on-board channels for VT1539A SCPs. These variables are treated as input channels and can only be read from, not written to. The returned value represents the operational status of the RSCU connected to the SCP channel.
Variables
The possible values are: 0 = normal operation, 1 = RSCU cable disconnected after INIT and 2 = RSCU scan list is out of synchronization (scan trigger problem during RSCU’s scan).
For most data acquisition and control applications, it is necessary to know that the data acquired via an RSCU is not corrupted at runtime. Though the VT1422A/RSCU system is designed to be very robust and will normally acquire reliable data, there is a possibility that remote data can be corrupted in the following ways:
For all of the above conditions, the VT1422A/RSCU system should report the existence of corrupted data immediately to the host system.
Creating and Running Algorithms 187 Chapter 6

Runtime Scan States The Remote Signal Conditioning Units (RSCU) runtime scan can be described as being in one of the following three states: normal, disconnected and out of synch. In the disconnected state, the VT1422A fails to communicate with an RSCU for various reasons (power down, no connection, a malfunction in the cable, etc.). In the out of synch state, the RSCU channel switching multiplexer could be out of synch with the VT1422A due to an extra or missing trigger.
Since each RSCU is connected to one of the main channels in the host VT1422A, the operating status of each RSCU during the scanning can be represented by the status of the corresponding main channel. A block of memory has been reserved to hold the status for each main channel that is connected to an RSCU. Referencing the Scan Status variable in an algorithm will return the operating status of the specified RSCU.
The language support for status reporting is designed as follows.
Scan status variables have the syntax S1xx. S stands for Status. 1xx is the corresponding main channel that is connected to an RSCU. Though the possible range for main channels on a VT1422A is 00 to 63, not all of the main channels are valid for an RSCU connection. Therefore, the current valid range for xx is the set of discrete numbers (00, 01, 08, 09, 16, 17, 24, 25, 32, 33, 40, 41, 48, 49, 56, 57). For example, in order to read the operating status of an RSCU connected to channel 24 of a VT1422A, S124 would be referenced in the algorithm. S1xx is treated as an input channel and can only be read from, not written to.
Currently, S1xx can be in one of the three states which are represented by 0, 1, and 2.
Operating Model Scan Status Variables are updated just after the all channels are scanned in the Input Phase (refer to “The Operating Sequence”). The value of the scan status variables is available to algorithms when they execute.
188 Creating and Running Algorithms Chapter 6

Following are some simple examples demonstrating the use of scan verification in an algorithm.
By using S1xx in an algorithm, various results for control or data acquisition applications can be achieved. Assuming that one is interested in monitoring the scan state of an RSCU at VT1422A channel 25, the following can be done:
if( S125 != 0) { /* User application specific algorithm code for shutting down critical hardware or reporting. Such as: */ O156 = 5.0 ; /* send 5.0 volts to output chan, then open relay */ writecvt(S125, cvt_loc); /* for reporting */ interrupt(); /* force a VXI bus interrupt. */ }
S1xx states can also be achieved by using various Plug&Play functions or SCPI commands, such as:
alg:scal? 'algn','S125'
Timing Impact One of the tradeoffs for runtime scan verification is an impact on the overall scan rate. The total time spent in scan verification depends on the number of unique S1xx locations that are referenced in the algorithms. The total time in scan verification can be determined by the following formula:
Total Time in scan verification:
= 0 when no S1xx locations are referenced.
= 230 μs + 40 μs*(number of unique S1xx identifiers referenced in
algorithms).
max time = 870 μs, if all sixteen S1xx locations are referenced.
Thus, the flexibility to make tradeoffs between maximum scan rate and scan status checking is achieved.
The impact of using scan verification on the overall scan rate depends on both the number of channels in the analog input scan list and the number of channels in status list. In a system which uses the maximum number of 512 analog input channels and the maximum sixteen status channels, the total timing overhead will be 870/(512*40) = 4.24%.
Also, if the status information is used to make decisions within an algorithm, additional time will also be required. The timing impact in an algorithm will depend on its complexity.
Creating and Running Algorithms 189 Chapter 6

Global variables are those declared outside of both the main() function and any algorithms (see Figure 6-1). A global variable can be read or changed by any algorithm. To declare global variables, use the command:
ALG:DEF 'GLOBALS',''
where is Algorithm Language source limited to constructs for declaring variables. It must not contain executable statements. Examples:
declare single variable without assignment ALG:DEF 'GLOBALS','static float glob_scal_var;'
declare single variable with assignment ALG:DEF 'GLOBALS','static float glob_scal_var = 22.53;'
declare one scalar variable and one array variable ALG:DEF 'GLOBALS','static float glob_scal_var, glob_array_var[12];'
Global variables are accessed within an algorithm like any other variable.
glob_scal_var = P_factor * I108
The VT1422A always declares the global variable first_loop. First_loop is set to 1 each time INIT is executed. After main() calls all enabled algorithms, it sets First_loop to 0. By testing First_loop, an algorithm can determine if it is being called for the first time since an INITiate command was received. Example:
static float scalar_var; static float array_var [ 4 ];
/* assign constants to variables on first pass only */ if ( First_loop ) {
scalar_var = 22.3; array_var[0] = 0; array_var[1] = 0; array_var[2] = 1.2; array_var[3] = 4; }
190 Creating and Running Algorithms Chapter 6

Initializing Variables Variable initialization can be performed during three distinct VT1422A operations.
static float my_variable = 22.95;/* tells translator to allocate space for this */
/* variable and initialize it to 22.95 */
my_variable = 22.95;/* reset variable to 22.95 every pass */
if( First_loop ) my_variable = 22.95 /* reset variable only when INIT starts alg */
The Current Value Table (CVT) and FIFO data buffer provide communication from an algorithm to the application program (running in the VXIbus controller). The three algorithm functions writecvt(), writefifo(), and writeboth() provide the means to place data into the FIFO or CVT. These special functions may be called up to 512 times.
The CVT provides 502 addressable elements where algorithm values can be stored (see Figure 7-4 on page 324). To send a value to a CVT element, execute the intrinsic Algorithm Language statement writecvt(<expression>,<cvt_element>), where can take the value 10 through 511. The following is an example algorithm statement:
writecvt(O124, 330); /* send output channel 24's value to CVT element 330 */
Each time an algorithm writes a value to a CVT element, the previous value in that element is overwritten.
Creating and Running Algorithms 191 Chapter 6

An application program reads one or more CVT elements by executing the SCPI command [SENSe:]DATA:CVT? (@<element_list>), where specifies one or more individual elements and/or a range of contiguous elements. The following example command will help to explain the syntax.
DATA:CVT? (@10,20,30:33,40:43,330) Return elements 10, 20, 30-33, 40-43, and element 330.
Individual element numbers are isolated by commas. A contiguous range of elements is specified by: colon.
The FIFO, as the name implies, is a First-In-First-Out buffer. It can buffer up to 65,024 values. This capability allows an algorithm to send a continuous stream of data values related in time by their position in the buffer. This can be thought of as an electronic strip-chart recorder. Each value is sent to the FIFO by executing the Algorithm Language intrinsic statement writefifo(<expression>). The following in an example algorithm statement:
writefifo(O124); /* send output channel 24's value to the FIFO */
Since the actual algorithm execution rate can be determined (see “Programming the Trigger Timer” on page 131), the time relationship of readings in the FIFO is very deterministic.
For a discussion on reading values from the FIFO, see “Reading Running Algorithm Values” on page 134.
The writeboth(<expression>,<cvt_element>) statement sends the value of both to the FIFO and to a . Reading these values is done the same way as mentioned for writefifo() and writecvt().
The algorithm language provides the function interrupt() to force a VXIbus interrupt. This interrupt() function can be used to set bit 11 of the STATus:OPERation register from within an algorithm. This bit could then be enabled to generate an SRQ to the controller (see “STATus:OPERation:ENABle” on page 382 and “*SRE” on page 404). The following example algorithm code tests an input channel value and sets an interrupt if it is higher or lower than set limits.
static float upper_limit = 1.2, lower_limit = 0.2; if( I124 > upper_limit || I124 < lower_limit ) interrupt();
192 Creating and Running Algorithms Chapter 6

When an algorithm is defined with the ALG:DEF 'ALGn',... command, the VT1422A's driver makes available to the algorithm the constant ALG_NUM. ALG_NUM has the value n from "ALGn." For instance, an algorithm is defined with equal to "ALG3", then ALG_NUM within that algorithm would have the value 3.
What can be done with this value? A short example of the code that uses ALG_NUM is provided to illustrate:
writecvt ( inp_channel, (ALG_NUM * 10) + 0 ); writecvt ( Error, (ALG_NUM * 10) + 1 ); writecvt ( outp_channel, (ALG_NUM * 10) + 2 ); writecvt ( Status, (ALG_NUM * 10) + 3 );
This code writes algorithm values into CVT elements 10 through 13 for ALG1, CVT elements 20 through 23 for ALG2, CVT elements 30 through 33 for ALG3, etc.
Using ALG_NUM allows identical code to be written that can take different actions depending on the name it was given when defined.
Access to user defined functions is provided to avoid complex equation calculation within an algorithm. Essentially, what is provided with the VT1422A is a method to pre-compute user function values outside of algorithm execution and place these values in tables, one for each user function. Each function table element contains a slope and offset to calculate an mx+b over the interval (x is the value provided to the function). This allows the DSP to linearly interpolate the table for a given input value and return the function's value much faster than if a transcendental function’s equation were arithmetically evaluated using a power series expansion.
User functions are defined by downloading function table values with the ALG:FUNC:DEF command and can take any name that is a valid 'C' identifier like 'haversine', 'sqr', 'log10', etc. To find out how to generate table values from a function equation, see "Generating User Defined Functions" in Appendix F page 487. For details on the ALG:FUNC:DEF command, see page 249 in the Command Reference.
User defined functions are global in scope. A user function defined with ALG:FUNC:DEF is available to all defined algorithms. Up to 32 functions can be defined in the VT1422A. The function can be called with the syntax <func_name>(<expression>). Example:
for user function pre-defined as square root with name 'sqrt' O108 = sqrt( I100); /* channel 8 outputs square root of input channel 0's value */
A VXIplug&play program that shows the use of a user defined function is supplied on the driver disc ("tri_sine.cpp"). The program is on the CD supplied with the instrument. View the readme.txt file provided with the VXIplug&play driver for example program file location.
Creating and Running Algorithms 193 Chapter 6

This section explains another important factor in an algorithm's execution environment. Figure 6-2 shows the same overall sequence of operations seen in Chapter 3, but also includes a block diagram to show which parts of the VT1422A are involved in each phase of the control sequence.
In other words, algorithms don't actually read inputs at the time they reference input channels and they don't send values to outputs at the time they reference output channels. Algorithms read channel values from an input buffer and write (and can read) output values to/from an output buffer. Here are example algorithm statements to describe operation:
inp_val = I108;/* inp_val is assigned a value from input buffer element 8 */ O116 = 22.3;/* output buffer element 16 assigned the value 22.3 */ O125 = O124;/* output buffer [24] is read and assigned to output buffer [25] */
Since the buffered input, algorithm execution, buffered output sequence is probably not a method many are familiar with, a programming mistake associated with it is easy to make. Once seen it here, however, it can be easily avoided. The following algorithm statements will help explain:
O124.B0 = 1;/* digital output bit on VT1533A in SCP position 3 */ O124.B0 = 0;
Traditionally, the first of these two statements is expected to set output channel 24, bit 0 to a digital 1, then, after the time it takes to execute the second statement, the bit would return to a digital 0. Because both of these statements are executed BEFORE any values are sent to the output hardware, only the last statement has any effect. Even if these two statements were in separate algorithms, the last one executed would determine the output value. In this example, the bit would never change. The same applies to analog outputs.
The buffered I/O sequence explained previously can be used advantageously. Multiple algorithms can access the very same buffered channel input value without having to pass the value in a parameter. Any algorithm can read and use as its input the value that any other algorithm has sent to the output buffer. In order for these features to be of use, the order in which the algorithms will be executed must known. When algorithms are defined, they are given one of 32 pre-defined algorithm names. These range from 'ALG1' to ALG32.' The algorithms will execute in order of their name. For instance, 'ALG5' is defined, then 'ALG2,' then 'ALG8,' and finally 'ALG1'; when they are run, they will execute in the order 'ALG1,' 'ALG2,' 'ALG5,' and 'ALG8.' For more on input and output value sharing, see “Algorithm to Algorithm Communication” on page 201.
194 Creating and Running Algorithms Chapter 6


Figure 6-2. Algorithm Operating Sequence Diagram
Creating and Running Algorithms 195 Chapter 6

This section discusses how to use the ALG:DEFINE command to define algorithms. Later sections will discuss "what to define."
While the following discussion of algorithm definition is useful for plug&play users with regards to the coding of an algorithm or global variable definition, generating an algorithm code and actually downloading it to the VT1422A is much easier because of the plug&play hps1422.exe Soft Front Panel program and hpe1422_downloadAlg(...) plug&play driver function.
Using the SFP "Algorithm Panel," an algorithm can be created and tested and then stored to a file. The hpe1422_downloadAlg(...) plug&play driver function was created specifically to download algorithms from files into the VT1422A as part of the application program.
*RST erases all previously defined algorithms. All algorithms must be erased before beginning to re-define them (except in the special case described in "Changing a Running Algorithm" on page 197 later in this section).
Sequence
ALG:DEFINE's Three Data Formats
The ALG:DEFINE '','' command sends an algorithm's source code to the VT1422A's driver for translation to executable code. The parameter can be sent in one of two forms:
ALG:DEF 'ALG1','if(First_loop) O108=0; O108=O108+.01;'
#0
196 Creating and Running Algorithms Chapter 6

Retrieve algorithm source code from file and send to VT1422A in indefinite length format using VTL/VISA instrument I/O libraries:
int byte_count, file_handle; char source_buffer[8096], null = 0; file_handle = open( "", O_RDONLY + O_BINARY); byte_count = read( file_handle, source_buffer, sizeof( source_buffer ) ); close( file_handle ); source_buffer[ byte_count ] = 0; /* null to terminate source buffer string */ viPrintf( VT1422A, "ALG:DEF 'ALG8',#0%s%c\n", source_buffer, null );
See the section "Running the Algorithm" later in this chapter for more information on loading algorithms from files.
The VT1422A has a feature that allows for a given algorithm to be swapped with another even while it is executing. This is useful if, for instance, it is necessary to alter the function of an algorithm that is currently controlling a process and it would be undesirable for that process to be uncontrolled. In this case, when the original algorithm is defined, enable it to be swapped.
The ALG:DEF command has an optional parameter that is used to enable algorithm swapping. The command's general form is:
ALG:DEF ''[,],''
define ALG3 so it can be swapped with an algorithm as large as 1000 words ALG:DEF 'ALG3',1000,#41698
NOTE The number of characters (bytes) in an algorithm's parameter is not well related to the amount of memory space the algorithm requires. Remember this parameter contains the algorithm's source code, not the executable code it will be translated into by the ALG:DEF command. The algorithm's source might contain extensive comments, none of which will be in the executable algorithm code after it is translated.
Creating and Running Algorithms 197 Chapter 6

How Does it Work? The example algorithm definition above will be used for this discussion. When a value for is specified at algorithm definition, the VT1422A allocates two identical algorithm spaces for ALG3, each the size specified by (in this example 1000 words). This is called a "double buffer," arbitrarily called space A and space B. The algorithm is loaded into ALG3's space A at first definition. Later, while algorithms are running, "replace" ALG3 by again executing:
ALG:DEF ALG3,#42435
Notice that <swap_size> is not (must not be) included this time. The ALG:DEF command works like an Update Request. The VT1422A translates and downloads the new algorithm into ALG3's space B while the old ALG3 is still running from space A. When the new algorithm has been completely loaded into space B and an ALG:UPDATE command has been sent, the VT1422A simply switches to executing ALG3's new algorithm from space B at the next Update Phase (see Figure 6-2). If yet another ALG3 were sent, it would be loaded and executed from ALG3's space A.
In order to define an algorithm for swapping, it is necessary to know how much algorithm memory to allocate for it or any of its replacements. It can be queried from the VT1422A using the following sequence:
198 Creating and Running Algorithms Chapter 6

NOTES 1. Channels referenced by algorithms when they are defined are only placed in the channel list before INIT. The channel list cannot be changed after INIT. If an algorithm is re-defined (by swapping) after INIT and it references channels not already in the channel list, it will not be able to access the newly referenced channels. No error message will be generated. To make sure all required channels will be included in the channel list, define and re-define all algorithms that will replace by swapping them before INIT is sent. This insures that all channels referenced in these algorithms will be available after INIT.
2. The driver only calculates overall execution time for algorithms defined before INIT. This calculation is used to set the default output delay (same as executing ALG:OUTP:DELAY AUTO). If an algorithm is swapped after INIT that take longer to execute than the original, the output delay will behave as if set by ALG:OUTP:DEL 0, rather than AUTO (see ALG:OUTP:DEL command). Use the same procedure from note 1 to make sure the longest algorithm execution time is used to set ALG:OUTP:DEL AUTO before INIT.
An example program file named "swap.cpp" on the drivers CD shows how to swap algorithms while the module is running. See Appendix G page 491 for program listings. View the readme.txt file provided with the VXIplug&play driver for example program file location.
Creating and Running Algorithms 199 Chapter 6

This section shows how to create and download an algorithm that simply sends the value of an input channel to a CVT element. It includes an example application program that configures the VT1422A, downloads (defines) the algorithm, starts, and then communicates with the running algorithm.
The most convenient method of creating an algorithm is to use the hps1422.exe soft front panel program. Use the Algorithms Panel to create, edit and save the algorithm to a file called "mxplusb.c." The following algorithm source code is on the examples disc in a file called "mxplusb.c."
/* Example algorithm that calculates 4 Mx+B values upon * signal that sync == 1. M and B terms set by application * program. */ static float M, B, x, sync; if ( First_loop ) sync = 0; if ( sync == 1 ) {
writecvt( M*x+B, 10 ); writecvt(-(M*x+B), 11 ); writecvt( (M*x+B)/2,12 ); writecvt( 2*(M*x+B),13 ); sync = 2; }
A C-SCPI example program "file_alg.cpp" shows how to retrieve the algorithm source file "mxplusb.c" and use it to define and execute an algorithm. When "file_alg.cpp" is compiled, type file_alg mxplusb.c to run the example and load the algorithm. View the readme.txt file provided with the VXIplug&play driver for example program file location.
Modifying an Example PID Algorithm
While the example PID algorithms supplied as source files with the VT1422A can provide excellent general closed loop process control, there will be times when the process has specialized requirements that are not addressed by the as-written form of these PID algorithms. In this section, coping and modifying an example PID algorithm is described.
The example PID algorithms are written to supply control outputs through analog output SCPs. While it would not be an error to specify a digital channel as the PID control output, the PID algorithm as written would not operate the digital channel as desired.
The value written to a digital output bit is evaluated as if it were a boolean value. That is, if the value represents a boolean true, the digital output is set to a binary 1. If the value represents a boolean false, the digital output is set to a binary 0. The VT1422A's Algorithm Language (like 'C') specifies that a value of 0 is a boolean false (0), any other value is considered true (1). With that in mind, the operation of an example PIDA will be analyzed with a digital output as its control output.
200 Creating and Running Algorithms Chapter 6

A PID algorithm is to control a bath temperature at 140°F. With the Setpoint at 140 and the process variable (PV) reading 130, the value sent to the output is a positive value which drives the digital output to 1 (heater on). When the process value reading reaches 140, the "error term" would equal zero so the value sent to the digital output would be 0 (heater off). Fine so far, but as the bath temperature coasts even minutely above the setpoint, a small negative value will be sent to the digital output which represents a boolean true value. At this point the output will again be 1 (heater on) and the bath temperature will continue to go up rather than down. This process is now out of control!
Modifying the Example PIDA
This behavior is easy to fix. Simply modify the example PIDA algorithm source code (supplied with the VT1422A in the file PIDA.C) and then define it as an algorithm. Use the following steps:
outchan = Error * P_factor + I_out + D_factor * (Error - Error_old)
and insert this line below it:
if ( outchan
The ability for one algorithm to have access to values from another can be very important particularly in more complex control situations. One of the important features of the VT1422A is that this communication can take place entirely within the algorithms' environment. The application program is freed from having to retrieve values from one algorithm and then send those values to another algorithm.
The value of all defined input and output channels can be read by any algorithm. Here is an example of inter-algorithm channel communication.
Identifiers
Creating and Running Algorithms 201 Chapter 6

In this example, two PID algorithms each control part of a process and due to the process dynamics are interactive. This situation can call for what is known as a "decoupler." The job of the decoupler is to correct for the "coupling" between these two process controllers. Figure 6-3 shows the two PID controllers and how the de-coupler algorithm fits into the control loops. As mentioned before, algorithm output statements don't write to the output SCP channels but are instead buffered in the Output Channel Buffer until the Output Phase occurs. This situation allows easy implementation of decouplers because it allows an algorithm following the two PIDs to inspect their output values and make adjustments to them before they are sent to output channels. The decoupler algorithm's Decoupl_factor1 and Decouple_factor2 variables (assumes a simple interaction) are local and can be independently set using ALG:SCALAR:
/* decoupler algorithm. (must follow the coupled algorithms in execution sequence) */ static float Decouple_factor1, Decouple_factor2; O124 = O124 + Decouple_factor2 * O125; O125 = O125 + Decouple_factor1 * O124;

Figure 6-3. Algorithm Communication with Channels
A more traditional method of inter-algorithm communication uses global variables. Global variables are defined using the ALG:DEF command in the form: ALG:DEF 'GLOBALS','<variable_declaration_statements>'
Variables
Example of global declaration ALG:DEF 'GLOBALS','static float cold_setpoint;'
In this example, two algorithms mix hot and cold water supplies in a ratio that results in a tank being filled to a desired temperature. The temperature of the make-up supplies is assumed to be constant. Figure 6-4 shows the process diagram.
202 Creating and Running Algorithms Chapter 6
Setpoint


55° Cold Supply
180° Hot Supply
Figure 6-4. Inter-algorithm Communication with Globals
To set up the algorithms for this example:
ALG:DEF 'GLOBALS','static float cold_setpoint;'
static float hot_flow, cold_hot_ratio; static float cold_temp = 55, hot_temp = 180, product_temp = 120; hot_flow = I108; /* get flow rate of cold supply */ /* following line calculates cold to hot ratio from supply and product temps */ cold_hot_ratio = (hot_temp - product_temp) / (cold_temp - product_temp); cold_setpoint = hot_flow * cold_hot_ratio; /* output flow setpoint for ALG2 */
/* Modified PIDA Algorithm; comments stripped out, setpoint from global, inchan = I109, outchan = O116 */ /* the setpoint is not declared so it will be global */ static float P_factor = 1; static float I_factor = 0; static float D_factor = 0; static float I_out; static float Error; static float Error_old;
Creating and Running Algorithms 203 Chapter 6
GLOBAL cold_setpoint · 120° Product

/* following line includes global setpoint var and hard coded input chan */ Error = Cold_setpoint - I109; if (First_loop) {
I_out = Error * I_factor; Error_old = Error; } else /* not First trigger */ {
I_out = Error * I_factor + I_out; /* output channel hard coded here */ } O116 = Error * P_factor + I_out + D_factor * (Error - Error_old); Error_old = Error;
Another function the VT1422A performs well is monitoring input values and testing them against pre-set limits. If an input value exceeds its limit, the algorithm can be written to supply an indication of this condition by changing a CVT value or even forcing a VXIbus interrupt. The following example shows acquiring one analog input value from channel 0 and one VT1533A digital channel from channel 16 and limit testing them.
/* Limit test inputs, send values to CVT and force interrupt when exceeded */ static float Exceeded; static float Max_chan0, Min_chan0, Max_chan1, Min_chan1; static float Max_chan2, Min_chan2, Max_chan3, Min_chan3; static float Mask_chan16; if ( First_loop ) Exceeded = 0; /* initialize Exceeded on each INIT */ writecvt( I100, 330); /* write analog value to CVT */ Exceeded = ( ( I100 > Max_chan0 ) || ( I100 < Min_chan0 ) ); /* limit test analog */ writecvt( I101, 331); /* write analog value to CVT */ Exceeded = Exceeded + ( ( I101 > Max_chan1 ) || ( I101 < Min_chan1 ) ); writecvt( I102, 332); /* write analog value to CVT */ Exceeded = Exceeded + ( ( I102 > Max_chan2 ) || ( I102 < Min_chan2 ) ); writecvt( I103, 333); /* write analog value to CVT */ Exceeded = Exceeded + ( ( I103 > Max_chan3 ) || ( I103 < Min_chan3 ) ); writecvt( I116, 334); /* write 8-bit value to CVT */ Exceeded = Exceeded + ( I116 != Mask_chan16); /* limit test digital */ If ( Exceeded ) interrupt( );
204 Creating and Running Algorithms Chapter 6

A setpoint profile is a sequence of setpoints that are desired as inputs for a control algorithm. A normal setpoint is either static or modified by operator input to some desired value where it will then become static again. A setpoint profile is used when a device under test is desired to be cycled through some operating range and the setpoint remains for some period of time before changing. The automotive industry uses setpoint profiles to test their engines and drive trains. That is, each new setpoint is a simulation of an operator sequence that might normally be encountered.
A setpoint profile can either be calculated for each interval or pre-calculated and placed into an array. If calculated, the algorithm is given a starting setpoint and an ending setpoint. A function based upon time then calculates each new desired setpoint until traversing the range to the end point. Some might refer to this technique as setpoint ramping.
Most setpoint profiles are usually pre-calculated by the application program and downloaded into the instrument performing the sequencing. In that case, an array affords the best alternative for several reasons:
The following is an example program that sequences data from an array to an Analog Output. There are some unique features illustrated here that can be used.
Creating and Running Algorithms 205 Chapter 6

SOUR:FUNC:COND (@141) make Digital I/O channel 141 a digital output. The default condition for 140 is digital input. define algorithm ALG:DEF 'alg1',' static float setpoints[ 1024 ], index, num_events, n; if ( First_loop ) {
index = 0; /* array start point */ n = num_events;/* preset interval */ } n = n - 1; /* count trigger events */ if ( n
O100 = setpoints[ index ]; /* output new value */ index = index + 1; /* increment index */ if ( index > 1023 ) { /* look for endpoint */
index = 0; O140.B0 = !O140.B0; /* toggle update bit */ } n = num_events; /* reset interval count */ }’
ALG:SCAL "alg1","num_events", 10 output change every 10 ms ALG:ARRAY "alg1","setpoints", set first profile ALG:UPD force change TRIG:TIMER .001 trigger event at 1 ms TRIG:SOUR TIMER trigger source timer INIT start algorithm
Download new setpoint profile and new timer interval: ALG:SCAL "alg1","num_events", 20 output change every 20 ms ALG:ARRAY "alg1","setpoints", set first profile ALG:UPD:CHAN "I140.B0" change takes place with change in bit 0 of O140.
This example program was configured using Digital Output and Digital Inputs for the express reason that multiple VT1422A's may be used in a system. In this case, the VT1422A toggling the digital bit would be the master for the other VT1422A's in the system. They all would be monitoring one of their digital input channels to signal a change in setpoint profiles.
206 Creating and Running Algorithms Chapter 6

This section provides a summary of reserved keywords, operators, data types, constructs, intrinsic functions, and statements.
The list of reserved keywords is the same as ANSI 'C'. User variables may not be created using these names. Note that the keywords that are shown underlined and bold are the only ANSI 'C' keywords that are implemented in the VT1422A.
auto double int struc
break else long switch
case enum register typeof
char extern return union
const float short unsigned
continue for signed void
default goto sizeof volatile
do if static while
The VT1422A implements some additional reserved keywords. User variables may not be created using these names:
Bn (n=0 through 9) max writecvt
Bnn (nn=10 through 15) min writefifo
Identifiers Identifiers (variable names) are significant to 31 characters. They can include alpha, numeric, and the underscore character "_". Names must begin with an alpha character or the underscore character.
Alpha: a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Creating and Running Algorithms 207 Chapter 6
abs interrupt writeboth

Channel identifiers appear as variable identifiers within the algorithm and have a fixed, reserved syntax. The identifiers I100 to I163 specify on-board input channel numbers. The identifiers I10000 to I15731 specify remote input channel numbers. The "I" must be upper case. They may only appear on the right side of an assignment operator. The identifiers O100 to O163 specify output channel numbers. The "O" must be upper case. They can appear on either or both sides of the assignment operator.
Special Identifiers
Remote Scan Status identifiers appear as variable identifiers within the algorithm and have a fixed, reserved syntax. The identifiers S100, S101, S108, S109, S116, S117, S124, S125, S132, S133, S140, S141, S148, S149, S156 and S157 specify scan status variables that are linked to the on-board channels of VT1539A SCPs. These VT1539A SCP channels are in turn connected to Remote Signal Conditioning Units (RSCUs). The identifiers are treated like input channel specifiers and may only appear on the right side of an assignment operator. The "S" must be upper case.
Status
When accessed, these identifiers return one of three values: 0=normal RSCU operation, 1=RSCU cable disconnected after INIT and 2=RSCU scan is out of synchronization (RSCU scan trigger problem during scan).
Assignment Operator = (assignment) example; c = 1.2345
Arithmetic Operators + (addition) examples; c = a + b - (subtraction) c = a - b * (multiplication) c = a * b / (division) c = a / b
Unary Operators - (unary minus) c = a + (-b) + (unary plus) c = a + (+b)
208 Creating and Running Algorithms Chapter 6

Comparison Operators == (is equal to) examples; a == b != (is not equal to) a != b < (is less than) a < b > (is greater than) a > b = b
Logical Operators || (or) examples; (a == b) || (a == c) && (and) (a == b) && (a == c)
Unary Logical Operator! (not) example; !b
The result of a comparison operation is a boolean value. It is still a type float but its value is either 0 (zero) if false or 1 (one) if true. Any variable may be tested with the if statement. A value of zero tests false, if any other value, it tests true. For example:
/* if my_var is other than 0, increment count_var */ if(my_var) count_var=count_var+1;
The following functions and statements are provided in the VT1422A's Algorithm Language:
abs(expression) return absolute value of expression max(expression1,expression2) return largest of the two expressions min(expression1,expression2) return smallest of the two expressions
interrupt() sets bit 11 of STAT:OPER register writeboth(expression,cvt_loc) write expression result to FIFO and CVT element specified. writecvt(expression,cvt_loc) write expression result to CVT element specified. writefifo(expression) write expression result to FIFO.
Creating and Running Algorithms 209 Chapter 6

Program flow control is limited to the conditional execution construct using if and else and return. Looping inside an algorithm function is not supported. The only "loop" is provided by repeatedly triggering the VT1422A. Each trigger event (either external or internal Trigger Timer) executes the main() function which calls each defined and enabled algorithm function. There is no goto statement.
Conditional Constructs The VT1422A Algorithm Language provides the if-else construct in the following general form:
if (expression) statement1 else statement2
If expression evaluates to non-zero statement1 is executed. If expression evaluates to zero, statement2 is executed. The else clause with its associated statement2 is optional. Statement1 and/or statement2 can be compound statement. That is { statement; statement; statement;... }.
Exiting the Algorithm The return statement allows terminating algorithm execution before reaching the end by returning control to the main() function. The return statement can appear anywhere in an algorithm. It is not required to include a return statement to end an algorithm. The translator treats the end of an algorithm as an implied return.
Data Types The data type for variables is always static float. However, decimal constant values without a decimal point or exponent character (".", "E" or "e"), as well as Hex and Octal constants are treated as 32-bit integer values. This treatment of constants is consistent with ANSI 'C'. To understand what this can mean, it is necessary to understand that not all arithmetic statements in an algorithm are actually performed within the VT1422A's DSP chip at algorithm run-time. Where expressions can be simplified, the VT1422A's translator (a function of the driver invoked by ALG:DEF) performs the arithmetic operations before downloading the executable code to the algorithm memory in the VT1422A. For example, look at the statement:
a = 5 + 8;
When the VT1422A's translator receives this statement, it simplifies it by adding the two integer constants (5 and 8) and storing the sum of these as the float constant 13. At algorithm run-time, the float constant 13 is assigned to the variable "a." Now, analyze this statement:
a = ( 3 / 4 ) * 12;
Again, the translator simplifies the expression by performing the integer divide for 3 / 4. This results in the integer value 0 being multiplied by 12 which results in the float constant 0.0 being assigned to the variable "a" at run-time. This is obviously not what was wanted, but is exactly what the algorithm instructed.
210 Creating and Running Algorithms Chapter 6

These subtle problems can be avoided by specifically including a decimal point in decimal constants where an integer operation is not desired. For example, if either of the constants in the division above is made into a float constant by including a decimal point, the translator would have promoted the other constant to a float value and performed a float divide operation resulting in the expected 0.75 * 12 or the value 8.0. So, the statement:
a = ( 3. / 4 ) * 12;
will result in the value float 8.0 being assigned to the variable "a."
The Static Modifier All VT1422A variables, local or global, must be declared as static. An example:
static float gain_var, integer_var, deriv_var; /* three vars declared */
In 'C', local variables that are not declared as static lose their values once the function completes. The value of a local static variable remains unchanged between calls to an algorithm. Treating all variables this way allows an algorithm to "remember" its previous state. The static variable is local in scope, but otherwise behaves as a global variable. Also, note that declaring variables within a compound statement is not permitted.
static float simp_var, any_var; Use
simp_var = 123.456; any_var = -23.45; Another_var = 1.23e-6;
Each simple variable requires four 16-bit words of memory.
Creating and Running Algorithms 211 Chapter 6

static float array_var [3]; Use
array_var [0] = 0.1; array_var [1] = 1.2; array_var [2] = 2.34; array_var [3] = 5;
Arrays are "double buffered." This means that when an array is declared, twice the space required for the array is allocated, plus one more word as a buffer pointer. The memory required is:
words of memory = (8 * num_elements) + 1
This double buffered arrangement allows the ALG:ARRAY command to download all elements of the array into the "B" buffer while an algorithm is accessing values from the "A" buffer. Then an ALG:UPDATE command will cause the buffer pointer word to point to the newly loaded buffer between algorithm executions.
Bitfield Access The VT1422A implements bitfield syntax that allows individual bit values to be manipulated within a variable. This syntax is similar to what would be done in 'C', but doesn't require a structure declaration. Bitfield syntax is supported only for the lower 16 bits (bits 0-15) of simple (scalar) variables and channel identifiers.
if(word_var.B0 || word_var.B3) /* if either bit 0 or bit 3 true ... */ word_var.B15 = 1; /* set bit 15 */
static float my_word_var; my_word_var = 255 /* set bits 0 through 7 */ my_word_var.B3 = 0 /* clear bit 3 */
212 Creating and Running Algorithms Chapter 6

Declaration Initialization Only simple variables can be initialized (not array members) in the declaration statement:
static float my_var = 2;
NOTE! The initialization of the variable only occurs when the algorithm is first defined with the ALG:DEF command. The first time the algorithm is executed (module INITed and triggered), the value will be as initialized. But when the module is stopped (ABORT command) and then re-INITiated, the variable will not be re-initialized but will contain the value last assigned during program execution. In order to initialize variables each time the module is re-INITialized, see “Determining First Execution (First_loop)” on page 190.
Global Variables To declare global variables, execute the SCPI command ALG:DEF 'GLOBALS',. The can contain simple variable and array variable declaration/initialization statements. The string must not contain any executable source code.
This section documents the VT1422A's Algorithm Language elements.
First character is A-Z, a-z or "_", optionally followed by characters; A-Z, a-z, 0-9 or "_". Only the first 31 characters are significant. For example: a, abc, a1, a12, a_12, now_is_the_time, gain1
First character is 0-9 or "." (decimal point). Remaining characters if present are 0-9, a "." (one only), a single "E" or "e", optional "+" or "-", 0-9. For example: 0.32, 2, 123, 123.456, 1.23456e-2, 12.34E3
First characters are 0x or 0X. Remaining characters are 0-9 and A-F or a-f. No "." allowed.
Creating and Running Algorithms 213 Chapter 6

First character is 0. Remaining characters are 0-7. If ".", "e" or "E" is found, the number is assumed to be a Decimal Constant as above.
constant (expression) scalar-identifier scalar-identifier.bitnumber array-identifier[expression] abs(expression) max(expression,expression) min(expression,expression)
Bn where n=0-9 Bnn where nn=10-15
Unary-operator:
Multiplicative-expression:
unary-expression multiplicative-expression multiplicative-operator unary-expression
Additive-expression:
multiplicative-expression additive-expression additive-operator multiplicative-expression
214 Creating and Running Algorithms Chapter 6

additive-expression relational-expression relational-operator additive-expression
< > =
relational-expression equality-expression equality-operator relational-expression
Logical-AND-expression:
equality-expression logical-AND-expression && equality-expression
logical-AND-expression expression || logical-AND-expression
identifier identifier [ integer-constant-expression ] NOTE: integer-constant expression in array identifier above must not exceed 1,023
declarator declarator = constant-expression NOTES: 1. May not initialize array declarator. 2. Arrays limited to single dimension of 1,024 maximum.
init-declarator init-declarator-list, init-declarator
Creating and Running Algorithms 215 Chapter 6
== !=

static float init-declarator-list;
Intrinsic-statement:
interrupt ( ) writefifo ( expression ) writecvt ( expression , constant-expression ) writeboth( expression , constant-expression ) exit ( expression )
scalar-identifier = expression; scalar-identifier . bit-number = expression ; array-identifier [ integer-constant expression ] = expression ; intrinsic-statement ;
if ( expression ) statement if ( expression ) statement else statement
{ statement-list } { } NOTE: Variable declaration not allowed in compound statement
Statement-list:
Algorithm-definition:
216 Creating and Running Algorithms Chapter 6

In this section, the portion of the 'C' programming language that is directly applicable to the VT1422A' Algorithm Language will be discussed. To do this, the 'C' Algorithm Language elements will be compared with equivalent BASIC language elements.
Declaring Variables In BASIC, the DIM statement is usually used to name variables and allocate space in memory for them. In the Algorithm Language, the variable type and a list of variables is specified:
BASIC 'C' DIM a, var, array(3) static float a, var, array[ 3 ];
Here, three variables are declared. Two simple variables: a and var and a single dimensioned array: array.
Assigning Values BASIC and 'C' are the same here. In both languages, the symbol "=" is used to assign a value to a simple variable or an element of an array. The value can come from a constant, another variable or an expression. Examples:
a = 12.345; a = My_var; a = My_array[ 2 ]; a = (My_array[ 1 ] + 6.2) / My_var;
Creating and Running Algorithms 217 Chapter 6

Many of the operation symbols are the same and are used the same way as those in BASIC. However, there are differences and they can cause programming errors until the differences become familiar.
The Arithmetic Operators The arithmetic operators available to the VT1422A are the same as those equivalents in BASIC: + (addition) - (subtraction) * (multiplication) / (division)
Again same as BASIC: - (unary minus) Examples: a = b + (-c) + (unary plus) a = c + (+b)
The Comparison
Here there are some differences.
BASIC 'C' Notes = (is equal to) == Different (hard to remember) or # (is not equal to) != Different but obvious > (is greater than) > Same < (is less than) > Same >= (is greater than or equal to) >= Same
A common 'C' programming error for BASIC programmers is to inadvertently use the assignment operator "=" instead of the comparison operator "==" in an if statement. Fortunately, the VT1422A will flag this as a Syntax Error when the algorithm is loaded.
The Logical Operators There are three operators. They are very different from those in BASIC.
BASIC Examples 'C' Examples AND IF A=B AND B=C && if( ( a == b )&&( b == c ) ) OR IF A=B OR A=C | | if( ( a == b ) | | ( a == c ) ) NOT IF NOT B ! if ( ! b )
The VT1422A Algorithm Language provides the if - else construct for conditional execution. The following figure compares the elements of the 'C' if - else construct with the BASIC if - then - else - end if construct. The general form of the if - else construct is:
if(expression) statement1 else statement2
where statement1 is executed if expression evaluates to non-zero (true), and statement2 is executed if expression evaluates to zero (false). Statement1 and/or statement2 can be compound statements. That is, multiple simple statements within curly braces (see Figure 6-5).
218 Creating and Running Algorithms Chapter 6

IF boolean_expression THEN statement
Simplest form (used often)
if(boolean_expression) statement;
Two-line form (not recommended; use multiple line form instead)
if(boolean_expression){
Multiple line form (used often)
statement; statement; statement; }
statement statement statement END IF
if(boolean_expression) {
Multiple line form with else (used often)
statement; statement; } else {
Figure 6-5. The If Statement 'C' versus BASIC
Note that in BASIC the boolean_expression is delimited by the IF and the THEN keywords. In 'C', the parentheses delimit the expression. In 'C', the ")" is the implied THEN. In BASIC, the END IF keyword terminates a multi-line IF. In 'C', the if is terminated at the end of the following statement when no else clause is present or at the end of the statement following the else clause. Figure 6-6 shows examples of these forms.
if( x ) if( y ) z = 1; else z = 2;
executes like: not like: if( x ){ if( x ){ if( y ){ if ( y ){ z = 1; z = 1; } } else{ } z = 2; else{ } z = 2; } }
Creating and Running Algorithms 219 Chapter 6

Examples BASIC Syntax 'C' Syntax
if(a
C=B/A END IF
c = b / a;
if((a != b) && (a != c)) {
a = a * b; b = b + 1; c = 0; }
if((a == 5) || (b == -5)) {
c = abs(c); c = 2 / c; } else {
c = a * b; }
Figure 6-6. Examples of 'C' and BASIC If Statements
Comment Lines Probably the most important element of programming is the comment. In older BASIC interpreters the comment line began with "REM" and ended at the end-of-line character(s) (probably carriage return then linefeed). Later BASICs allowed comments to also begin with various "shorthand" characters such as "!" or "'". In all cases, a comment ended when the end-of-line is encountered. In 'C' and the Algorithm Language, comments begin with the two characters "/*" and continue until the two characters "*/" are encountered. Examples:
/* this line is solely a comment line */ if ( a != b) c = d + 1; /* comment within a code line */ /* This comment is composed of more than one line.
The comment can be any number of lines long and terminates when the following two characters appear */
About the only character combination that is not allowed within a comment is "*/", since this will terminate the comment.
220 Creating and Running Algorithms Chapter 6
if(a != 0)

The preceding discussion showed the differences between individual statements in BASIC and 'C'. Here it will be described how the VT1422A's Algorithm Language elements are arranged into a program.
Here is a simple example algorithm that shows most of the elements discussed so far.
/* Example Algorithm to show language elements in the context of a complete custom algorithm.
Program variables:
user_flag Set this value with the SCPI command ALG:SCALAR. user_value Set this value with the SCPI command ALG:SCALAR.
Program Function:
Algorithm returns user_flag in CVT element 330 and another value in CVT element 331 each time the algorithm is executed. When user_flag = 0, returns zero in CVT 331. When user_flag is positive, returns user_value * 2 in CVT 331 When user_flag is negative, returns user_value / 2 in CVT 331 and in FIFO
Use the SCPI command ALGorithm:SCALar followed by ALGorithm:UPDate to set user_flag and user_value. */ static float user_flag; /* Declaration statements (end with ; ) */ static float user_value;
writecvt (user_flag,330); /* Always write user_flag in CVT (statement ends with ; ) */
if (user_flag ) /* if statement (note no ; ) */ { /* brace opens compound statement */ if (user_flag > 0) writecvt (user_value * 2,331); /* one-line if statement (writecvt ends with ; ) */ else /* else immediately follows complete if-statement construct */ { /* open compound statement for else clause */ writecvt (user_value / 2,331); /* each simple statement ends in ; (even within compound ) */ writefifo (user_value); /* these two statements could combine with writeboth () */ } /* close compound statement for else clause */ } /* close compound statement for first if */ else writecvt (0,331);/* else clause goes with first if statement. Note single line else */
Creating and Running Algorithms 221 Chapter 6

222 Creating and Running Algorithms Chapter 6







Commands are separated into two types: IEEE-488.2 Common Commands and SCPI Commands. The SCPI command set for the VT1422A is 1990 compatible
The IEEE-488.2 standard defines the Common commands that perform functions like reset, self-test, status byte query, etc. Common commands are four or five characters in length, always begin with the asterisk character (*) and may include one or more parameters. The command keyword is separated from the first parameter by a space character. Some examples of Common commands are:
SCPI Command
The SCPI commands perform functions like configuring channels, setting up the trigger system and querying instrument states or retrieving data. A subsystem command structure is a hierarchical structure that usually consists of a top level (or root) command, one or more lower level commands and their parameters. The following example shows part of a typical subsystem:
:ADDRess :ADDRess? :SIZE :SIZE?
MEMory is the root command, :VME is the second level command and :ADDRess and SIZE are third level commands.
ROUTE:SEQUENCE:DEFINE?
Colons separate the root command from the second level command (ROUTE:SEQUENCE) and the second level from the third level (SEQUENCE:DEFINE?). If parameters are present, the first is separated from the command by a space character. Additional parameters are separated from each other by a commas.
The command syntax shows most commands as a mixture of upper and lower case letters. The upper case letters indicate the abbreviated spelling for the command. For shorter program lines, send the abbreviated form. For better program readability, send the entire command. The instrument will accept either the abbreviated form or the entire command.
For example, if the command syntax shows SEQuence, then SEQ and SEQUENCE are both acceptable forms. Other forms of SEQuence, such as SEQUEN or SEQU will generate an error. Upper or lower case letters can be used. Therefore, SEQUENCE, sequence, and SeQuEnCe are all acceptable.
MEMory

Implied commands are those which appear in square brackets ([ ]) in the command syntax. (Note that the brackets are not part of the command and are not sent to the instrument.) Suppose a second level command is sent but is not sent preceding implied command. In this case, the instrument assumes that the implied command is intend to be used and it responds as if it was sent. Examine the INITiate subsystem shown below:
[:IMMediate]
The second level command :IMMediate is an implied command. To set the instrument's trigger system to INIT:IMM, send either of the following command statements:
INIT:IMM or INIT
Some commands will have what appears to be a variable syntax. As an example: OUTPut:TTLTrg<n>:STATe ON
In these commands, the "" is replaced by a number. No space is left between the command and the number because the number is not a parameter. The number is part of the command syntax. The purpose of this notation is to save a great deal of space in the Command Reference. In the case of …TTLTrg…, n can be from 0 through 7. An example command statement:
Parameters Parameter Types. The following section contains explanations and examples of parameter types that will be seen later in this chapter.
Numeric Accepts all commonly used decimal representations of numbers including optional signs, decimal points and scientific notation: 123, 123E2, -123, -1.23E2, .123, 1.23E-2, 1.23000E-01. Special cases include MIN, MAX, and INFinity.
A parameter that represents units may also include a units suffix. These are: Volts: V, mv=10-3, uv=10-6
The Comments section within the Command Reference will state whether a numeric parameter can also be specified in hex, octal and/or binary; #H7B, #Q173, #B1111011
INITiate

Boolean Represents a single binary condition that is either true or false: ON, OFF, 1, 0.
Discrete Selects from a finite number of values. These parameters use mnemonics to represent each valid setting.
An example is the TRIGger:SOURce command where can be; BUS, EXT, HOLD, IMM, SCP,TIMer, or TTLTrg.
Channel List (Standard Form) The general form of a single channel specification is: cnn where c represents the card number and nn represents the channel number.
On-board Channels: Since the VT1422A has an on-board 64 channel multiplexer, the card number will always be 1 and the channel number can range from 00 to 63. Some example channel specifications: channel 0 = 100, channel 5 = 105, channel 54 = 154
Remote Channels: The VT1422A uses the VT1539A SCP to support RSCUs like the VT1529A/B. Through these SCPs, the VT1422A can address up to 512 remote channels. The VT1539A SCP has two measurement channels, that can each be externally multiplexed to 32 channels. The remote channel syntax is similar to the on-board syntax but with the addition of two more channel reference digits: cnnee where c is the card number and again is always 1, nn references only the first or second channel at any SCP position in the VT1422A. So, nn can be any of 00, 01, 08, 09, 16, 17, 24, 25, 32, 33, 40, 41, 48, 49, 56, 57. The additional digits ee reference one of 32 channels (00 through 31) on the Remote Signal Conditioning unit connected to the on-board channel nn. An example of an RSC Unit is the VT1529A/B Remote Strain Bridge Conditioning Unit.
Some example remote channel specifications: 10000 = RSC channel 00 connected to VT1422A channel 00 10100 = RSC channel 00 connected to VT1422A channel 01 10122 = RSC channel 22 connected to VT1422A channel 01 12522 = RSC channel 22 connected to VT1422A channel 25
Specifying a range of Channels: The General form of a channel range specification is: 1nn[ee]:1nn[ee] (colon separator) [ee] means optional remote channels. The second channel must be greater than the first.

Examples: On-board channels 0 through 15=100:115 Remote channels 0000 through 0131=10000:10131 By using commas to separate them, individual and range specifications can be combined into a single channel list: 0, 5, 8 through 3331 and 45=(@100,105,108:13331,145) Notice that the range specified (108:13331) included a mix of on-board channels as well as remote channels. The VT1422A will correctly address all channels in the range according to the type of SCP installed at the channel position (remote for VT1539A SCPs and on-board for all other SCP models).
Channel List (Relative Form) The standard SCPI Relative Channel specification syntax is: (@cc(nn,nn,nn:nn ... )) where cc = card number and nn = channel number. Notice that with this form the card number digit moves from in front of each channel number, to outside of the inner parentheses. Example: 0, 5, 6 through 32 and 45 = (@1(0,5,6:32,45))
The Relative form has special meaning when used in the VT1422A’s ROUTe:SEQuence:DEFine (@<ch_list>) command. For the VT1422A, the syntax changes to: (@d(1nn,1nnee,1nn:1nn,1nn:1nnee,1nnee:1nnee,1nnee:1nn...) Notice that cc (standard form card number) has changed to d where d is now the "Data Destination" digit. The value of d controls the destination of the values read from the specified channels in the following manner:
Data Destination Effect on Reading 1 Reading sent to Current Value Table (CVT) 2 Reading sent to FIFO Buffer 3 Reading sent to CVT and FIFO (the default) 0 Reading not recorded (neither CVT or FIFO)
Getting back to the relative channel syntax above, notice also that all channels start with "1."

Notes 1. Because the "card number" digit has been changed to mean Data Destination, the Relative Channel form is only allowed in the ROUTe:SEQuence:DEFine command. Usage in other commands will generate an error message. 2. Note that for both forms, a channel list is always contained within "(@" and ")." The Command Reference always shows the "(@" and ")" punctuation: (@) 3. For the ROUT:SEQ:DEF command, the VT1422A has to transfer remote channels lists to the RSC units they reference. This transfer will be much more efficient if channels for particular RSCs are grouped together in the list. (@10025,10031,10120,10820,10810,10903) is better than (@10810,10025,10903,10031,10820,10903).
Arbitrary Block Program and Response Data This parameter or data type is used to transfer a block of data in the form of bytes. The block of data bytes is preceded by a preamble which indicates either: 1) the number of data bytes which follow (definite length) or 2) that the following data block will be terminated upon receipt of a New Line message and for GPIB operation, with the EOI signal true (indefinite length). The syntax for this parameter is:
Definite Length; #
Where the value of <non-zero digit> is 1-9 and represents the number of <digit(s)>. The value of <digit(s)> taken as a decimal integer indicates the number of <data byte(s)> in the block.
Example of sending or receiving 1024 data bytes: #41024… …
Indefinite Length; #0
Example of sending or receiving four data bytes: #0

Parameters shown within square brackets ([ ]) are optional parameters. (Note that the brackets are not part of the command and should not be sent to the instrument.) If a value is not specified for an optional parameter, the instrument chooses a default value. For example, consider the FORMAT:DATA [,] command. If the command is sent without specifying , a default value for will be selected depending on the of format specified. For example:
FORMAT:DATA ASC will set [,] to the default for ASC of 7 FORMAT:DATA REAL will set [,] to the default for REAL of 32 FORMAT:DATA REAL, 64 will set [,] to 64
Be sure to place a space between the command and the first parameter.
Linking commands is used to send more than one complete command in a single command statement.
Linking IEEE-488.2 Common Commands with SCPI Commands. Use a semicolon between the commands. For example:
*RST;OUTP:TTLT3 ON or TRIG:SOUR IMM;*TRG
Linking Multiple complete SCPI Commands. Use both a semicolon and a colon between the commands. For example:
The semicolon as well as separating commands tells the SCPI parser to expect the command keyword following the semicolon to be at the same hierarchical level (and part of the same command branch) as the keyword preceding the semicolon. The colon immediately following the semicolon tells the SCPI parser to reset the expected hierarchical level to Root.
Linking a complete SCPI Command with other keywords from the same branch and level. Separate the first complete SCPI command from next partial command with the semicolon only. For example take the following portion of the [SENSE] subsystem command tree (the FUNCtion branch):
[SENSe:]
:RESistance <range>,(@<ch_list>) :TEMPerature <sensor>[,<range>,](@<ch_list>) :VOLTage[:DC] [<range>,](@<ch_list>)
Rather than sending a complete SCPI command to set each function, send:
This sets the first eight channels to measure resistance, the next eight channels to measure temperature and the next eight channels to measure voltage.
FUNCtion

Data Types The following table shows the allowable type and sizes of parameter data sent to the module and query data returned by the module. The parameter and returned value type is necessary for programming and is documented in each command in this chapter.
int16 Signed 16-bit integer number.
int32 Signed 32-bit integer number.
uint16 Unsigned 16-bit integer number.
uint32 Unsigned 32-bit integer number.
float32 32-bit floating point number.
float64 64-bit floating point number.
string String of characters (null terminated)
The following section describes the SCPI programming commands for the VT1422A. Commands are listed alphabetically by subsystem and also within each subsystem. A command guide is printed in the top margin of each page. The guide indicates the current subsystem on that page.
Data Types Description

The ABORt subsystem is a part of the VT1422A's trigger system. ABORt resets the trigger system from its Wait For Trigger state to its Trigger Idle state.
Comments • ABORt does not affect any other settings of the trigger system. When the INITiate command is sent, the trigger system will respond just as it did before the ABORt command was sent.
Usage ABORT If INITed, goes to Trigger Idle state. If scanning and/or running algorithms, stops and goes to Trigger Idle State.
ABORt · Subsystem Syntax ABORt
![Page 239 of the VXI VT1422A user manual — ALGorithm[:EXPLicit]:ARRay](/cdn/reader/9e/9e80b65a3c1c97d177a1eec46a7ccf82e797658477697872f7e1e0d805bc440a/images/page-239.webp?w=400)
The ALGorithm command subsystem provides:
[:EXPLicit]
:ARRay ’’,’’, :ARRay? ’’,’’ :DEFine ’’[,], :SCALar ’’,’’, :SCALar? ’’,’’ :SCAN:RATio ’’, :SCAN:RATio? ’’ :SIZe? ’’ [:STATe] ’’,ON | OFF [:STATe]? ’’ :TIME? ’’ :FUNCtion:DEFine ’’,,, :OUTPut:DELay | AUTO :OUTPut:DELay? :UPDate
[:IMMediate] :CHANnel :WINDow :WINDow?
ALGorithm[:EXPLicit]:ARRay ’<alg_name>’,’<array_name>’,<array_block> places values of for algorithm into the Update Queue. This update is then pending until ALG:UPD is sent or an update event (as set by ALG:UPD:CHANNEL) occurs.
ALGorithm · Subsystem Syntax ALGorithm

alg_name string ALG1 - ALG32 | GLOBALS none
array_name string valid 'C' variable name none
array_block block data block of IEEE-754 64-bit floating point
Comments • To send values to a Global array, set the parameter to "GLOBALS." To define a global array see the ALGorithm:DEFine command.
Usage send array values to my_array in ALG4 ALG:ARR 'ALG4','my_array',
send array values to the global array glob_array ALG:ARR 'GLOBALS','glob_array', ALG:UPD force update of variables

ALGorithm[:EXPLicit]:ARRay? ’<alg_name>’,’<array_name>’ returns the contents of from algorithm . ALG:ARR? can return contents of global arrays when specifies 'GLOBALS'.
alg_name string ALG1 - ALG32 | GLOBALS none
array_name string valid 'C' variable name none
Comments • An error is generated if or is not defined.
ALGorithm[:EXPLicit]:DEFine ’<alg_name>’,[<swap_size>,] ’<source_code>’ is used to define control algorithms and global variables.
alg_name string ALG1 - ALG32 | GLOBALS none
swap_size numeric (uint16) 0 - Max Available Algorithm Memory words
source_code string or block data
PIDA... | PIDB. .. | algorithm source none
Comments • Use VXIplug&play function: hpe1422_downloadAlg(...). This function loads an algorithm from a file. The VXIplug&play Soft Front Panel program allows algorithms to be created and tested on-line, then to be stored as files.

-- If included, specifies the number of words of memory to
allocate for the algorithm specified by . The VT1422A will then allocate this much memory again, as an update buffer for this algorithm. Note that this doubles the amount of memory space requested. Think of this as "space1" and "space2" for algorithm . When a replacement algorithm is sent later (it must be sent without the parameter), it will be placed in "space2." An ALG:UPDATE command must be sent for execution to switch from the original to the replacement algorithm. If the algorithm for is again changed, it will be executed from "space1" and so on. Note that must be large enough to contain the original executable code derived from and any subsequent replacement for it or an error 3085, "Algorithm too big," will be generated.
-- If is not included, the VT1422A will allocated just enough
memory for algorithm . Since there is no swapping buffer allocated, this algorithm cannot be changed until a *RST command is sent to clear all algorithms. See "When Accepted and Usage."
-- When is 'ALG1' through 'ALG32':
a. 'PIDA(,)' or
'PIDB(,,)' < _channel> parameters can specify actual input and output channels or they can specify global variables. This can be useful for inter-algorithm communication. Any global variable name used in this manner must have already been defined before this algorithm.
b. Algorithm Language source code representing a custom algorithm.
ALG:DEF 'ALG5','if( First_loop ) O116=0; O116=O116+0.01;,
-- When is 'GLOBALS', Algorithm Language variable declarations.
A variable name must not be the same as an already define user function.
ALG:DEF 'GLOBALS','static float my_glob_scalar, my_glob_array[24];'
The Algorithm Language source code is translated by the VT1422A's driver into an executable form and sent to the module. For 'PIDA' and 'PIDB' the driver sends the stored executable form of these PID algorithms.
ALGorithm
![Page 243 of the VXI VT1422A user manual — ALGorithm[:EXPLicit]:ARRay?](/cdn/reader/9e/9e80b65a3c1c97d177a1eec46a7ccf82e797658477697872f7e1e0d805bc440a/images/page-243.webp?w=400)
code string within single (apostrophes) or double quotes. Because of string length limitations within SCPI and some programming platforms, it is recommended that the quoted string length not exceed a single program line. Examples:
ALG:DEF 'ALG1','O108=I100;' or ALG:DEF 'ALG3','PIDA(I100,O124)'
Definite Length Block Program Data: For longer code segments (like complete custom algorithms), this parameter works well because it specifies the exact length of the data block that will be transferred. The syntax for this parameter type is:
Where the value of is 1-9 and represents the number of <digit(s)>. The value of taken as a decimal integer indicates the number of in the block. Example from "Quoted String" above:
ALG:DEF 'ALG1',#211O108=I100;Ø (where "Ø" is a null byte)
Note For Block Program Data, the Algorithm Parser requires that the <source_code> data end with a null (0) byte. The null byte must be appended to the end of the block's <data byte(s)> and account for it in the byte count <digit(s)> from above. If the null byte is not included or <digit(s)> doesn't include it, the error "Algorithm Block must contain termination '\0'" will be generated.
Indefinite Length Block Program Data: This form terminates the data transfer when it receives an End Identifier with the last data byte. Use this form only when it is certain that the controller platform will include the End Identifier. If it is not included, the ALG:DEF command will "swallow" whatever data follows the algorithm code. The syntax for this parameter type is:
#0 Example from "Quoted String" above:
ALG:DEF 'ALG1',#0O108=I100;Ø (where "Ø" is a null byte)
Note For Block Program Data, the Algorithm Parser requires that the <source_code> data end with a null (0) byte. The null byte must be appended to the end of the block's <data byte(s)>. The null byte is sent with the End Identifier. If the null byte is not included, the error "Algorithm Block must contain termination '\0'" will be generated.
ALGorithm · #

If is not enabled to swap (not originally defined with the parameter included) then both of the following conditions must be true:
a. Module is in Trigger Idle State (after *RST or ABORT and before INIT).
OK *RST ALG:DEF 'GLOBALS','static float My_global;' ALG:DEF 'ALG2','PIDA(I100,O108)' ALG:DEF 'ALG3','My_global = My_global + 1;'
Error INIT ALG:DEF 'ALG5','PIDB(I101,O109,O124.B0)' "Can't define new algorithm while running"
b. The has not already been defined since a *RST command.
Here specifies either an algorithm name or 'GLOBALS'.
OK *RST ALG:DEF 'GLOBALS','static float My_global;'
Error *RST ALG:DEF 'GLOBALS','static float My_global;' "No error" ALG:DEF 'GLOBALS','static float A_different_global' "Algorithm already defined" Because 'GLOBALS' already defined
Error *RST ALG:DEF 'ALG3','PIDA(I100,O108)' "No error" ALG:DEF 'ALG3','PIDB(I100,O108,O124.B0)' "Algorithm already defined" Because 'ALG3' already defined
ALGorithm

If has been enabled to swap (originally defined with the parameter included) then the can be re-defined (do not include now) either while the module is in the Trigger Idle State or while in Waiting-For-Trigger State (INITed). Here is an algorithm name only, not 'GLOBALS'.
OK *RST ALG:DEF 'ALG3',200,'if(O108
Error *RST ALG:DEF 'ALG3',200,'if(O108
Notes 1. Channels referenced by algorithms when they are defined are only placed in the channel list before INIT. The list cannot be changed after INIT. If an algorithm is re-defined (by swapping) after INIT and it references channels not already in the channel list, it will not be able to access the newly referenced channels. No error message will be generated. To make sure all required channels will be included in the channel list, define and redefine all algorithms that will replace by swapping them before INIT is sent. This insures that all channels referenced in these algorithms will be available after INIT. 2. If an algorithm is redefined (by swapping) after INIT and it declares an existing variable, the declaration-initialization statement (e.g., static float my_var = 3.5) will not change the current value of that variable. 3. The driver only calculates overall execution time for algorithms defined before INIT. This calculation is used to set the default output delay (same as executing ALG:OUTP:DELAY AUTO). If an algorithm is swapped after INIT that take longer to execute than the original, the output delay will behave as if set by ALG:OUTP:DEL 0, rather than AUTO (see ALG:OUTP:DEL command). Use the same procedure from note 1 to make sure the longest algorithm execution time is used to set ALG:OUTP:DEL AUTO before INIT.
ALGorithm

ALGorithm[:EXPLicit]:SCALar ’<alg_name>’,’<var_name>’,<value> sets the value of the scalar variable for algorithm into the Update Queue. This update is then pending until ALG:UPD is sent or an update event (as set by ALG:UPD:CHANNEL) occurs.
alg_name string ALG1 - ALG32 or GLOBALS none
var_name string valid 'C' variable name none
value numeric (float32) IEEE-754 32-bit floating point number none
Comments • To send values to a global scalar variable, set the parameter to 'GLOBALS'. To define a scalar global variable see the ALGorithm:DEFine command.
Usage ALG:SCAL 'ALG1','my_var',1.2345 1.2345 to variable my_var in ALG1 ALG:SCAL 'ALG1','another',5.4321 5.4321 to variable another also in ALG1 ALG:SCAL 'ALG3','my_global_var',1.001 1.001 to global variable ALG:UPD update variables from update queue

ALGorithm[:EXPLicit]:SCALar? ’<alg_name>’,’<var_name>’ returns the value of the scalar variable in algorithm .
alg_name string ALG1 - ALG32 none
var_name string valid 'C' variable name none
Comments • An error is generated if or is not defined.
ALGorithm[:EXPLicit]:SCAN:RATio ’<alg_name>’,<num_trigs> specifies the number of scan triggers that must occur for each execution of algorithm . This allows the specified algorithm to be executed less often than other algorithms. This can be useful for algorithm tuning.
Notes 1. The command ALG:SCAN:RATio , does not take effect until an ALG:UPDATE or ALG:UPD:CHAN command is received. This allows multiple ALG:SCAN:RATIO commands to be sent with their effect synchronized with an ALG:UPDATE command. 2. ALG:SCAN:RATio places a variable update request in the Update Queue. More update requests cannot be placed in the Update Queue than are allowed by the current setting of ALG:UPD:WINDOW or a "Too many updates –– send ALG:UPDATE command" error message will be generated.
alg_name string ALG1 - ALG32 none
num_trigs numeric (int16) 1 to 32,767 none

Comments Specifying a value of 1 (the default) causes the named algorithm to be executed each time a trigger is received. Specifying a value of n will cause the algorithm to be executed once every n triggers. All enabled algorithms execute on the first trigger after INIT.
Usage ALG:SCAN:RATIO 'ALG4',16 ALG4 executes once every 16 triggers.
ALGorithm[:EXPLicit]:SCAN:RATio? ’<alg_name>’ returns the number of triggers that must occur for each execution of .
Comments • Since ALG:SCAN:RATIO is valid for an undefined algorithm, ALG:SCAN:RATIO? will return the current ratio setting for even if it is not currently defined.
ALGorithm[:EXPLicit]:SIZE? ’<alg_name>’ returns the number of words of memory allocated for algorithm .
alg_name string ALG1 - ALG32 none
Comments • Since the returned value is the memory allocated to the algorithm, it will only equal the actual size of the algorithm if it was defined by ALG:DEF without its [] parameter. If enabled for swapping (if included at original definition), the returned value will be equal to ()*2.

ALGorithm[:EXPLicit][:STATe] ’<alg_name>’,<enable> specifies that algorithm , when defined, should be executed (ON) or not executed (OFF) during run-time.
Notes 1. The command ALG:STATE , ON | OFF does not take effect until an ALG:UPDATE or ALG:UPD:CHAN command is received. This allows multiple ALG:STATE commands to be sent with a synchronized effect. 2. ALG:STATE places a variable update request in the Update Queue. Do not place more update requests in the Update Queue than are allowed by the current setting of ALG:UPD:WINDOW or a "Too many updates – send ALG:UPDATE command" error message will be generated.
alg_name string ALG1 - ALG32 none
enable boolean (uint16) 0 | 1 | ON | OFF none
Comments • The algorithm specified by may or may not be currently defined. The setting specified will be used when the algorithm is defined.

Usage ALG:STATE 'ALG2',OFF disable ALG2
ALGorithm[:EXPLicit][:STATe]?’<alg_name>’ returns the state (enabled or disabled) of algorithm .
alg_name string ALG1 - ALG32 none
Comments • Since ALG:STATE is valid for an undefined algorithm, ALG:STATE? will return the current state for even if it is not currently defined.
ALGorithm[:EXPLicit]:TIME? ’<alg_name>’ computes and returns a worst-case execution time estimate in seconds.
alg_name string ALG1 - ALG32 or MAIN none
Comments • When is ALG1 through ALG32, ALG:TIME? returns only the time required to execute the algorithm's code.

This command forces algorithms to run internally. If an algorithm contains a run-time error, no data can be returned and the command will not complete (will "hang").
ALGorithm:FUNCtion:DEFine ’<function_name>’,<range>,<offset>, <func_data> defines a custom function that can be called from within a custom algorithm. See “Generating User Defined Functions” on page 487 for full information.
function_name string valid 'C' identifier (if not already defined in 'GLOBALS')
range numeric (float32) see comments none
offset numeric (float32) see comments none
func_data 512 element array of
Comments • By providing this custom function capability, the VT1422A's algorithm language can be kept simple in terms of mathematical capability. This increases speed. Rather than having to calculate high-order polynomial approximations of non-linear functions, this custom function scheme loads a pre-computed look-up table of values into memory. This method allows computing virtually any transcendental or non-linear function in only 17 µs. Resolution is 16 bits.

O116 = squareroot( 2 * Input_val );
Usage ALG:FUNC:DEF 'F1',8,12, send range, offset and table values for function F1
ALGorithm:OUTPut:DELay <delay> sets the delay from Scan Trigger to start of output phase.
delay numeric (float32) 0 - .081 | AUTO (2.5 μs resolution) seconds
Comments • The algorithm output statements (e.g., O115 = Out_val) DO NOT program outputs when they are executed. Instead, these statements write to an intermediate Output Channel Buffer which is read and used for output AFTER all algorithms have executed AND the algorithm output delay has expired (see Figure 7-1). Also note that not all outputs will occur at the same time but will take approximately 10 µs per channel to write.

ALG:OUTP:DEL AUTO sets minimum stable delay ALG:OUTP:DEL? returns this minimum delay ALG:OUTP:DEL additional = desired - minimum
ALGorithm:OUTPut:DELay? returns the delay setting from ALG:OUTP:DEL.
Comments • The value returned will be either the value set by ALG:OUTP:DEL , or the value determined by ALG:OUTP:DEL AUTO.
ALGorithm

ALGorithm:UPDate[:IMMediate] requests an immediate update of any scalar, array, algorithm code, ALG:STATE, or ALG:SCAN:RATIO changes that are pending.
Comments • Variables and algorithms can be accepted during Phase 1-INPUT or Phase 2-UPDATE in Figure 7-1 when INIT is active. All writes to variables and algorithms occur to their buffered elements upon receipt. However, these changes do not take effect until the ALG:UPD:IMM command is processed at the beginning of the UPDATE phase. The update command can be received at any time prior to the UPDATE phase and will be the last command accepted. Note that the ALG:UPD:WINDow command specifies the maximum number of updates to do. If no update command is pending when entering the UPDATE phase, then this time is dedicated to receiving more changes from the system.
1 INPUT
2 UPDATE
3 EXECUTE ALGS
4 OUTPUT
1 INPUT
output table sent to SCP
execute all enabled algorithms
output table sent to SCP
Set by ALG:OUTPUT:DELay (if any)
Trigger Event Trigger Event
Figure 7-1. Updating Variables and Algorithms
The following example shows three scalars being written with the associated update command following. See ALG:UPD:WINDOW.
ALG:SCAL ALG1','Setpoint',25 provide 3 new alg scalar values ALG:SCAL 'ALG1','P_factor',1.3 ALG:SCAL 'ALG2','P_factor',1.7 ALG:UPD update values in alg ALG:SCAL? 'ALG2','Setpoint' query for new updated scalar

ALGorithm:UPDate:CHANnel <dig_chan> This command is used to update variables, algorithms, ALG:SCAN:RATIO, and ALG:STATE changes when the specified digital input level changes state. When the ALG:UPD:CHAN command is executed, the current state of the digital input specified is saved. The update will be performed at the next update phase (UPDATE in Figure 7-1) following the channel's change of digital state. This command is useful to synchronize multiple VT1422As when all variable updates are to be processed at the same time.
dig_chan Algorithm Language channel
b=bit number (include ".B")
Comments • The duration of the level change to the designated bit or channel MUST be at least the length of time between scan triggers. Variable and algorithm changes can be accepted during the INPUT or UPDATE phases (Figure 7-1) when INIT is active. All writes to variables and algorithms occur to their buffered elements upon receipt. However, these changes do not take effect until the ALG:UPD:CHAN command is processed at the beginning of the UPDATE phase. Note that the ALG:UPD:WINDow command specifies the maximum number of updates to do. If no update command is pending when entering the UPDATE phase, then this time is dedicated to receiving more changes from the system.

The following example shows three scalars being written with the associated update command following. When the ALG:UPD:CHAN command is received, it will read the current state of channel 108, bit 0. At the beginning of the UPDATE phase, a check will be made to determine if the stored state of channel 108 bit 0, is different from the current state. If so, the update of all three scalars take effect next Phase 2.
INIT ALG:SCAL 'ALG1','Setpoint',25 ALG:SCAL 'ALG1','P_factor',1.3 ALG:SCAL 'ALG2','P_factor',1.7 ALG:UPD:CHAN 'I108.B0' update on state change at bit zero of 8-bit channel 8
ALGorithm:UPDate:WINDow <num_updates> specifies how many updates may need to be performed during phase 2 (UPDATE). The DSP will process this command and assign a constant window of time for UPDATE.
num_updates numeric (int16) 1 - 512 none
Comments • The default value for <num_updates> is 20. If it is known that fewer updates may be needed, specifying a smaller number will result in slightly greater loop execution speeds.
Usage A maximum of eight variables will need to be updated during run-time.

Notes 1. When the number of update requests exceeds the Update Queue size set with ALG:UPD:WINDOW by one, the module will refuse the request and will issue the error message "Too many updates in queue. Must send UPDATE command." Send ALG:UPDATE, then re-send the update request that caused the error. 2. The "Too many updates in queue..." error can occur before the module is INITialized. It's not uncommon with several algorithms defined to have more variables that need to be pre-set before INIT than will be changed in one update after the algorithms are running. It may be necessary to send INIT with updates pending. The INIT command automatically performs the updates before starting the algorithms.
ALGOrithm:UPDate:WINDow? returns the number of variable and algorithm updates allowed within the UPDATE window.
ALGorithm

ARM
The ARM subsystem is only useful when the TRIGer:SOURce is set to TIMer. With the VT1422A, when the TRIG:SOURCE is set to TIMer, an ARM event must occur to start the timer. This can be something as simple as executing the ARM[:IMMediate] command or it could be another event selected by ARM:SOURCE.
The ARM command subsystem provides:
Figure 7-2 shows the overall logical model of the Trigger System.

Figure 7-2. Logical Trigger Model

[:IMMediate] :SOURce BUS | EXTernal | HOLD | IMMediate | SCP | TTLTrg :SOURce?
ARM[:IMMediate] arms the trigger system when the module is set to the ARM:SOUR BUS or ARM:SOUR HOLD mode.
Usage ARM:IMM After INIT, system is ready for trigger event ARM Same as above (:IMM is optional)
ARM:SOURce <arm_source> configures the ARM system to respond to the specified source.
arm_source discrete (string) BUS | EXT | HOLD | IMM | SCP
Comments • The following table explains the possible choices.
BUS ARM[:IMMediate]
EXTernal “TRG” signal on terminal module
HOLD ARM[:IMMediate]
IMMediate The arm signal is always true (continuous arming).
SCP SCP Trigger Bus (future SCP Breadboard)
TTLTrg The VXIbus TTLTRG lines (n=0 through 7)

While ARM:SOUR is IMM, simply INITiate the trigger system to start a measurement scan.
Usage ARM:SOUR BUS Arm with ARM command ARM:SOUR TTLTRG3 Arm with VXIbus TTLTRG3 line
ARM:SOURce? returns the current arm source configuration. See the ARM:SOUR command for more response data information.
Usage ARM:SOUR? An enter statement return arm source configuration

The Calculate subsystem allows post-processed temperature compensation to be done for voltage readings of the on-board reference thermistor of the VT1586A and for E, J, and T thermocouple types. These commands will normally not be used, instead, the conversions will be done by the DSP on the VT1422A or by the VXIplug&play driver (for VT1529B).
These commands may be chosen if using the VT1586A with the VT1529B and do not have a PC fast enough to keep up with the real-time conversions done in the VXIplug&play driver (hpe1422_readFifoPost_Q() call). In this case, program the VT1422A to do voltage measurements, not temperature measurements, on the reference thermistor, the thermistor’s excitation voltage and the thermocouple channels, then use the CALCulate subsystem commands to perform the conversions off-line.
:TEMPerature
:THERmistor? ,[,resistance] :TCouple? ,,
CALCulate:TEMPerature:THERmistor? <thr_volts>,<exc_volts>[,resistance] calculates the temperature of the VT1586A reference thermistor from the voltage measured across it, the excitation voltage applied and the sum of the resistor values in the divider circuit (see Figure 5-5 on page 173 for the recommended circuit for measuring the VT1586A reference thermistor using the VT1529B). The temperature is returned in ºC.
This command is available with VXIplug&play driver revision A.01.09 or later (revision A.01.06 or later of hpe1422_32.dll).
thr_volts numeric (float32) -16.0 to 16.0 volts
exc_volt numeric (float32) -15.99 to +15.99 volts
resistance numeric (float32) 1800 to 520,000 default value = 400,000
Comments • Returned Value: thermistor temperature in ºC. The data type is float32.

Usage CALC:TEMP:THER? 0.0617,5.0 Compute thermistor temperature with thermistor voltage = 0.0617 V, excitation voltage = 5.0 V and resistance = 400 kΩ
CALCulate:TEMPerature:TCouple? <type>,<thr_temp>,<volt_array> converts an array of thermocouple output voltages into temperatures. The thermocouple type is specified in the parameter and the isothermal reference temperature is specified in the parameter. The temperature values are returned in ºC.
This command is available with VXIplug&play driver revision A.01.09 or later (revision A.01.06 or later of hpe1422_32.dll).
type discrete (string) E | J | T none
thr_temp numeric (float32) -50 to +100 ºC
volt_array see description depends on thermocouple type volts
Comments • The is an IEEE-488.2 definite length block of double (float64) values, which is the array of thermocouple output voltages.
Usage The following code segment shows the VXIplug&play command sequence:
ViSession vi; ViStatus errStatus; ViReal64 degC; /* thermistor temperature */ ViReal64 voltArray[64]; ViReal64 tempArray[64]; ViInt32 howManyRead; ViString command;
/* set up thermocouple measurement. In command below, channel 10001 is the thermistor channel and channel 10000 is the excitation voltage used for the thermistor measurement. */ errStatus = hpe1422_cmd(vi, "SENS:REF THER,5000,(@10000),(@10001)");
/* set up thermocouple channels */ errStatus = hpe1422_cmd(vi, "SENS:FUNC:TEMP:POST TC,J,(@10002:10031)");
/* specify thermistor as reference for thermocouples */

errStatus = hpe1422_cmd(vi, "SENS:REF:CHAN (@10001),(@10002:10031)");
/* Specify those channels to be scanned */ errStatus = hpe1422_cmd(vi, "ROUT:SEQ:DEF (@10001:10031,10000)");
errStatus = hpe1422_cmd(vi, "INIT");
/* read voltages back into array */ errStatus = hpe1422_cmd(vi, "FORM PACK,64");
/* Get unconverted data from the FIFO */ errStatus = hpe1422_readFifo_Q(vi, 32, 64, voltArray, &howManyRead);
/* build command string for thermistor temp calculation, voltArray[0] is thermistor voltage and voltArray[31] is excitation voltage. Bridge resistance is 397,000 ohms. */ sprintf(command, "CALC:TEMP:THER? %lf,%lf,%lf\n", voltArray[0],voltArray[31], 397000);
/* get the thermistor temperature */ errStatus = hpe1422_cmdReal64_Q(vi, command, °C);
/* Get unconverted thermocouple data from the FIFO */ errStatus = hpe1422_calcTempTC_Q(vi, "J", degC, 30, &voltArray[1], tempArray, &howManyRead);
CALCulate

The Calibration subsystem provides for two major categories of calibration.
1. "A/D Calibration"— In these procedures, an external multimeter is used to calibrate the A/D gain on all five of its ranges. The multimeter also determines the value of the VT1422A's internal calibration resistor. The values generated from this calibration are then stored in nonvolatile memory and become the basis for "Working Calibrations. These procedures each require a sequence of several commands from the CALibration subsystem (CAL:CONFIG…, CAL:VALUE… and CAL:STORE ADC). Always execute *CAL? or a CAL:TARE operation after A/D Calibration.
-- "A/D Zero"—This function quickly compensates for any short term A/D
converter offset drift. This would be called the auto-zero function in a conventional voltmeter. In the VT1422A where channel scanning speed is of primary importance, this function is performed only when the CAL:ZERO? command is executed. Execute CAL:ZERO? as often as the control setup will allow.
-- "Channel Calibration"—This function corrects for offset and gain errors
for each module channel. The internal current sources are also calibrated. This calibration function corrects for thermal offsets and component drift for each channel out to the input side of the Signal Conditioning Plug-On (SCP). All calibration sources are on-board and this function is invoked using either the *CAL? or CAL:SETup command.
-- "Channel tare"—This function (CAL:TARE) corrects for voltage offsets in
external system wiring. Here, the user places a short across transducer wiring and the voltage that the module measures is now considered the new "zero" value for that channel. The new offset value can be stored in non-volatile calibration memory (CAL:STORE TARE) but is in effect whether stored or not. System offset constants which are considered long-term should be stored. Offset constants which are measured relatively often would not require non-volatile storage. CAL:TARE automatically executes a *CAL?
-- "Remote Channel Calibration"—This function corrects for gain and offset
errors in each channel of a Remote Signal Conditioning unit (RSC). Each RSC has its own calibration voltage source as well as shorting switches. The calibration source is measured through dedicated analog connections between the VT1539A SCP and the RSC. The source is then used to stimulate the RSCs amplifiers to calibrate gain. The shorting switches provide a zero volt source to calibrate offset.
CALibration


Figure 7-3. Levels of Working Calibration
:CONFigure
:RESistance :VOLTage , ZERO | FS :REMote?
:DATA :DATA? :STORe :SETup :SETup? :STORe ADC | TARE :TARE (@)
:RESet :TARE? :VALue
:RESistance :VOLTage :ZERO?
CALibration:CONFigure:RESistance connects the on-board reference resistor to the Calibration Bus. A four-wire measurement of the resistor can be made with an external multimeter connected to the HCAL, LCAL, HOHM and LOHM terminals on the Terminal Module or the V H, V L, Ω H, and Ω L terminals on the Cal Bus connector when not using a terminal module.
CALibration · Subsystem Syntax CALibration

CAL:CONF:RES connect reference resistor to Calibration Bus *OPC? or SYST:ERR? must wait for CAL:CONF:RES to complete (now measure ref resistor with external DMM) CAL:VAL:RES Send measured value to module CAL:STORE ADC Store cal constants in non-volatile memory (used only at end of complete cal sequence)
CALibration:CONFigure:VOLTage
CALibration:CONFigure:VOLTage <range>,<zero_fs> connects the on-board voltage reference to the Calibration Bus. A measurement of the source voltage can be made with an external multimeter connected to the H Cal and L Cal terminals on the Terminal Module or the V H, V L, Ω H, and Ω L terminals on the Cal Bus connector when not using a terminal module. The <range> parameter controls the voltage level available when the <zero_fs> parameter is set to FSCale (full scale).
range numeric (float32) see comments volts
zero_fs discrete (string) ZERO | FSCale none
Comments • The <range> parameter must be within ±5% of one of the five following values: 0.0625 V dc, 0.25 V dc, 1 V dc, 4 V dc, 16 V dc. This parameter may be specified in millivolts (mv).

CAL:CONF:VOLTAGE .0625, ZERO connect voltage reference to Calibration Bus *OPC? or SYST:ERR? must wait for CAL:CONF:VOLT to complete (now measure voltage with external DMM) CAL:VAL:VOLT Send measured value to module repeat above sequence for full-scale repeat zero and full-scale for remaining ranges (0.25, 1, 4, 16) CAL:STORE ADC Store cal constants in non-volatile memory (used only at end of complete cal sequence)
CALibration:REMote?
CALibration:REMote? (@<ch_list>) calibrates one or more entire Remote Signal Conditioning Units like the VT1529A/B. Only a single channel per RSCU unit need be specified in and all channels on that RSC Unit will be calibrated. <ch_list> can contain multiple channels that specify multiple RSC Units. CAL:REM? returns a value when all RSC Units specified in have been calibrated (see comments below).
ch_list channel list (string) 10000 - 15731 none
Comments • Individual channels in <ch_list> must be for RSCUs, although channel ranges may span non-RSCU channels. If <ch_list> specifies a channel not connected through a VT1539A SCP, a 3007 "Invalid signal conditioning plug-on" error is generated.
Value Meaning Further Action
0 Cal OK None
1 Error during remote calibration
Error information in FIFO buffer.
See failure codes below.
-1 Couldn’t start remote calibration
Query the Error Queue (SYST:ERR?) See error messages starting on page 453.
The data type for this returned value is int16.

a. Offset exceeds limit. Failure code is 1000.0 + (the offset measured) b. Gain error exceeds limit. Failure code is 2000.0 + (ideal gain - actual gain)
CALibration:REMote:DATA <cal_data_block> restores the remote calibration constants acquired using the CAL:REM:DATA? query after a remote calibration operation. These calibration constants go into effect immediately.
cal_data_block definite length block
Comments • CAL:REM:DATA sends to the VT1422A a definite length block of 1024 float64 values that represent an offset and gain pair (in that order) for each of 512 possible remote channels. The block must always be 1024, float64 values (8192 bytes) regardless how many RSCUs are actually connected to the VT1422A. Values for channel positions that are not installed are "place holders."

CALibration:REMote:DATA? extracts the remote calibration constants generated using the CAL:REMote? command.
Comments • CAL:REM:DATA returns a definite length block of 1,024 float32 values that represent a gain and offset pair for each of 512 possible remote channels. The block is always 1,024, float64 values (8192 bytes) regardless how many RSCUs are actually connected to the VT1422A. Values for channel positions where RSCUs are not installed are set to 0.000.
CALibration:REMote:STORe (@<ch_list>) copies the calibration constants held in working RAM since remote calibration into the RSCU’s non-volatile flash memory. Only a single channel per RSCU unit need be specified in and all cal constants for that RSC Unit will be stored. can contain multiple channels that specify multiple RSC Units.
ch_list channel list (string) 10000 - 15731 none
Comments • Individual channels in <ch_list> must be for RSCUs. If ch_list specifies a channel not connected through a VT1539A SCP, a 3007 "Invalid signal conditioning plug-on" error is generated.

CALibration:SETup causes the Channel Calibration function to be performed for every module channel with an analog SCP installed (input or output). The Channel Calibration function calibrates the A/D Offset and the Gain/Offset for these analog channels. This calibration is accomplished using internal calibration references. For more information see *CAL? on page 399.
Comments • CAL:SET performs the same operation as the *CAL? command except that, since it is not a query command, it doesn't tie-up the driver waiting for response data from the instrument. If there are multiple VT1422As in a system, a CAL:SET operation can be started on each and then a CAL:SET? command can be executed to complete the operation on each instrument.
Usage CAL:SET start SCP Calibration on 1st VT1422A: start SCP Calibration on more VT1422As CAL:SET start SCP Calibration on last VT1422A CAL:SET? query for results from 1st VT1422A: query for results from more VT1422As CAL:SET? query for results from last VT1422A
CALibration:SETup? Returns a value to indicate the success of the last CAL:SETup or *CAL? operation. CAL:SETup? returns the value only after the CAL:SETup operation is complete.
Value Meaning Further Action
0 Cal OK None
-1 Cal Error Query the Error Queue (SYST:ERR?) See error message “3026” on page 454
-2 No results available No *CAL? or CAL:SETUP done
The data type for this returned value is int16.
CALibration · Also run *TST?

Usage See CAL:SETup.
CALibration:STORe <type> stores the VT1422A’s most recently measured calibration constants into Flash Memory (Electrically Erasable Programmable Read Only Memory). When
type discrete (string) ADC | TARE none
Comments • The Flash Memory Protect jumper (JM2201) must be set to the enable position before executing this command (See “Disabling Flash Memory Access (Optional)” on page 29).
Usage CAL:STORE ADC Store cal constants in non-volatile memory after A/D calibration CAL:STORE TARE Store channel offsets in non-volatile memory after channel tare

Storing A/D cal constants
perform complete A/D calibration, then... CAL:STORE ADC
Storing channel tare (offset) values
CAL:TARE to correct channel offsets CAL:STORE TARE Optional depending on necessity of long term storage
CALibration:TARE (@<ch_list>) measures offset (or tare) voltage present on the channels specified and stores the value in on-board RAM as a calibration constant for those channels. Future measurements made with these channels will be compensated by the amount of the tare value. Use CAL:TARE to compensate for voltage offsets in system wiring and residual sensor offsets. Where tare values need to be retained for long periods, they can be stored in the module's Flash Memory (Electrically Erasable Programmable Read Only Memory) by executing the CAL:STORe TARE command. For more information, See “Compensating for System Offsets” on page 153.
1. CAL:TARE must not be used on field wiring that is made up of thermocouple wire. The voltage a thermocouple wire pair generates cannot be removed by introducing a short anywhere between its junction and its connection to an isothermal panel (either the VT1422A's Terminal Module or a remote isothermal reference block). Thermal voltage is generated along the entire length of a thermocouple pair where there is any temperature gradient along that length. To CAL:TARE thermocouple wire this way would introduce an unwanted offset in the voltage/temperature relationship for that channel. If a thermocouple wire pair is inadvertently CAL:TARE’d, use CAL:TARE:RESET to reset all tare constants to zero. 2. CAL:TARE should be used to compensate wiring offsets (copper wire, not thermocouple wire) between the VT1422A and a remote thermocouple reference block. Disconnect the thermocouples and introduce copper shorting wires between each channel's HI and LO, then execute CAL:TARE for these channels.
CALibration

ch_list channel list (string) 100 - 15731 none
Comments • CAL:TARE also performs the equivalent of a *CAL? operation. This operation uses the tare constants to set a DAC which will remove each channel offset as "seen" by the module's A/D converter. As an example assume that the system wiring to channel 0 generates a +0.1 volt offset with 0 volts (a short) applied at the Unit Under Test (UUT). Before CAL:TARE the module would return a reading of 0.1 volts for channel 0. After CAL:TARE (@100), the module will return a reading of 0 volts with a short applied at the UUT and the system wiring offset will be removed from all measurements of the signal to channel 0.
Maximum CAL:TARE Offsets
A/D range ± V F.Scale
Offset V Gain x16
Offset V Gain x64
16 4 1 0.25 0.0625
3.2213 0.82101 0.23061 0.07581 0.03792
0.40104 0.10101 0.02721 0.00786 0.00312
0.20009 0.05007 0.01317 0.00349 0.00112
0.04970 0.01220 0.00297 0.00055 n/a

CAL:TARE to correct channel offsets CAL:TARE? to return the success flag from the CAL:TARE operation CAL:STORE TARE Optional depending on necessity of long term storage
CALibration:TARE:RESet
CALibration:TARE:RESet resets the tare calibration constants to zero for all 64 channels. Executing CAL:TARE:RES affects the tare cal constants in RAM only. To reset the tare cal constants in Flash Memory, execute CAL:TARE:RES and then execute CAL:STORE TARE.
CAL:TARE:RESET to reset channel offsets CAL:STORE TARE Optional if necessary to reset tare cal constants in Flash Memory.
CALibration

CALibration:TARE? Returns a value to indicate the success of the last CAL:TARE operation. CAL:TARE? returns the value only after the CAL:TARE operation is complete.
Value Meaning Further Action
0 Cal OK None
-1 Cal Error Query the Error Queue (SYST:ERR?)
See “Error Messages” on page 453.
-2 No results available Perform CAL:TARE
before CAL:TARE?
The data type for this returned value is int16.
CAL:TARE to correct channel offsets CAL:TARE? to return the success flag from the CAL:TARE operation CAL:STORE TARE Optional depending on necessity of long term storage
CALibration:VALue:RESistance
CALibration:VALue:RESistance <ref_ohms> sends the just-measured value of the on-board reference resistor to the module for A/D calibration.
ref_ohms numeric (float32) 7,500 ± 5% ohms
Comments • Use the CAL:CONF:RES command to configure the reference resistor for measurement at the Calibration Bus connector.

CAL:CONF:RES (now measure ref resistor with external DMM) CAL:VAL:RES Send measured value to module
CALibration:VALue:VOLTage
CALibration:VALue:VOLTage <ref_volts> sends the value of the just-measured dc reference source to the module for A/D calibration.
ref_volts numeric (float32) must be within +10% or -50% of the
"expected" source output value
Comments • The "expected" output values for the voltage reference source is: 0.9 * Nominal Range Value for the 0.0625 through 4 volt ranges. 10 volts for the 16 volt range.

CAL:CONF:VOLTAGE 4,FSCALE *OPC? Wait for operation to complete enter statement
(now measure voltage with external DMM) CAL:VAL:VOLT Send measured value to module
CALibration:ZERO? corrects Analog to Digital converter offset for any drift since the last *CAL? or CAL:ZERO? command was executed. The offset calibration takes about 5 seconds and should be done as often as the control set up allows.
Comments • The CAL:ZERO? command only corrects for A/D offset drift (zero). Use the *CAL? common command to perform on-line calibration of channels as well as A/D offset. *CAL? performs gain and offset correction of the A/D and each channel with an analog SCP installed (both input and output).
Value Meaning Further Action
0 Cal OK None
-1 Cal Error Query the Error Queue (SYST:ERR?)
See “Error Messages” on page 453
The data type for this returned value is int16.
Usage CAL:ZERO? enter statement here returns 0 or -1
CALibration

The DIAGnostic subsystem allows special operations to be performed that are not standard in the SCPI language. This includes checking the current revision of the Control Processor's firmware and that it has been properly loaded into Flash Memory.
:CALibration
:SETup
:MODE 0 | 1 :MODE? :TARe
:MODE 0 | 1 :MODE? :CHECksum? :CONNect ,,(@) :CUSTom
:MXB ,,(@) :PIECewise ,,(@) :REFerence
:TEMPerature :IEEE 1 | 0 :IEEE? :INTerrupt
[:LINe] [:LINe]? :OTDetect
[:STATe] 1 | 0 | ON | OFF,(@) [:STATe]? (@) :QUERy
:SCPREAD? :REMote
:DATA ,(@) :DATA? (@) :TEST
:REMote
:NUMber? ,,(@) :SELFtest? (@) :SELFtest? :VERSion?
DIAGnostic · Subsystem Syntax DIAGnostic
![Page 279 of the VXI VT1422A user manual — DIAGnostic:CALibration:SETup[:MODE]?](/cdn/reader/9e/9e80b65a3c1c97d177a1eec46a7ccf82e797658477697872f7e1e0d805bc440a/images/page-279.webp?w=400)
DIAGnostic:CALibration:SETup[:MODE] <mode> sets the type of calibration to use for analog output SCPs like the VT1531A and VT1532A when *CAL? or CAL:SET are executed.
mode boolean (uint 16) 0 | 1 volts
Comments • When is set to 1 (the *RST Default) channels are calibrated using the Least Squares Fit method to provide the minimum error overall (over the entire output range). When is 0, channels are calibrated to provide the minimum error at their zero point. See the SCPs User's Manual for its accuracy specifications using each mode.
Usage set analog DAC SCP cal mode for best zero accuracy
DIAG:CAL:SET:MODE 0 set mode for best zero cal *CAL? start channel calibration
DIAGnostic:CALibration:SETup[:MODE]? returns the currently set calibration mode for analog output DAC SCPs.
Comments • Returns a 1 when channels are calibrated using the Least Squares Fit method to provide the minimum error overall (over the entire output range). Returns a 0 when channels are calibrated to provide the minimum error at their zero point. See the SCPs User's Manual for its accuracy specifications using each mode. The data type is int16.
![Page 280 of the VXI VT1422A user manual — DIAGnostic:CALibration:TARE[:OTDetect]:MODE?](/cdn/reader/9e/9e80b65a3c1c97d177a1eec46a7ccf82e797658477697872f7e1e0d805bc440a/images/page-280.webp?w=400)
DIAGnostic:CALibration:TARE[:OTDetect]:MODE <mode> sets whether Open Transducer Detect current will be turned off or left on (the default mode) during the CAL:TARE operation.
mode boolean (uint 16) 0 | 1 volts
Comments • When is set to 0 (the *RST Default), channels are tare calibrated with their OTD current off. When is 1, channels that have their OTD current on (DIAGnostic:OTDetect ON,(@)) are tare calibrated with their OTD current left on.
Usage configure OTD on during CAL:TARE DIAG:CAL:TARE:MODE 1 set mode for OTD to stay on CAL:TARE? start channel tare cal.
DIAGnostic:CALibration:TARE[:OTDetect]:MODE? returns the currently set mode for controlling Open Transducer Detect current while performing CAL:TARE? operation.
Comments • Returns a 0 when OTD current will be turned off during CAL:TARE?. Returns 1 when OTD current will be left on during CAL:TARE? operation. The data type is int16.

DIAGnostic:CHECksum? performs a checksum operation on Flash Memory. A returned value of 1 indicates that Flash memory contents are correct. A returned value of 0 indicates that the Flash Memory is corrupted or has been erased.
Usage DIAG:CHEC? Checksum Flash Memory, return 1 for OK, 0 for corrupted
DIAGnostic:CONNect <source>,<mode>,(@<ch_list>) configures the VT1529A/B to verify its measurement paths by measuring either the internal calibration source or an internal short for all 32 channels. A matching scan list must be defined, the instrument triggered, and the results read from the FIFO or CVT.
source discrete (string) NORM | SHORt | SOURce none
mode discrete (string) ALL | ALT none
ch_list channel list (string) 10000 - 15700 none

DIAGnostic:CUSTom:MXB <slope>,<offset>,(@<ch_list>) sends the <slope> and <offset> parameters that allow the driver to calculate and download a custom linear Engineering Unit Conversion table to the VT1422A. Use the “[SENSe:]FUNCtion:CUSTom” on page 340 to link this custom EU conversion with channels in .
slope numeric (float32) limit of float32 none
offset numeric (float32) limit of float32 none
ch_list channel list (string) 100 - 163 none
foutp1 foutp0 – ( ) Vin1 Vin0 – ( ) ⁄
DIAGnostic:CUSTom:MXB <slope>,<offset>,(@<ch_list>) sends the and parameters that allow the driver to calculate and download a custom linear Engineering Unit Conversion table to the VT1422A. Use the “[SENSe:]FUNCtion:CUSTom” on page 340 to link this custom EU conversion with channels in .
slope numeric (float32) limit of float32 none
offset numeric (float32) limit of float32 none
ch_list channel list (string) 100 - 163 none
foutp1 foutp0 – ( ) Vin1 Vin0 – ( ) ⁄

Usage DIAG:CUST:MXB 2.1,.19,(@10000:10131) create table for chs 0000-0131 SENS:FUNC:CUST 1,1,(@10000:10131) link custom EU with chs 0000-0131
DIAGnostic:CUSTom:PIECewise <table_range>,<table_block>, (@<ch_list>) downloads a custom piece wise Engineering Unit Conversion table (in ) to the VT1422A. Contact a VXI Technology System Engineer for more information on Custom Engineering Unit Conversion for specific applications.
table_range numeric (float32) 0.015625 | 0.03125 | 0.0625 | 0.125 | 0.25 | 0.5 | 1 | 2 | 4 | 8 | 16 | 32 | 64 volts
table_block definite length block
ch_list channel list (string) 100 - 163 none
Comments • The parameter is a block of 1,024 bytes that define 512 16-bit values. SCPI requires that include the definite length block data header. The VXIplug&play function hpe1415_sendBlockUInt16(ViSession vi, ViString cmd_str, ViInt32 table[ ], ViInt32 size) adds the header automatically.
Usage program puts table constants into array table_block DIAG:CUST:PIEC table_block,(@124:131) send table for chs 24-31 to VT1422A SENS:FUNC:CUST 1,1,(@124:131) link custom EU with chs 24-31 INITiate then TRIGger module

DIAGnostic:CUSTom:REFerence:TEMPerature extracts the current Reference Temperature Register Contents, converts it to 32-bit floating point format and sends it to the FIFO. This command is used to verify that the reference temperature is as expected after measuring it using a custom reference temperature EU conversion table.
Usage the program must have EU table values stored in table_block
download the new reference EU table DIAG:CUST:PIECEWISE ,,(@)
designate channel as reference SENS:FUNC:CUST:REF ,(@)
set up scan list sequence (ch 0 in this case) Now run the algorithm that uses the custom reference conversion table
dump reference temp register to FIFO DIAG:CUST:REF:TEMP
read the diagnostic reference temperature value SENS:DATA:FIFO?
DIAGnostic:IEEE <mode> enables (1) or disables (0) IEEE-754 NAN (Not A Number) and ±INF value outputs. This command was created for the VEE platform.
mode boolean (uint 16) 0 | 1 volts
Comments • When is set to 1, the module can return ±INF and NAN values according to the IEEE-754 standard. When is set to 0, the module returns values as ±9.9E37 for INF and 9.91E37 for NAN.
Usage Set IEEE mode
DIAG:IEEE 1 INF values returned in IEEE standard
![Page 285 of the VXI VT1422A user manual — DIAGnostic:INTerrupt[:LINe]?](/cdn/reader/9e/9e80b65a3c1c97d177a1eec46a7ccf82e797658477697872f7e1e0d805bc440a/images/page-285.webp?w=400)
DIAGnostic:IEEE? returns the currently set IEEE mode.
Comments • The data type is int16.
DIAGnostic:INTerrupt[:LINe] <intr_line> sets the VXIbus interrupt line the module will use.
intr_line numeric (int16) 0 through 7 none
Usage DIAG:INT:LINE 5 Module will interrupt on interrupt line 5
DIAGnostic:INTerrupt[:LINe]? returns the VXIbus interrupt line that the module is set to use.
Comments • Returned Value: Numeric 0 through 7. The data type is int16.
Usage DIAG:INT? Enter statement will return 0 through 7

DIAGnostic:OTDetect[:STATe] <enable>,(@<ch_list>) enables and disables the VT1422A's "Open Transducer Detection" capability (OTD). When Open Transducer Detection is enabled, a very high impedance path connects all SCP channels to a voltage source greater than 16 volts. If an enabled channel has an open transducer, the input signal becomes the source voltage and the channel returns an input over-range value. The value returned is +9.91E+37 (ASCII).
enable boolean (uint16) 1 | 0 | ON | OFF none
ch_list channel list (string) 100 - 163 none
Comments • Open Transducer Detection is enabled/disabled on a whole Signal Conditioning Plug-on basis. Selecting any channel on an SCP selects all channels on that SCP (8 channels per SCP).
If OTD is enabled when *CAL? or CAL:TARE is executed, the module will disable OTD. Wait one minute to allow channels to settle, perform the calibration, and then re-enable OTD.
Usage DIAG:OTD ON,(@100:107,115:123) select OTD for the first and third SCP (complete channel lists for readability only) DIAG:OTD:STATE ON,(@100,115) same function as example above (only first channel of each SCP specified) DIAG:OTDETECT:STATE OFF,(@108) disable OTD for the 8 channels on the second SCP (only first channel of SCP specified)

DIAGnostic:OTDetect[:STATe]? (@<channel>) returns the current state of "Open Transducer Detection" for the SCP containing the specified <channel>.
channel channel list (string) 100 - 163 none
Comments • The <channel> parameter must specify a single channel only.
Usage DIAG:OTD:STATE? (@108) enter statement returns either a 1 or a 0
DIAGnostic:QUERy:SCPREAD? <reg_addr> returns data word from a Signal Conditioning Plug-on register.
reg_addr numeric (int32) 0-65,535 none
Comments • NOTE: This command may not be used while instrument is INITed.
Usage DIAG:QUERY:SCPREAD? 258 read SCP #4 config/status register enter statement here return SCP ID value

DIAGnostic:REMote:USER:DATA <user_data_block>,(@<channel> )stores 894, 16-bit words of arbitrary user data to non-volatile flash memory. A custom format can be designed for information storage. For example, the data could define a 32 by 28 word array to store information about each channel.
user_data_block definite length block
each element -32768 - 32767 none
channel channel list (string) 10000 - 15731 none
Comments • The <channel> parameter must specify a single channel only. The channel must be on an RSCU that supports the DIAG:REM:USER:DATA commands.
DIAGnostic:REMote:USER:DATA? (@<channel>) extracts 894, 16-bit words of arbitrary user data from non-volatile flash memory (stored with the DIAG:REM :USER:DATA command).
channel channel list (string) 10000 - 15731 none
Comments • The <channel> parameter must specify a single channel only. The channel must be on an RSCU that supports the DIAG:REM:USER:DATA commands.

DIAGnostic:TEST:REMote:NUMber? <test_num>,<iterations>,(@<channel>) executes a selected self-test number on a single Remote Signal Conditioning Unit connected through the VT1539A SCP. See DIAG:TEST:REM:SELF? for details of each test.
test_num numeric 1 - 5 none
iterations numeric 1 - 32767 none
channel channel list (string) 10000 - 15731 none
Comments • The parameter specifies the test to perform. For explanations of the test numbers, See “DIAGnostic:TEST:REMote:SELFtest?” on page 288.
Value Meaning Further Action
0 test passed None
1 number of times test
Error information in FIFO buffer.
See error codes below.
-1 Couldn’t start remote self-test
Query the Error Queue (SYST:ERR?) See error messages starting on page 453.
The data type for this returned value is int16.

DIAGnostic:TEST:REMote:SELFtest? (@<ch_list>) executes a self-test on a single Remote Signal Conditioning Unit connected through the VT1539A SCP. An example of an RSCU is the VT1529A/B Remote Strain Bridge Conditioning unit.
channel channel list (string) 10000 - 15731 none
Comments • The parameter may contain only any single channel number on a Remote Signal Conditioning Unit. All channels on that RSCU will be tested.
Value Meaning Further Action
0 Self-test OK None
≥1 Error during remote self-test
Test number of first failure. See comments for test information in FIFO.
-1 Couldn’t start remote self-test
Query the Error Queue (SYST:ERR?) See error messages starting on page 453.
The data type for this returned value is int16.

Test 5: This tests the filter settings on each bank (of eight channels). The method of this test is to ensure that the approximate rise times increase as the filters are changed from 100 Hz to 10 Hz and then to 2 Hz. The list of possible error messages is shown below (NOTE that the 1xx prefix to the channel number denotes the first three digits that uniquely identify which VT1529A/B is to be tested – 100, 101, 108, 109, etc.):
1xx45 – Channel 0: 10 Hz rise time not at least 2x that of 100 Hz. 1xx46 – Channel 8: 10 Hz rise time not at least 2x that of 100 Hz. 1xx47 – Channel 16: 10 Hz rise time not at least 2x that of 100 Hz. 1xx48 – Channel 24: 10 Hz rise time not at least 2x that of 100 Hz. 1xx50 – Channel 0: 2 Hz rise time not at least 5x that of 100 Hz. 1xx51 – Channel 8: 2 Hz rise time not at least 5x that of 100 Hz. 1xx52 – Channel 16: 2 Hz rise time not at least 5x that of 100 Hz. 1xx53 – Channel 24: 2 Hz rise time not at least 5x that of 100 Hz. 1xx55 – Channel 0: 2 Hz rise time not at least 2x that of 10 Hz. 1xx56 – Channel 8: 2 Hz rise time not at least 2x that of 10 Hz. 1xx57 – Channel 16: 2 Hz rise time not at least 2x that of 10 Hz. 1xx58 – Channel 24: 2 Hz rise time not at least 2x that of 10 Hz. The following errors are not likely to occur, but are possible:
1xx32 – Channel 0 100 Hz rise time test took too long. 1xx33 – Channel 8 100 Hz rise time test took too long. 1xx34 – Channel 16 100 Hz rise time test took too long. 1xx35 – Channel 24 100 Hz rise time test took too long. 1xx36 – Channel 0 10 Hz rise time test took too long. 1xx37 – Channel 8 10 Hz rise time test took too long. 1xx38 – Channel 16 10 Hz rise time test took too long. 1xx39 – Channel 24 10 Hz rise time test took too long. 1xx40 – Channel 0 2 Hz rise time test took too long. 1xx41 – Channel 8 2 Hz rise time test took too long. 1xx42 – Channel 16 2 Hz rise time test took too long. 1xx43 – Channel 24 2 Hz rise time test took too long.
a. Unable to communicate with VT1529A/B (is cable connected?) b. Invalid channel number or multiple channels specified c. Not enough memory to allocate internal arrays to hold data d. VT1422A is currently performing a calibration operation. e. VT1422A is currently performing a measurement operation.
Usage DIAG:REM:TEST? (@10000:10900) self-test 4 RSCs at chs 00, 01, 08, and 09
DIAGnostic

DIAGnostic:VERSion? returns the version of the firmware currently loaded into Flash Memory. The version information includes manufacturer, model, serial number, firmware version, and date.
Usage DIAG:VERS? Returns version string as shown above
DIAGnostic

Subsystem Syntax FETCh? returns readings stored in VME memory.
Comments • This command is only available in systems using an Agilent/HP E1405B/06A command module.
FETCh?

Use Sequence MEM:VME:ADDR #H300000 MEM:VME:SIZE #H100000 1 megabyte (MB) or 262,144 readings MEM:VME:STAT ON
° (set up VT1422A for scanning) × TRIG:SOUR IMM let unit trigger on INIT INIT program execution remains here until VME memory is full or the VT1422A has stopped taking readings FORM REAL,64 affects only the return of data FETCH?
FETCh? · ×

The FORMat subsystem provides commands to set and query the response data format of readings returned using the [SENSe:]DATA:FIFO:…? commands.
[:DATA] [,] [:DATA]?
FORMat[:DATA] <format>[,<size>] sets the format for data returned using the [SENSe:]DATA:FIFO:…?, [SENSe:]DATA:CVTable and FETCh? commands.
format discrete (string) REAL | ASCii | PACKed none
size numeric for ASCii, 7 for REAL, 32 | 64
Comments • The REAL format is IEEE-754 Floating Point representation.

Format IEEE Term Value Meaning
ASCii +INF +9.9E37 Positive Overload
-INF -9.9E37 Negative Overload
NaN +9.91E37 No Reading
REAL,32 +INF 7F80000016 Positive Overload
-INF FF80000016 Negative Overload
NaN 7FFFFFFF16 No Reading
REAL,64 +INF 7FF000...0016 Positive Overload
-INF FFF000..0016 Negative Overload
NaN 7FFFFF...FF16 No Reading
PACKed,64 +INF 47D2 9EAD 3677 AF6F16 (+9.0e3710) Positive Overload
-INF C7D2 9EAD 3677 AF6F16 (-9.0e3710) Negative Overload
NaN 47D2 A37D CED4 614316 (+9.91e3710) No Reading
Table 7-1. Data Formats
Usage FORMAT REAL Set format to IEEE 32-bit Floating Point FORM REAL, 64 Set format to IEEE 64-bit Floating Point FORMAT ASCII, 7 Set format to 7-bit ASCII
FORMat
![Page 297 of the VXI VT1422A user manual — FORMat[:DATA]?](/cdn/reader/9e/9e80b65a3c1c97d177a1eec46a7ccf82e797658477697872f7e1e0d805bc440a/images/page-297.webp?w=400)
FORMat[:DATA]? returns the currently set response data format for readings.
Comments • Returned Value: Returns REAL, +32 | REAL, +64 | PACK, +64 | ASC, +7. The data type is string, int16.
Usage FORMAT? Returns REAL, +32 | REAL, +64 | PACK, +64 | ASC, +7
FORMat
![Page 298 of the VXI VT1422A user manual — INITiate[:IMMediate]](/cdn/reader/9e/9e80b65a3c1c97d177a1eec46a7ccf82e797658477697872f7e1e0d805bc440a/images/page-298.webp?w=400)
The INITiate command subsystem moves the VT1422A from the Trigger Idle State to the Waiting-For-Trigger State. When initiated, the instrument is ready to receive one (:IMMediate) or more (depending on TRIG:COUNT) trigger events. On each trigger, the module will perform one control cycle which includes reading analog and digital input channels (Input Phase), executing all defined algorithms (Calculate Phase) and updating output channels (Output Phase). See the TRIGger subsystem to specify the trigger source and count.
[:IMMediate]
INITiate[:IMMediate] changes the trigger system from the Idle state to the Wait-For- Trigger state. When triggered, one or more (depending on TRIGger:COUNt) trigger cycles occur and the instrument returns to the Trigger Idle state.
Comments • INIT:IMM clears the FIFO and Current Value Table.
Usage INIT Both versions same function INITIATE:IMMEDIATE
INITiate · Subsystem Syntax INITiate

The INPut subsystem controls configuration of programmable input Signal Conditioning Plug-Ons (SCPs).
:FILTer
[:LPASs]
:FREQuency ,(@) :FREQuency? (@) [:STATe] 1 | 0 | ON | OFF,(@) [:STATe]? (@) :GAIN ,(@) :GAIN? (@) :LOW ,(@) :LOW? (@) :POLarity NORMal | INVerted,(@) :POLarity? (@)
INPut:FILTer[:LPASs]:FREQuency <cutoff_freq>,(@<ch_list>) sets the cutoff frequency of the filter on the specified channels.
MIN | MAX
ch_list channel list (string) 100 - 15731 none
Comments • The <cutoff_freq> parameter may be specified in kilohertz (kHz). A programmable Filter in either an SCP or a Remote Signal Conditioning unit (RSC) has a choice of several discrete cutoff frequencies. The cutoff frequency set will be the one closest to the value specified by <cutoff_freq>.

Usage INP:FILT:FREQ 100,(@100:119) Set cutoff frequency of 100 Hz for first 20 channels INPUT:FILTER:FREQ 2,(@15622) Set cutoff frequency of 2 Hz for RSC channel 15622
INPut:FILTer[:LPASs]:FREQuency? (@<channel>) returns the cutoff frequency currently set for channel. Non-programmable SCP channels may be queried to determine their fixed cutoff frequency. If the channel is not on an input SCP, the query will return zero.
channel channel list (string) 100 - 15731 none
Comments • The <channel> parameter must specify a single channel only.
Usage INPUT:FILTER:LPASS:FREQUENCY? (@155) Check cutoff freq on channel 55 INP:FILT:FREQ? (@10024) Check cutoff freq on RSC channel 0024

INPut:FILTer[:LPASs][:STATe] <enable>,(@<ch_list>) enables or disables a programmable filter SCP or RSC channel. When disabled (<enable> = OFF), these channels are in their "pass through" mode and provide only a 20 kHz, single-pole low pass filter. When re-enabled (<enable> = ON), the SCP channel reverts to its previously programmed setting.
enable boolean (uint16) 1 | 0 | ON | OFF none
ch_list channel list (string) 100 - 15731 none
Usage INPUT:FILTER:STATE ON,(@115,117) Channels 115 and 117 return to previously set (or default) cutoff frequency INP:FILT OFF,(@10000:1131) Set RSC channels 0000-0131 to "pass-through" state
INPut:FILTer[LPASs][:STATe]? (@<channel>) returns the currently set state of filtering for the specified channel. If the channel is not on an input SCP or RSC, the query will return zero.
channel channel list (string) 100 - 15731 none
Comments • Returned Value: Numeric value either 0 (off or "pass-through") or 1 (on). The data type is int16.
Usage INPUT:FILTER:LPASS:STATE? (@115) Enter statement returns either 0 or 1 INP:FILT? (@12424) check filter cut-off on RSC channel 2424

INPut:GAIN <gain>,(@<ch_list>) sets the channel gain on programmable amplifier SCP or RSCU.
Note An important thing to understand about input amplifier SCPs and RSCUs is that given a fixed input value at a channel, changes in channel gain do not change the value returned from that channel. The DSP chip (Digital Signal Processor) keeps track of SCP gain and A/D range amplifier settings and "calculates" a value that reflects the signal level at the input terminal. The only time this in not true is when the SCP gain chosen would cause the output of the SCP amplifier to be too great for the selected A/D range. As an example, with SCP gain set to 64, an input signal greater than ±0.25 volts would cause an over-range reading even with the A/D set to its 16 volt range.
MIN | MAX
ch_list channel list (string) 100 - 163 none
Comments • A programmable amplifier SCP or RSC has a choice of several discrete gain settings. The gain set will be the one closest to the value specified by <gain>. Refer to the SCP manual for specific information on the SCP being programming. Sending MAX will program the highest gain available with the SCP installed. Sending MIN will program the lowest gain.
Usage INP:GAIN 8,(@100:119) Set gain of 8 for first 20 channels INPUT:GAIN 64,(@155) Set gain of 64 for SCP channel 55

INPut:GAIN? (@<channel>) returns the gain currently set for channel. If the channel is not on an input SCP, the query will return zero.
channel channel list (string) 100 - 163 none
Usage INPUT:GAIN? (@105) Check gain on channel 5 INP:GAIN? (@100) Check gain on channel 0
INPut:LOW <wvolt_type>,(@<ch_list>) controls the connection of input LO at a Strain Bridge SCP channel specified by . LO can be connected to the Wagner Voltage tap for quarter or half bridge configurations or disconnected for full bridges. Note the VT1529A/B’s Wagner Voltage connection is only controlled by the command “[SENSe:]STRain:BRIDge[:TYPE]” on page 362.
wvolt_type discrete (string) FLOat | WVOLtage none
ch_list channel list (string) 100 - 163 none
Usage INP:LOW WVOL (@100:103,116:119) connect LO of channels 0 through 3 and 16 through 19 to Wagner Ground.

INPut:LOW? (@<channel>) returns the LO input configuration for the channel specified by . This command is for strain SCPs only, not for VT1529A/B.
channel channel list (string) 100 - 163 none
Comments • The <channel> parameter must specify a single channel only.
Usage INP:LOW? (@103) enter statement will return either FLO or WV for channel 3
INPut:POLarity <mode>,<ch_list> sets logical input polarity on a digital SCP channel.
mode discrete (string) NORMal | INVerted none
ch_list string 100 - 163 none
Comments • If the channels specified are on an SCP that doesn't support this function, an error will be generated. See the SCP's User's Manual to determine its capabilities.
Usage INP:POL INV,(@140:143) invert first 4 channels on SCP at SCP position 5. Channels 40 through 43

INPut:POLarity? <channel> returns the logical input polarity on a digital SCP channel.
channel string 100 - 163 none
Comments • The parameter must specify a single channel.

The MEASure subsystem provides convenient setup-and-execution for some pre-measurement strain operations.
:VOLTage
:EXCitation (@) :UNSTrained (@)
MEASure:VOLTage:EXCitation? (@<ch_list>) This command automatically configures the VT1422A to measure the bridge excitation voltage at each channel in and starts a measurement scan. It averages 32 measurements for each channel and the averaged values are stored internally for later use by the strain Engineering Unit Conversion process. The average of each channel’s reading is also sent to the FIFO buffer for use in user defined conversion processes. The command returns a single value which is the number of readings sent to the FIFO.
The sequence of individual commands to approximate this operation is
TRIGger:COUNt 1 one time through scan list ROUTe:SEQuence:DEFine (@<ch_list>) input the list of channels to measure SENSe:FUNCtion:VOLTage [<range>,](@<ch_list>) set measurement function to volts SENSe:STRain:EXCitation:STATE ON,(@<ch_list>) turn on excitation supplies SENSe:STRain:CONNect EXCite,(@<ch_list>) connect channel sense to excitation supply INIT start measurement scan SENSe:DATA:FIFO:COUNT? query for number of readings in FIFO enter statement here to return FIFO reading SENSe:DATA:FIFO:PART? read excitation values from the FIFO enter statement to for block data from FIFO
next the excitation voltage values acquired above must be sent back to the VT1422A by executing the following command once for each channel in <ch_list> above: SENSe:STRain:EXCitation <voltage_value>,(@<channel>)
MEASure · Subsystem Syntax MEASure

ch_list channel list (string) 10000 - 15731 none
Comments • This command is only for use on channels measured with the VT1529A/B. If executed on channels connected to other strain SCPs, a 3007 "Invalid signal conditioning plug-on" error message will be generated
Usage MEAS:VOLT:EXC? (@10000:10931) determine excitation voltage on 128 strain channels through VT1539As in SCP positions 0 and 1 SENS:DATA:FIFO:RESET As in most cases, since the values have been sent to the strain EU conversion, the individual excitation values do not need to be seen.

MEASure:VOLTage:UNSTrained? (@<ch_list>) This command automatically configures the VT1422A to measure the bridge output voltage at each channel in <ch_list> and initiates a measurement scan. It averages 32 measurements for each channel and the averaged values are stored for later use by the strain Engineering Units conversion process on these channels. The strain bridges must be unstrained during this time. The average of each channel’s reading is also sent to the FIFO buffer to be viewed later if desired. The command returns a single value which is the number of readings sent to the FIFO.
The sequence of individual commands to approximate this operation is
TRIGger:COUNt 1 one time through scan list ROUTe:SEQuence:DEFine (@<ch_list>) input the list of channels to measure SENSe:FUNCtion:VOLTage [<range>,](@<ch_list>) set measurement function to volts SENSe:STRain:EXCitation:STATE ON,(@<ch_list>) turn on excitation supplies SENSe:STRain:CONNect BRIDge,(@<ch_list>) connect channel sense to bridge output INIT start measurement scan SENSe:DATA:FIFO:COUNT? query for number of readings in FIFO enter statement here to return FIFO reading <count> SENSe:DATA:FIFO:PART? <count> read unstrained voltage readings from the FIFO buffer enter statement to for block data from FIFO
next the unstrained voltage values acquired above must be sent back to the VT1422A by executing the following command once for each channel in <ch_list> above: SENSe:STRain:UNSTrained <voltage_value>,(@channel)
ch_list channel list (string) 10000 - 15731 none
Comments • This command is only for use on channels measured with the VT1529A/B. If executed on channels connected to other strain SCPs, a 3007 "Invalid signal conditioning plug-on" error message will be generated.

Usage MEAS:VOLT:UNST? (@10000:10931) determine unstrained voltage on 128 strain channels through VT1539As in SCP positions 0 and 1 SENS:DATA:FIFO:RESET As in most cases, since the values have been sent to the strain EU conversion, the individual unstrained values do not need to be seen.
MEASure

The MEMory subsystem allows using VME memory as an additional reading storage buffer.
:ADDRess :ADDRess? :SIZE :SIZE? :STATe 1 | 0 | ON | OFF :STATe?
Use Sequence *RST MEM:VME:ADDR #H300000 MEM:VME:SIZE #H100000 1 MB or 262,144 readings MEM:VME:STAT ON
* * (set up VT1422A for scanning) * TRIG:SOUR IMM let unit trigger on INIT INIT *OPC? program execution remains here until VME memory is full or the VT1422A has stopped taking readings FORM REAL,64 affects only the return of data FETCH? return data from VME memory
MEMory · Subsystem Syntax MEMory

MEMory:VME:ADDRess <A24_address> sets the A24 address of the VME memory card to be used as additional reading storage.
A24_address numeric valid A24 address none
Comments • This command is only available in systems using an Agilent/HP E1405B/06A command module.
Usage MEM:VME:ADDR #H400000 Set the address for the VME memory card to be used as reading storage
MEMory:VME:ADDRess? returns the address specified for the VME memory card used for reading storage.
Comments • Returned Value: numeric.
Usage MEM:VME:ADDR? Returns the address of the VME memory card.

MEMory:VME:SIZE <mem_size> Specifies the number of bytes of VME memory to allocate for additional reading storage.
mem_size numeric to limit of available VME memory none
Comments • This command is only available in systems using an Agilent/HP E1405B/6A command module.
Usage MEM:VME:SIZE 32768 Allocate 32 kilobytes (kB) of VME memory to reading storage (8192 readings)
MEMory:VME:SIZE? returns the amount (in bytes) of VME memory allocated to reading storage.
Comments • This command is only available in systems using an Agilent/HP E1405B/06A command module.
Usage MEM:VME:SIZE? Returns the number of bytes allocated to reading storage.

MEMory:VME:STATe <enable> enables or disables use of the VME memory card as additional reading storage.
enable boolean (uint16) 1 | 0 | ON | OFF none
Comments • This command is only available in systems using an Agilent/HP E1405B/06A command module.
Usage MEMORY:VME:STATE ON enable VME card as reading storage MEM:VME:STAT 0 Disable VME card as reading storage
MEMory:VME:STATe? returned value of 0 indicates that VME reading storage is disabled. Returned value of 1 indicates VME memory is enabled.
Comments • This command is only available in systems using an Agilent/HP E1405B/06A command module.
Usage MEM:VME:STAT? Returns 1 for enabled, 0 for disabled

The OUTPut subsystem is involved in programming source SCPs as well as controlling the state of VXIbus TTLTRG lines 0 through 7.
:CURRent
:AMPLitude ,(@) :AMPLitude? (@) [:STATe] 1 | 0 | ON | OFF,(@) [:STATe]? (@) :POLarity NORMal | INVerted,(@) :POLarity? (@) :SHUNt 1 | 0 | ON | OFF,(@) :SHUNt? (@)
:SOURce INT | EXT,(@) :SOURce? (@) :SHUNt? (@) :TTLTrg
:SOURce TRIGger | FTRigger | SCPlugon | LIMit :SOURce? :TTLTrg
[:STATe] 1 | 0 | ON | OFF [:STATe]? :TYPE PASSive | ACTive,(@) :TYPE? (@) :VOLTage :AMPLitude ,(@) :AMPLitude? (@)
OUTPut:CURRent:AMPLitude <amplitude>,(@<ch_list>) sets the VT1505A Current Source SCP channels specified by <ch_list> to either 488 µA or 30 µA. This current is typically used for four-wire resistance and resistance temperature measurements.
OUTPut · Subsystem Syntax OUTPut

amplitude numeric (float32) MIN | 30E-6 | MAX | 488E-6 A dc
ch_list channel list (string) 100 - 163 none
Comments • Select 488E-6 (or MAX) for measuring resistances of less than 8000 Ω. Select 30E-6 (or MIN) for resistances of 8000 Ω and above. <amplitude> may be specified in µA (ua).
MAX (488 μA) for RTD,85 | 92 and THER,2250
MIN (30 μA) for THER,5000 | 10000
Usage OUTP:CURR:AMPL 488ua,(@116:123) Set Current Source SCP at channels 16 through 23 to 488 µA OUTP:CURR:AMPL 30E-6,(@105) Set Current Source SCP at channel 5 to 30 µA
OUTPut:CURRent:AMPLitude? (@<channel>) returns the range setting of the Current Source SCP channel specified by channel.
channel channel list (string) 100 - 163 none
Comments • The <channel> parameter must specify a single channel only.

Usage OUTP:CURR:AMPLITUDE? (@163) Check SCP current set for channel 63 (returns +3.0E-5 or +4.88E-4)
OUTPut:CURRent[:STATe] <enable>,(@<ch_list>) enables or disables current source on channels specified in .
enable boolean (uint16) 1 | 0 | ON | OFF none
ch_list channel list (string) 100 - 163 none
Comments • OUTP:CURR:STAT does not affect a channel's amplitude setting. A channel that has been disabled, when re-enabled sources the same current set by the previous OUTP:CURR:AMPL command.
Usage OUTP:CURR OFF,(@100,108) turn off current source channels 0 and 8

OUTPut:CURRent[:STATe]? (@<channel>) returns the state of the Current Source SCP channel specified by . If the channel is not on a VT1505A Current Source SCP, the query will return zero.
channel channel list (string) 100 - 163 none
Comments • The <channel> parameter must specify a single channel only.
Usage OUTP:CURR? (@108) query for state of Current SCP channel 8 execute enter statement here enter query value, either 1 or 0
OUTPut:POLarity <select>,(@<ch_list>) sets the polarity on digital output channels in <ch_list>.
select discrete (string) NORMal | INVerted none
ch_list string 100 - 163 none
Comments • If the channels specified do not support this function, an error will be generated.
Usage OUTP:POL INV,(@144) invert output logic sense on channel 44

OUTPut:POLarity? (@<channel>) returns the polarity on the digital output channel in .
channel string 100 - 163 none
Comments • The <channel> parameter must specify a single channel.
OUTPut:SHUNt <enable>,(@<ch_list>) adds shunt resistance to one leg of bridge on Strain Bridge Completion SCPs and the VT1529A/B Remote Strain Bridge unit. This can be used for diagnostic purposes and characterization of bridge response.
enable boolean (uint16) 0 | 1 | ON | OFF none
ch_list channel list (string) 100 - 15731 none
Comments • If <ch_list> specifies a non strain SCP, a 3007 "Invalid signal conditioning plug-on" error is generated.
Usage OUTP:SHUNT 1,(@116:119) add shunt resistance at channels 16 through 19

OUTPut:SHUNt? (@<channel>) returns the status of the shunt resistance on the specified Strain SCP or RSC channel.
channel channel list (string) 100 - 15731 none
Comments • The <channel> parameter must specify a single channel only.
Usage OUTPUT:SHUNt? (@116) Check status of shunt resistance on channel 16 OUTPUT:SHUNt? (@10124) Check status of shunt resistance on VT1529A/B channel 0124
OUTPut:SHUNt:SOURce <select>,(@<ch_list>) selects the source of the bridge shunt resistance for a VT1529A/B Remote Strain Bridge Conditioning unit. The VT1529A/B has an internal shunt resistor and also supports an external user supplied resistor.
select discrete (string) INTernal | EXTernal none
ch_list channel list (string) 10000 - 15731 none
Comments • If <ch_list> specifies a non VT1529A/B strain SCP, a 3007 "Invalid signal conditioning plug-on" error is generated.

Usage OUTP:SHUNT:SOUR EXT,(@10000,10800) select user supplied shunt resistor on VT1529As connected to channels 0, 1, 8, and 9
OUTPut:SHUNt:SOURce? (@<channel>) returns the source of the shunt resistance on the specified VT1529A/B Strain channel.
channel channel list (string) 10000 - 15731 none
Comments • The <channel> parameter must specify a single channel only and since there is a single shunt resistor for all channels on a VT1529A/B, it can be any channel on the VT1529A/B.
Usage OUTPUT:SHUNT:SOURCE? (@11600) Check source of shunt resistance on VT1529A/B connected to channel 16

OUTPut:TTLTrg:SOURce <trig_source> selects the internal source of the trigger event that will operate the VXIbus TTLTRG lines.
trig_source discrete (string) ALGorithm | TRIGger | FTRigger | SCPlugon none
Comments • The following table explains the possible choices.
ALGorithm Generated by the Algorithm Language function "interrupt()."
FTRigger Generated on the First Trigger of a multiple "counted scan" (set by TRIG:COUNT ).
SCPlugon Generated by a Signal Conditioning Plug-on (SCP). Do not use this when Sample-and-Hold SCPs are installed.
TRIGger Generated every time a scan is triggered (see TRIG:SOUR ).
Usage OUTP:TTLT:SOUR TRIG toggle TTLTRG line every time module is triggered (use to trigger other VT1422As)
OUTPut:TTLTrg:SOURce? returns the current setting for the TTLTRG line source.
Usage OUTP:TTLT:SOUR? enter statement will return on of FTR, SCP or TRIG
![Page 322 of the VXI VT1422A user manual — OUTPut:TTLTrg<n>[:STATe]?](/cdn/reader/9e/9e80b65a3c1c97d177a1eec46a7ccf82e797658477697872f7e1e0d805bc440a/images/page-322.webp?w=400)
OUTPut:TTLTrg<n>:STATe <ttltrg_cntrl> specifies which VXIbus TTLTRG line is enabled to source a trigger signal when the module is triggered. TTLTrg can specify line 0 through 7. For example, …:TTLTRG4 or TTLT4 for VXIbus TTLTRG line 4.
ttltrg_cntrl boolean (uint16) 1 | 0 | ON | OFF none
Comments • Only one VXIbus TTLTRG line can be enabled simultaneously.
Usage OUTP:TTLT2 ON Enable TTLTRG2 line to source a trigger OUTPUT:TTLTRG7:STATE ON Enable TTLTRG7 line to source a trigger
OUTPut:TTLTrg<n>[:STATe]? returns the current state for TTLTRG line .
Comments • Returned Value: Returns 1 or 0. The data type is int16.
Usage OUTP:TTLT2? See if TTLTRG2 line is enabled (returns 1 or 0) OUTPUT:TTLTRG7:STATE? See if TTLTRG7 line is enabled

OUTPut:TYPE <select>,(@<ch_list>) sets the output drive characteristic for digital SCPs with programmable channels.
select discrete (string) PASSive | ACTive seconds
ch_list string 100 - 163 none
Comments • If the channels specified are on an SCP that doesn't support this function an error will be generated. See the SCP's User's Manual to determine its capabilities.
Usage OUTP:TYPE PASS,(@140:143) make channels 40 to 43 passive pull-up
OUTPut:TYPE? <channel> returns the output drive characteristic for a digital channel.
channel string 100 - 163 none
Comments • The <channel> parameter must specify a single channel.

OUTPut:VOLTage:AMPLitude <amplitude>,(@<ch_list>) sets the excitation voltage on programmable Strain Bridge Completion SCPs pointed to by (the VT1511A for example).
amplitude numeric (float32) MIN | 0 |1 | 2 | 5 | 10 | MAX none
ch_list channel list (string) 100 - 163 none
Comments • To turn off excitation voltage (when using external voltage source) program <amplitude> to 0.
Usage OUTP:VOLT:AMPL 5,(@116:119) set excitation voltage for channels 16 through 19
OUTPut:VOLTage:AMPLitude? (@<channel>) returns the current setting of excitation voltage for the channel specified by . If the channel is not on a VT1511A SCP, the query will return zero.
Comments • The <channel> parameter must specify a single channel only.
Usage OUTP:VOLT:AMPL? (@103) returns current setting of excitation voltage for channel 3

The ROUTe subsystem provides a method to define the sequence of channels in the VT1422A’s Analog Input scan list. Note that any analog input channels specified in an algorithm definition also affect the contents of this scan list. Queries are provided to determine the overall channel list definition including analog output channels as well as digital input and output channels.
:SEQuence
:DEFine (@<ch_list>) :DEFine? :POINts?
ROUTe:SEQuence:DEFine (@<ch_list>) adds channels to the analog input scan list. (All digital and analog output channels must be specified in the algorithm.) Channels specified with ROUT:SEQ:DEF will be scanned each time the VT1422A receives a scan trigger. By default, the readings taken will be sent to the Current Value Table (CVT) and FIFO buffer. A special form of channel specifier allows changing the default data destinations (see comments below). Any algorithms defined can also add channels to the analog input scan list.
ch_list channel list (string) 100 - 15731 none
Comments • The parameter must contain analog input channels only.

Data Destination Effect on Reading 1 Reading sent to Current Value Table (CVT) 2 Reading sent to FIFO Buffer 3 Reading sent to CVT and FIFO 0 Reading not recorded (neither CVT or FIFO)
Example Channel lists (same applies to On-board channels):
ROUT:SEQ:DEF (@1(10000:10931)) 1st 128 remote Chs sent to CVT ROUT:SEQ:DEF (@2(10000:10931)) 1st 128 remote Chs sent to FIFO buffer ROUT:SEQ:DEF (@3(10000:10931)) 1st 128 remote Chs sent to CVT & FIFO ROUT:SEQ:DEF (@0(10000:10931)) 1st 128 remote Chs discarded
SCP position 0 SCP position 1 SCP position 3 SCP position 2
8 on-board channels 8 8 8
on-board channels on-board channels on-board channels
64 Remote Channels 10000-31 10100-31 64 Remote Channels 11600-31 11700-31
64 Remote Channels 10800-31 10900-31 64 Remote Channels 12400-31 12500-31
SCP position 4 SCP position 7 SCP position 6 SCP position 5
on-board channels on-board channels on-board channels on-board channels
64 Remote Channels 13200-31 13300-31 64 Remote Channels 14800-31 14900-31
64 Remote Channels 14000-31 14100-31 Only 54 Channels 15600-31 15700-21 CVT298 CVT362 CVT426 CVT490
CVT330 CVT394 CVT458
On-board channel CVT Addressing (1nn)
Remote channel CVT Addressing (1nnee)
SCP_pos X 64 + SCP_chan + 10 = int(nn/8) X 64 + (nn mod 8) + 10
SCP_pos X 64 + SCP_chan X 32 + Rem_chan + 10
= int(nn/8) X 64 + (nn mod 8) X 32 + ee + 10
Figure 7-4. Channel Number vs. CVT Element
ROUTe · unavailable · 502 Usable Elements

Usage Define mix of Remote and on-board channels. First 128 Remote channels default to FIFO and CVT, next 64 Remote channels are directed to FIFO only and last eight On-board channels default to FIFO and CVT.
ROUTe:SEQuence:DEFine?
ROUTe:SEQuence:DEFine? <type> returns the sequence of channels defined in the scan list.
type (string) AIN | AOUT | DEST | DIN | DOUT none
Comments • The channel list contents and sequence are determined primarily by channel references in the ROUT:SEQ:DEF command and in any algorithms currently defined. The SENS:REF:CHANNELS and SENS:CHAN:SETTLING commands also effect the scan list contents.
"AIN" selects the Analog Input channel list (this is the Scan List). "AOUT" selects the Analog Output channel list. "DIN" selects the Digital Input channel list. "DOUT" selects the Digital Output channel list.
"DEST" does not requesting the contents of a channel list type, rather it requests the Data Destination number for each channel in the "AIN" channel list.

When the parameter is "AIN," "AOUT," "DIN," or "DOUT," each value returned represents a channel number. When the parameter is "DEST", each value returned is the data destination code for a channel in the "AIN" list. The destination codes are: 1 = Reading will be sent to CVT only 2 = Reading will be sent to FIFO only 3 = Reading will be sent to CVT and FIFO 0 = Reading will be taken but not recorded (neither CVT or FIFO) -1 = Channel is referenced in algorithm. Algorithm specifies destination.
Usage ROUT:SEQ:DEF? AIN query for analog input (Scan List) sequence
ROUTe:SEQuence:POINts? <type> returns the number of channels defined in the selected channel list types.
type (string) AIN | AOUT | DIN | DOUT none
Comments • The channel list contents and sequence are determined by channel references in the algorithms currently defined.
"AIN" selects the Analog Input list. "AOUT" selects the Analog Output list. "DIN" selects the Digital Input list. "DOUT" selects the Digital Output list.

Usage ROUT:SEQ:POINTS? AIN query for analog input channel count
ROUTe

The SAMPle subsystem provides commands to set and query the interval between channel measurements (pacing).
:TIMer :TIMer?
SAMPle:TIMer <interval> sets the time interval between channel measurements. It is used to provide additional channel settling time. See “Settling Characteristics” on page 157
4.0E-5 to 16.3825E-3 | MIN | MAX
Comments • The minimum <interval> is 40 µs. The resolution for <interval> is 2.5 µs.
Usage SAMPLE:TIMER 150E-6 Pace measurements at 150 µs intervals channel to channel

SAMPle:TIMer? returns the sample timer interval.
Comments • Returned Value: Numeric. The data type is float32.
Usage SAMPLE:TIMER? Check the interval between channel measurements
SAMPle

The SENSe subsystem controls conversion of the sensed electrical signal to a value in Engineering Units (EU) like volts, ohms, and temperature. Sense commands allow one to configure and extract data from the A/D-EU conversion portion of the instrument (see “INPut” subsystem on page 297 for input signal conditioning.
Subsystem Syntax [SENSe:]
:CVTable? (@)
:RESet :FIFO
[:ALL]? :COUNt?
:HALF? :HALF? :MODE BLOCk | OVERwrite :MODE? :PART? :RESet FREQuency:APERture , FREQuency:APERture? FUNCtion
:CONDition (@) :CUSTom [,](@)
:HVOLtage [,](@) :REFerence [,](@) :TC ,[,](@) :FREQuency (@) :HVOLtage (@) :RESistance ,[,](@) :STRain
:FBENding [,](@)
:POST [,](@
:POST [,](@
:POST [,](@
:POST [,](@
:POST [,](@
:POST [,](@
:POST [,](@
:POST [,](@
:POST [,](@
[SENSe]

:TEMPerature ,,[,](@)
:POST TC,,[,](@) :TOTalize (@) :VOLTage[:DC] [,](@) REFerence , [,](@)
:POST THERmistor,,[],(@
:POST (@),(@) :TEMPerature
:POST ,(@
:RESistance
:POST? ,(@) STRain
:BRIDge
:TYPE FBEN | HBEN | Q120 | Q350 | USER,(@) :TYPE? (@) CONNect BRIDge | EXCitation,(@) CONNect? (@)
:EXCitation ,(@)
:STATe ON | OFF,(@) :STATe? (@) :EXCitation? (@) :GFACtor ,(@) :GFACtor? (@) :POISson ,(@) :POISson? (@) :UNSTrained ,(@) :UNSTrained? (@) TOTalize:RESet:MODE INIT | TRIGger,(@) TOTalize:RESet:MODE? (@)
[SENSe:]DATA:CVTable? (@<element_list>) returns from the Current Value Table the most recent values stored by algorithms.
element_list channel list 10 - 511 none
Comments • [SENSe:]DATA:CVTable? (@) allows the latest values from algorithms and/or analog scans to be "viewed."

There is a fixed relationship between channel number and CVT element for reading values from channels placed in the Scan List with ROUT:SEQ:DEF. When mixing Scan List data acquisition with algorithm data storage, be careful not to overwrite Scan List generated values with algorithm generated values. See “ROUTe:SEQuence:DEFine” on page 323 for controlling CVT entries from the analog scan list.
REAL 32, REAL 64, and PACK 64, values are returned in the IEEE-488.2-1987 Definite Length Arbitrary Block Data format. This data return format is explained in “Arbitrary Block Program and Response Data” on page 233. For REAL 32, each value is 4 bytes in length (the data type is a float32 array). For REAL 64 and PACK 64, each value is 8 bytes in length (the data type is a float64 array).
Usage SENS:DATA:CVT? (@10:511) Return all CVT values (502) SENS:DATA:CVT? (@30:38) Return 9 values
[SENSe]
![Page 335 of the VXI VT1422A user manual — [SENSe:]DATA:FIFO[:ALL]?](/cdn/reader/9e/9e80b65a3c1c97d177a1eec46a7ccf82e797658477697872f7e1e0d805bc440a/images/page-335.webp?w=400)
[SENSe:]DATA:CVTable:RESet sets all 64 Current Value Table entries to the IEEE-754 "Not-a-number."
Comments • The value of NaN is +9.910000E+037 (ASCII).
Usage SENSE:DATA:CVT:RESET Clear the Current Value Table
[SENSe:]DATA:FIFO[:ALL]? returns all values remaining in the FIFO buffer until all measurements are complete or until the number of values returned exceeds FIFO buffer size (65,024).
Comments • DATA:FIFO? may be used to acquire all values (even while they are being made) into a single large buffer or can be used after one or more DATA:FIFO:HALF? commands to return the remaining values from the FIFO.
REAL 32, REAL 64 and PACK 64, values are returned in the IEEE-488.2-1987 Indefinite Length Arbitrary Block Data format. This data return format is explained in “Arbitrary Block Program and Response Data” on page 233. For REAL 32, each value is 4 bytes in length (the data type is a float32 array). For REAL 64 and PACK 64, each value is 8 bytes in length (the data type is a float64 array).
[SENSe]

Usage DATA:FIFO? return all FIFO values until measurements complete and FIFO empty
set up scan list/algorithms and trigger SENSE:DATA:FIFO:ALL? now execute read statement read statement does not complete until triggered measurements are complete and FIFO is empty
[SENSe:]DATA:FIFO:COUNt?
[SENSe:]DATA:FIFO:COUNt? returns the number of values currently in the FIFO buffer.
Usage DATA:FIFO:COUNT? Check the number of values in the FIFO buffer
[SENSe:]DATA:FIFO:COUNt:HALF? returns a 1 if the FIFO is at least half full (contains at least 32,768 values) or 0 if FIFO is less than half-full.
DATA:FIFO:COUNT:HALF? poll FIFO for half-full status DATA:FIFO:HALF? returns 32768 values
[SENSe]

[SENSe:]DATA:FIFO:HALF? returns 32,768 values if the FIFO buffer is at least half-full. This command provides a fast means of acquiring blocks of values from the buffer.
Comments • For acquiring data from continuous scans, an application needs to execute a DATA:FIFO:HALF? command and a read statement often enough to keep up with the rate that values are being sent to the FIFO.
REAL 32, REAL 64, and PACK 64, values are returned in the IEEE-488.2-1987 Definite Length Arbitrary Block Data format. This data return format is explained in “Arbitrary Block Program and Response Data” on page 233. For REAL 32, each value is 4 bytes in length (the data type is a float32 array). For REAL 64 and PACK 64, each value is 8 bytes in length (the data type is a float64 array).
DATA:FIFO:COUNT:HALF? poll FIFO for half-full status DATA:FIFO:HALF? returns 32768 values
[SENSe]
![Page 338 of the VXI VT1422A user manual — [SENSe:]DATA:FIFO:MODE?](/cdn/reader/9e/9e80b65a3c1c97d177a1eec46a7ccf82e797658477697872f7e1e0d805bc440a/images/page-338.webp?w=400)
[SENSe:]DATA:FIFO:MODE <mode> sets the mode of operation for the FIFO buffer.
mode discrete (string) BLOCk | OVERwrite none
Comments • In BLOCk(ing) mode, if the FIFO becomes full and measurements are still being made, the new values are discarded.
Usage SENSE:DATA:FIFO:MODE OVERWRITE Set FIFO to overwrite mode DATA:FIFO:MODE BLOCK Set FIFO to block mode
[SENSe:]DATA:FIFO:MODE? returns the currently set FIFO mode.
Comments • Returned Value: String value either BLOCK or OVERWRITE. The data type is string.
Usage DATA:FIFO:MODE? Enter statement returns either BLOCK or OVERWRITE

[SENSe:]DATA:FIFO:PART? <n_values> returns <n_values> from the FIFO buffer.
n_values numeric (int32) 1 - 2,147,483,647 none
Comments • Use the DATA:FIFO:COUNT? command to determine the number of values in the FIFO buffer.
REAL 32, REAL 64 and PACK 64, values are returned in the IEEE-488.2-1987 Definite Length Arbitrary Block Data format. This data return format is explained in “Arbitrary Block Program and Response Data” on page 233. For REAL 32, each value is 4 bytes in length (the data type is a float32 array). For REAL 64 and PACK 64, each value is 8 bytes in length (the data type is a float64 array).
Usage DATA:FIFO:PART? 256 return 256 values from FIFO

[SENSe:]DATA:FIFO:RESet clears the FIFO of values. The FIFO counter is reset to 0.
Usage SENSE:DATA:FIFO:RESET Clear the FIFO
[SENSe:]FREQuency:APERture <gate_time>,<ch_list> sets the gate time for frequency measurement. The gate time is the time period that the SCP will allow for counting signal transitions in order to calculate frequency.
gate_time numeric (float32) 0.001 to 1 (0.001 resolution) seconds
ch_list string 100 - 163 none
Comments • If the channels specified are on an SCP that doesn't support this function, an error will be generated. See the SCP's User's Manual for its capabilities.
Usage SENS:FREQ:APER .01,(@144) set channel 44 aperture to 10 ms

[SENSe:]FREQuency:APERture? <channel> returns the frequency counting gate time.
channel string 100 - 163 none
Comments • If the channel specified is on an SCP that doesn't support this function, an error will be generated. See the SCP's User's Manual for its capabilities.
[SENSe:]FUNCtion:CONDition <ch_list> sets the SENSe function to input the digital state for channels in . Also configures digital SCP channels as inputs (this is the *RST condition for all digital I/O channels).
ch_list string 100 - 163 none
Comments • The VT1533A SCP senses 8 digital bits on each channel specified by this command. The VT1534A SCP senses 1 digital bit on each channel specified by this command.
Usage To set second 8-bits of VT1533A at SCP position 4 and upper 4-bits of VT1534A at SCP position 5 to digital inputs send:

[SENSe:]FUNCtion:CUSTom [<range>,](@<ch_list>) links channels with the custom Engineering Unit Conversion table loaded with the DIAG:CUST:MXB or DIAG:CUST:PIECE commands. Contact a VXI Technology System Engineer for more information on Custom Piecewise Engineering Unit Conversion for specific applications.
range numeric (float32) see first comment V dc
ch_list channel list (string) 100 - 15731 none
Comments • See “Creating and Loading Custom EU Conversion Tables” on page 150.
Usage DIAG:CUST:MXB slope,offset,(@116:123) send M*X+B to VT1422A for chs 16-23 SENS:FUNC:CUST 1,(@116:123) link custom EU with chs 16-23 INITiate then TRIGger module

[SENSe:]FUNCtion:CUSTom:HVOLtage [<range>,](@<ch_list>) links VT1529B high-level input (DCV measurement) channels with the custom Engineering Unit Conversion table loaded with the DIAG:CUST:MXB or DIAG:CUST:PIECE commands.
This command is valid only on the VT1529B and is available with VXIplug&play driver revision A.01.09 or later (revision A.01.06 or later of hpe1422_32.dll).
range numeric (float32) see first comment V dc
ch_list channel list (string) 10000 - 15731 none
Comments • See “Creating and Loading Custom EU Conversion Tables” on page 150.
Usage DIAG:CUST:MXB slope,offset,(@10000) send M*X+B to VT1422A for ch 10000 SENS:FUNC:CUST:HVOL 1,(@10000) link custom EU with ch 10000 INITiate then TRIGger module

[SENSe:]FUNCtion:CUSTom:REFerence [<range>,](@<ch_list>) links channels with the custom Engineering Unit Conversion table loaded with the DIAG:CUST:PIECE command. Measurements from a channel linked with SENS:FUNC:CUST:REF will result in a temperature that is sent to the Reference Temperature Register. This command is used to measure the temperature of an isothermal reference panel using custom characterized RTDs or thermistors.
range numeric (float32) see comments V dc
ch_list channel list (string) 100 - 163 none
Comments • See “Creating and Loading Custom EU Conversion Tables” on page 150.
Usage program must put table constants into array table_block DIAG:CUST:PIEC 1,table_block,(@108) send characterized reference transducer table for use by channel 8 SENS:FUNC:CUST:REF .25,(@108) link custom ref temp EU with ch 8 include this channel in a scan list with thermocouple channels (REF channel first) INITiate then TRIGger module

[SENSe:]FUNCtion:CUSTom:TCouple <type>,[<range>,](@<ch_list>) links channels with the custom Engineering Unit Conversion table loaded with the DIAG:CUST:PIECE command. The table is assumed to be for a thermocouple and the parameter will specify the built-in compensation voltage table to be used for reference junction temperature compensation. SENS:FUNC:CUST:TC allows an EU table to be used that is custom matched to thermocouple wire that has been characterized. Contact a VXI Technology System Engineer for more information on Custom Piecewise Engineering Unit Conversion for specific applications.
type discrete (string) E | EEXT | J | K | N | R | S | T none
range numeric (float32) see comments V dc
ch_list channel list (string) 100 - 163 none
Comments • See “Creating and Loading Custom EU Conversion Tables” on page 150.

Usage program must put table constants into array table_block DIAG:CUST:PIEC 1,table_block,(@100:107) send characterized thermocouple table for use by channels 0-7 SENS:FUNC:CUST:TC N,.25,(@100:107) link custom thermocouple EU with chs 0-7, use reference temperature compensation for N type wire. SENSE:REF RTD,92,(@120) designate a channel to measure the reference junction temperature include these channels in a scan list (REF channel first) INITiate then TRIGger module
[SENSe:]FUNCtion:FREQuency (@<ch_list>) sets the SENSe function to frequency for channels in . Also configures the channels specified as digital inputs.
ch_list string 100 - 163 none
Comments • If the channels specified are on an SCP that doesn't support this function, an error will be generated. See the SCP's User's Manual for its capabilities.
Usage SENS:FUNC:FREQ (@144) set channel 44's to frequency

[SENSe:]FUNCtion:HVOLtage [<range>,](@<ch_list>) links the specified VT1529B channels to return dc voltage on the high-level input (Excitation Sense + and -) pins on the RJ-45 connector for the channel.
This command is valid only on the VT1529B and is available with VXIplug&play driver revision A.01.09 or later (revision A.01.06 or later of hpe1422_32.dll).
range numeric (float32) see comments V dc
ch_list channel list (string) 10000 - 15731 none
Comments • The VT1422A has five ranges: 0.0625 V dc, 0.25 V dc, 1 V dc, 4 V dc, and 16 V dc. To select a range, simply specify the range value (for example, 4 selects the 4 V dc range). If a value is specified that is larger than one of the first four ranges, the VT1422A selects the next higher range (for example, 4.1 selects the 16 V dc range). Specifying a value larger than 16 causes an error. Specifying 0 selects the lowest range (0.0625 V dc). Specifying AUTO selects auto range. The default range (no range parameter specified) is auto range.
Usage FUNC:HVOL (@10000:10001) Channels 0 - 1 measure high-level input voltage in auto-range (defaulted)

[SENSe:]FUNCtion:RESistance <excite_current>,[<range>,](@<ch_list>) links the EU conversion type for resistance and range with the channels specified by <ch_list>.
excite_current discrete(string) 30E-6 | 488E-6 | MIN | MAX Amps
range numeric (float32) see first comment V dc
ch_list channel list (string) 100 - 163 none
Usage FUNC:RES 30ua,(@100,105,107) Set channels 0, 5, and 7 to convert voltage to resistance assuming current source set to 30 µA use auto-range (default)
![Page 349 of the VXI VT1422A user manual — [SENSe:]FUNCtion:STRain:FBENding [SENSe:]FUNCtion:STRain:FBPoisson [SENSe:]FUNCtion:STRain:FPOisson [SENSe:]FUNCtion:STRain:HBENding [SENSe:]FUNCtion:STRain:HPOisson [SENSe:]FUNCtion:STRain[:QUARter] [SENSe:]FUNCtion:STRain:Q120 [SENSe:]FUNCtion:STRain:Q350 [SENSe:]FUNCtion:STRain:USER](/cdn/reader/9e/9e80b65a3c1c97d177a1eec46a7ccf82e797658477697872f7e1e0d805bc440a/images/page-349.webp?w=400)
[SENSe:]FUNCtion:STRain:FBENding [<range>,](@<ch_list>) [SENSe:]FUNCtion:STRain:FBPoisson [<range>,](@<ch_list>) [SENSe:]FUNCtion:STRain:FPOisson [<range>,](@<ch_list>) [SENSe:]FUNCtion:STRain:HBENding [<range>,](@<ch_list>) [SENSe:]FUNCtion:STRain:HPOisson [<range>,](@<ch_list>) [SENSe:]FUNCtion:STRain[:QUARter] [<range>,](@<ch_list>) [SENSe:]FUNCtion:STRain:Q120 [<range>,](@<ch_list>) [SENSe:]FUNCtion:STRain:Q350 [<range>,](@<ch_list>) [SENSe:]FUNCtion:STRain:USER [<range>,](@<ch_list>)
A Note on Syntax: Although the strain function is comprised of nine separate SCPI commands, their syntax and function is so similar they are discussed in a single reference entry.
[SENSe:]FUNCtion:STRain:<bridge_type> [<range>,](@<ch_list>) links the strain EU conversion with the channels specified by ch_list to measure the strain bridge output. See “Linking Input Channels to EU Conversion” on page 109.
Some of the SENS:STR:FUNC:<bridge_type> commands are used for both strain bridge completion SCPs and the VT1529A/B while some are exclusive to one or the other.
The following table relates the command syntax to bridge type. See the Strain SCP user's manual for bridge schematics and field wiring information.
[SENSe]

Command Bridge Type Strain SCP and VT1529A/B
:FBENding Full Bending Bridge Both VT1529A/B and SCPs
:FBPoisson Full Bending Poisson Bridge SCPs only
:FPOisson Full Poisson Bridge SCPs only
:HBENding Half Bending Bridge Both VT1529A/B and SCPs
:HPOisson Half Poisson Bridge SCPs only
[:QUARter] Quarter Bridge (default) Both VT1529A/B and SCPs. For VT1529A/B, selects Q350
:Q120 Quarter Bridge 120 Ω VT1529A/B only
:Q350 Quarter Bridge 350 Ω VT1529A/B only
:USER Quarter Bridge with user installed resistor
Note Because of the number of possible strain gage configurations, the driver must generate any Strain EU conversion tables and download them to the instrument when INITiate is executed. This can cause the time to complete the first INIT command to exceed 1 minute on some platforms, notably the Agilent/HP E1405B/06A. Subsequent INITs (with no other configuration changes) do not need to regenerate EU tables and execute much faster.
range numeric (float32) see comments V dc
ch_list channel list (string) 100 - 15731 none
Comments • Strain measurements require the use of Bridge Completion Signal Conditioning Plug-Ons or a Remote Strain Bridge Conditioning Unit.
![Page 351 of the VXI VT1422A user manual — [SENSe:]FUNCtion:STRain:FBENding:POST [SENSe:]FUNCtion:STRain:FBPoisson:POST [SENSe:]FUNCtion:STRain:FPOisson:POST [SENSe:]FUNCtion:STRain:HBENding:POST [SENSe:]FUNCtion:STRain:HPOisson:POST [SENSe:]FUNCtion:STRain[:QUARter]:POST [SENSe:]FUNCtion:STRain:Q120:POST [SENSe:]FUNCtion:STRain:Q350:POST [SENSe:]FUNCtion:STRain:USER:POST](/cdn/reader/9e/9e80b65a3c1c97d177a1eec46a7ccf82e797658477697872f7e1e0d805bc440a/images/page-351.webp?w=400)
Usage SENS:FUNC:STRAIN:QUAR 1,(@100,105,107) quarter bridge conversion for channels 0, 5, and 7 FUNC:STRAIN:FBEN 1,(@10800:10931) full bridge conversion for VT1529A/B channels 0800 to 0931 (64 channels)
[SENSe:]FUNCtion:STRain:FBENding:POST [<rng>,](@<exc_ch>),(@<ch_list>) [SENSe:]FUNCtion:STRain:FBPoisson:POST [<rng>,](@<exc_ch>),(@<ch_list>) [SENSe:]FUNCtion:STRain:FPOisson:POST [<rng>,](@e<exc_ch>),(@<ch_list>) [SENSe:]FUNCtion:STRain:HBENding:POST [<rng>,](@<exc_ch>),(@<ch_list>) [SENSe:]FUNCtion:STRain:HPOisson:POST [<rng>,](@<exc_ch>),(@<ch_list>) [SENSe:]FUNCtion:STRain[:QUARter]:POST [<rng>,](@<exc_ch>),(@<ch_list>] [SENSe:]FUNCtion:STRain:Q120:POST [<rng>,](@<exc_ch>),(@<ch_list>) [SENSe:]FUNCtion:STRain:Q350:POST [<rng>,](@<exc_ch>),(@<ch_list>) [SENSe:]FUNCtion:STRain:USER:POST [<rng>,](@<exc_ch>),(@<ch_list>)
A Note on Syntax: Although the post-processing strain function is comprised of nine separate SCPI commands, their syntax and function is so similar they are discussed in a single reference entry.
[SENSe]

[SENSe:]FUNCtion:STRain:<bridge_type>:POST [<range>,](@<ch_list>) links the post-processing strain EU conversion with the VT1529B channels specified by <ch_list> to measure the strain bridge output. See “Strain Measurement Command Sequence” on page 165.
Both the strain channels and excitation channel should appear in the scan list set by ROUT:SEQ:DEF.
These commands are valid only on the VT1529B and are available with VXIplug&play driver revision A.01.09 or later (revision A.01.06 or later of hpe1422_32.dll).
Note Because of the number of possible strain gage configurations, the driver must generate any Strain EU conversion tables and download them to the instrument when INITiate is executed. This can cause the time to complete the first INIT command to exceed one minute on some platforms. Subsequent INITs (with no other configuration changes) do not need to regenerate EU tables and execute much faster.
range numeric (float32) see comments V dc
ch_list channel list (string) 10000 - 15731 none
Comments • The VT1529B provides the strain measurement bridges and their excitation voltage sources. <ch_list> specifies the voltage sensing channels that are to measure the bridge outputs.

Usage SENS:FUNC:STRAIN:QUAR:POST 1,(@10000:10007) quarter bridge conversion for VT1529B
channels 10000 to 10007 SENSE:FUNC:STRAIN:FBEN:POST 1,(@10800:10931) full bridge conversion for VT1529B
channels 10800 to 10931 (64 channels)
[SENSe:]FUNCtion:TEMPerature <type>,<sub_type>,[<range>,](@<ch_list>) links channels to an temperature EU conversion based on the sensor specified in <type> and <sub_type>. Note: Do not include the thermocouple reference temperature channels in this command (for that, use the SENS:REF ,,(@) command).
type discrete (string) RTD | THERmistor | TCouple none
sub_type numeric (float32) numeric (float32)
for RTD, use 85 | 92 for THER, use 2250 | 5000 | 10000 for TC, use CUSTom | E | EEXT | J | K | N | R | S | T
range numeric (float32) see comments V dc
ch_list channel list (string) 100 - 163 none
Comments • Resistance temperature measurements (RTDs and THERmistors) require the use of Current Source Signal Conditioning Plug-Ons. The following table shows the Current Source setting that must be used for the following RTDs and Thermistors:
MAX (488 µA) for RTD and THER,2250
MIN (30 µA) for THER,5000 and THER,10000

The <sub_type> EEXTended applies to E type thermocouples at 800°C and above.
CUSTom is pre-defined as Type K, with no reference junction compensation (reference junction assumed to be at 0°C).
Usage Link two channels to the K type thermocouple temperature conversion SENS:FUNC:TEMP TCOUPLE,K,(@101,102)
Link channel 0 to measure reference temperature using 5k thermistor SENS:REF THER,5000,(@100)
[SENSe]

[SENSe:]FUNCtion:TEMPerature:POST TC,<sub_type>,[<range>,] (@<ch_list>) links VT1529B channels to a post-processing temperature EU conversion based on the sensor specified in <type> and <sub_type>. Note: Do not include the thermocouple reference temperature or thermistor excitation channels in this command (for that, use the SENS:REF:POST ,,, (@),(@) command).
This command is valid only on the VT1529B and is available with VXIplug&play driver revision A.01.09 or later (revision A.01.06 or later of hpe1422_32.dll).
sub_type discrete (string) E | J | T none
range numeric (float32) see comments V dc
ch_list channel list (string) 10000 - 15731 none
Comments • The VT1422A has five ranges: 0.0625 V dc, 0.25 V dc, 1 V dc, 4 V dc, and 16 V dc. To select a range, simply specify the range value (for example, 4 selects the 4 V dc range). If a value is specified that is larger than one of the first four ranges, the VT1422A selects the next higher range (for example, 4.1 selects the 16 V dc range). Specifying a value larger than 16 generates an error. Specifying 0 selects the lowest range (0.0625 V dc). Specifying AUTO selects auto range. The default range (no range parameter specified) is auto range.
Usage Link two channels to the J type thermocouple temperature conversion SENS:FUNC:TEMP:POST TC,J,(@10002,10003)
Link channel 1 to measure reference temperature using 5k thermistor on VT1586A; excitation voltage is on channel 0 SENS:REF:POST THER,5000,(@10000),(@10001)

[SENSe:]FUNCtion:TOTalize <ch_list> sets the SENSe function to TOTalize for channels in .
ch_list string 100 - 163 none
Comments • The totalize function counts rising edges of digital transitions at Frequency/ Totalize SCP channels. The counter is 24 bits wide and can count up to 16,777,215.
Usage SENS:FUNC:TOT (@134) channel 34 is a totalizer
[SENSe:]FUNCtion:VOLTage[:DC] [<range>,](@<ch_list>) links the specified channels to return dc voltage. On a VT1529B, this specifies the low-level input pins on the RJ-45 connector for the channel.
range numeric (float32) see comments V dc
ch_list channel list (string) 100 - 15731 none
Comments • The VT1422A has five ranges: 0.0625 V dc, 0.25 V dc, 1 V dc, 4 V dc, and 16 V dc. To select a range, simply specify the range value (for example, 4 selects the 4 V dc range). If a value is specified that is larger than one of the first four ranges, the VT1422A selects the next higher range (for example, 4.1 selects the 16 V dc range). Specifying a value larger than 16 causes an error. Specifying 0 selects the lowest range (0.0625 V dc). Specifying AUTO selects auto range. The default range (no range parameter specified) is auto range.
![Page 357 of the VXI VT1422A user manual — [SENSe:]REFerence](/cdn/reader/9e/9e80b65a3c1c97d177a1eec46a7ccf82e797658477697872f7e1e0d805bc440a/images/page-357.webp?w=400)
Usage FUNC:VOLT (@140:163) Channels 40 - 63 measure voltage in auto-range (defaulted)
[SENSe:]REFerence <type>,<sub_type>,[<range>,](@<ch_list>) links channel in to the reference junction temperature EU conversion based on <type> and
Note The reference junction temperature value generated by scanning the reference channel is stored in the Reference Temperature Register. This reference temperature is used to compensate all subsequent thermocouple measurements until the register is overwritten by another reference measurement or by specifying a constant reference temperature with the SENSE:REF:TEMP command. If used, the reference junction channel must be scanned before any thermocouple channels. Use the SENSE:REF:CHANNELS command to place the reference measuring channel into the scan list ahead of the thermocouple measuring channels.
[SENSe]

type discrete (string) THERmistor | RTD | CUSTom none
sub_type numeric (float32) numeric (float32)
for THER, use 5000 for RTD, use 85 | 92
for CUSTom, use 1
range numeric (float32) see comments V dc
ch_list channel list (string) 100 - 15731 none
Usage SENSE:REF RTD,92,(@120) sense the reference temperature on channel 20 using an RTD SENSE:REF THER,5000,(@113) sense the reference temperature on channel 113 using a 5k thermistor

[SENSe:]REFerence:POST THERmistor,<resistance>,[<range>,] (@<exc_ch>),(@<thr_ch>) links the thermistor channel in to the excitation voltage channel in and to the reference junction temperature EU conversion. The excitation channel is automatically set to SENS:FUNC:HVOL and the thermistor channel is set to SENS:FUNC:VOLT. The excitation channel must be on the same VT1529B as the thermistor channel.
The reference junction temperature EU conversion assumes the divider circuit shown in Figure 5-5 on page 173. If a total resistance value other than 400 kΩ is used, the sum of the resistor values can be specified with the SENS:REF:THER:RES command.
Both the thermistor channel and the excitation channel should appear in the scan list set by the ROUT:SEQ:DEF command. If the excitation channel is also used for strain measurements, it only needs to appear once in the scan list.
This command is valid only on the VT1529B and is available with VXIplug&play driver revision A.01.09 or later (revision A.01.06 or later of hpe1422_32.dll).
resistance numeric (float32) 5000 (value is ignored) ohm
range numeric (float32) see comments V dc
exc_ch channel 10000 - 15731 (one channel only)
thr_list channel list (string) 10000 - 15731 none
Comments • The VT1422A has five ranges: 0.0625 V dc, 0.25 V dc, 1 V dc, 4 V dc, and 16 V dc. To select a range, simply specify the range value (for example, 4 selects the 4 V dc range). If a value is specified that is larger than one of the first four ranges, the VT1422A selects the next higher range (for example, 4.1 selects the 16 V dc range). Specifying a value larger than 16 causes an error. Specifying 0 selects the lowest range (0.0625 V dc). Specifying AUTO selects auto range. The default range (no range parameter specified) is auto range.
Usage SENS:REF:POST THER,5000,4,(@10000),(@10001) sense the reference temperature on ch
10001; excitation is on ch 10000; measure on 4 V range
![Page 360 of the VXI VT1422A user manual — [SENSe:]REFerence:CHANnels:POST](/cdn/reader/9e/9e80b65a3c1c97d177a1eec46a7ccf82e797658477697872f7e1e0d805bc440a/images/page-360.webp?w=400)
[SENSe:]REFerence:CHANnels (@<ref_channel>),(@<ch_list>) causes channel specified by to appear in the scan list just before the channel(s) specified by . This command is used to include the thermocouple reference temperature channel in the scan list before other thermocouple channels are measured.
ref_channel channel list (string) 100 - 163 none
ch_list channel list (string) 100 - 163 none
Comments • Use SENS:FUNC:TEMP to configure channels to measure thermocouples. Then use SENS:REF to configure one or more channels to measure an isothermal reference temperature. Now use SENS:REF:CHAN to group the reference channel with its thermocouple measurement channels in the scan list.
Usage SENS:FUNC:TEMP TC,E,.0625,(@108:115) E type TCs on channels 8 through 15 SENS:REF THER,5000,1,(@106) Reference ch is thermistor at channel 6 SENS:REF RTD,85,.25,(@107) Reference ch is RTD at channel 7 SENS:REF:CHAN (@106),(@108:111) Thermistor measured before chs 8 - 11 SENS:REF:CHAN (@107),(@112:115) RTD measured before chs 12 - 15
[SENSe:]REFerence:CHANnels:POST (@<ref_channel>),(@<ch_list>) links the thermocouple channel(s) specified by to the temperature reference (thermistor) channel specified by . The reference channel must be on the same VT1529B as the thermocouple channels.
The ROUT:SEQ:DEF command must be used to include the thermocouple channels in the scan list.
This command is valid only on the VT1529B and is available with VXIplug&play driver revision A.01.09 or later (revision A.01.06 or later of hpe1422_32.dll).
![Page 361 of the VXI VT1422A user manual — [SENSe:]REFerence:TEMPerature](/cdn/reader/9e/9e80b65a3c1c97d177a1eec46a7ccf82e797658477697872f7e1e0d805bc440a/images/page-361.webp?w=400)
ref_channel channel list (string) 10000 - 15731 none
ch_list channel list (string) 10000 - 15731 none
Comments • Use SENS:FUNC:TEMP:POST to configure channels to measure thermocouples. Then use SENS:REF:POST to configure one or more channels to measure an isothermal reference temperature. Finally, use SENS:REF:CHAN:POST to group the reference channel with its thermocouple measurement channels.
Usage SENS:FUNC:TEMP:POST TC,J,.0625,(@10008:10015) J type TCs on channels 8 through 15 SENS:REF:POST THER,5000,4,(@10000),(@10001) sense the reference temperature on
ch 10001; excitation on ch 10000; measure on 4 V range SENS:REF:CHAN (@10001),(@10008:10015) link TC channels to thermistor ROUT:SEQ:DEF (@10008:10015,10001,10000) set up scan list
[SENSe:]REFerence:TEMPerature <degrees_c> stores a fixed reference junction temperature in the Reference Temperature Register. Use when the thermocouple reference junction is kept at a controlled temperature.

degrees_c numeric (float32) -126 to +126 °C
Comments • This command is used to specify to the VT1422A the temperature of a controlled temperature thermocouple reference junction.
Usage SENSE:REF:TEMP 40 subsequent thermocouple conversion will assume compensation junction at 40 °C
[SENSe:]REFerence:TEMPerature:POST <degrees_c>,(@<ch_list>) stores a fixed reference junction temperature for use in the post-processing EU conversions for the thermocouple channels in . Use when the thermocouple reference junction is kept at a controlled temperature. Note: Setting this value for any channel on a VT1529B also sets the value for all other channels on that VT1529B.
Unlike the SENS:REF:TEMP command for non-VT1529B channels, this command does not override the previous links to thermistor channels, so the two methods can be used on different channels on the same VT1529B.
This command is valid only on the VT1529B and is available with VXIplug&play driver revision A.01.09 or later (revision A.01.06 or later of hpe1422_32.dll).
degrees_c numeric (float32) -126 to +126 °C
Comments • This command is used to specify to the VT1422A the temperature of a controlled temperature thermocouple reference junction.

Usage SENSE:REF:TEMP:POST 40,(@10008:10015) channels 10008 to 10015 will assume compensation junction at 40 °C
[SENSe:]REFerence:THERmistor:RESistance:POST <resistance>,(@<thr_list>) specifies the sum of the resistor values in the thermistor divider circuit (see Figure 5-5 on page 173) for the thermistor channels in when using the VT1529B to make a reference temperature measurement. Note: Setting this value for any channel on a VT1529B also sets the value for all other channels on that VT1529B.
This command is valid only on the VT1529B and is available with VXIplug&play driver revision A.01.09 or later (revision A.01.06 or later of hpe1422_32.dll).
resistance numeric (float32) 1800 to 520,000 ohms
thr_list channel list (string) 10000 - 15731 none
Usage SENSE:REF:THER:RES:POST 397000,(@10001) divider circuit for thermistor on channel 10001 has 397 kΩ total resistance

[SENSe:]REFerence:THERmistor:RESistance:POST? (@<thr_ch>) returns the programmed sum of the resistor values in the thermistor divider circuit.
This command is valid only on the VT1529B and is available with VXIplug&play driver revision A.01.09 or later (revision A.01.06 or later of hpe1422_32.dll).
resistance numeric (float32) 1800 to 520,000 ohms
thr_ch channel list (string) 10000 - 15731 none
Comments • The parameter must be a single channel only.
Usage SENSE:REF:THER:RES:POST 397000,(@10001) divider circuit for thermistor on channel 10001 has 397 kΩ total resistance
[SENSe:]STRain:BRIDge[:TYPE] <select>,(@<ch_list>) sets the VT1529A/B’s bridge configuration switches for channels specified by .
select discrete (string) FBENding | HBENding | Q120 | Q350 |
ch_list channel list (string) 10000 - 15731 none
Comments • For a description of the effects of see "VT1529A/B Bridge Configurations" on page 70.

Usage SENS:STRAIN:BRID Q120,(@10000:10031) configure strain RSC unit channels 00-31 connected to on-board channel 00 to 120 ohm quarter bridge
[SENSe:]STRain:BRIDge[:TYPE]? (@<channel>) returns the VT1529A/B’s bridge configuration for channel specified by .
channel channel list (string) 10000 - 15731 none
Comments • The parameter must be a single channel only.
Usage SENS:STRAIN:BRID (@10022) check strain RSC unit channel 22 bridge configuration connected to on-board channel 00
[SENSe:]STRain:CONNect <select>,(@<ch_list>) connects the VT1529A/B channels specified by to sense either the strain bridge output or the bridge excitation supply. Only one channel for each VT1529A/B needs to be specified in and all channels on that unit will configure as specified in .
select discrete (string) BRIDge | EXCitation none
ch_list channel list (string) 10000 - 15731 none
![Page 366 of the VXI VT1422A user manual — [SENSe:]STRain:EXCitation](/cdn/reader/9e/9e80b65a3c1c97d177a1eec46a7ccf82e797658477697872f7e1e0d805bc440a/images/page-366.webp?w=400)
Usage SENS:STRAIN:CONN EXC,(@10000:10031) configure strain RSC unit channels 00-31 connected to on-board channel 00 to measure excitation voltages
[SENSe:]STRain:CONNect? (@<channel>) returns the measurement connection state for the single VT1529A/B channel specified by .
channel channel list (string) 10000 - 15731 none
Comments • The parameter must specify a single channel only.
Usage SENS:STRAIN:CONN? (@10022) check the measurement connection for strain RSC unit channel 22 connected to on-board channel 00
[SENSe:]STRain:EXCitation <excite_v>,(@<ch_list>) specifies the excitation voltage value to be used in the strain EU conversion for the channels specified by . The value used is usually measured at each strain bridge’s excitation point. For the VT1529A/B, the MEAS:VOLT:EXCitation command will make the measurements and automatically send the value to each measured channel’s EU conversion.This command does not control the output voltage of any source.

excite_v numeric (float32) 0.01 - 99 volts
ch_list channel list (string) 100 - 15731 none
Comments • The parameter must specify the channel used to sense the bridge voltage, not the channel position on a Bridge Completion SCP.
Usage STRAIN:EXC Meas_excV,(@107) set measured excitation voltage for channel 7 STRAIN:EXC Meas_excV,(@10022) set excitation voltage for VT1529A/B channel 0022
[SENSe:]STRain:EXCitation? (@<channel>) returns the excitation voltage value currently set for the sense channel specified by .
channel channel list (string) 100 - 15731 none
Comments • The parameter must specify a single channel only.
Usage STRAIN:EXC? (@107) query excitation voltage for channel 7 enter statement here returns the excitation voltage set by STR:EXC

[SENSe:]STRain:EXCitation:STATe <enable>,(@<ch_list>) connects or disconnects all four excitation supply ports on a VT1529A/B. Only one channel for each VT1529A/B needs to be specified in and all four excitation supply ports on that unit will configure as specified in . The first channel number on each possible VT1529A/B is: 10000, 10100, 10800, 10900, 11600, 11700, 12400, 12500, 13200, 13300, 14000, 14100, 14800, 14900, 15600, 15700.
enable boolean (uint16) ON | OFF none
ch_list channel list (string) 10000 - 15731 none
Usage STRAIN:EXC:STAT ON,(@10800) turn on all excitation supplies on VT1529A/B connected to on-board channel 08
[SENSe:]STRain:EXCitation:STATe? (@<channel>) returns the state of all four VT1529A/B excitation supply ports referenced in . The first channel number on each possible VT1529A/B is: 10000, 10100, 10800, 10900, 11600, 11700, 12400, 12500, 13200, 13300, 14000, 14100, 14800, 14900, 15600, 15700.
channel channel list (string) 1000 - 15731 none
Usage STRAIN:EXC:STAT? (@10800) check state of excitation supply ports on VT1529A/B connected to channel 08

[SENSe:]STRain:GFACtor <gage_factor>,(@<ch_list>) specifies the gage factor to be used to convert strain bridge readings for the channels specified by .
gage_factor numeric (float32) 1 - 5 none
ch_list channel list (string) 100 - 15731 none
Comments • The parameter must specify the SCP or RSC channel used to sense the bridge voltage, not the channel position on a Bridge Completion SCP.
Usage SENS:STRAIN:GFAC 3,(@100:107) set gage factor for channels 0 through 7 SENS:STRAIN:GFAC 2.2,(@10000:10931) set gage factor for VT1529A/B channels 0000 through 0931 (128 channels)
[SENSe:]STRain:GFACtor? (@<channel>) returns the gage factor currently set for the sense channel specified by .
channel channel list (string) 100 - 15731 none
Comments • Returned Value: Numeric value of gage factor. The data type is float32.
Usage STRAIN:GFAC? (@107) query gage factor for channel 7 enter statement here returns the gage factor set by STR:GFAC

[SENSe:]STRain:POISson <poisson_ratio>,(@<ch_list>) sets the Poisson ratio to be used for EU conversion of values measured on sense channels specified by .
poisson_ratio numeric (float32) 0.1 - 0.5 none
ch_list channel list (string) 100 - 163 none
Comments • The parameter must specify channels used to sense strain bridge output, not channel positions on a Bridge Completion SCP.
Usage STRAIN:POISSON .5,(@124:131) set Poisson ratio for sense channels 24 through 31
[SENSe:]STRain:POISson? (@<channel>) returns the Poisson ratio currently set for the sense channel specified by .
channel channel list (string) 100 - 163 none
Comments • Returned Value: numeric value of the Poisson ratio. The data type is float32.
Usage STRAIN:POISSON? (@131) query for the Poisson ratio specified for sense channel 31 enter statement here enter the Poisson ratio value

[SENSe:]STRain:UNSTrained <unstrained_v>,(@<ch_list>) specifies the unstrained voltage value to be used to convert strain bridge readings for the channels specified by . The VT1529A/B can use the MEAS:VOLT:UNSTrained command which automatically measures the unstrained bridge values and sends each value to the channels’ EU conversion. This command does not control the output voltage of any source.
unstrained_v numeric (float32) -16 through +16 volts
ch_list channel list (string) 100 - 15731 none
Comments • Use a voltage measurement of the unstrained strain bridge sense channel to determine the correct value for <unstrained_v>.
Usage STRAIN:UNST .024,(@100) set unstrained voltage for channel 0
[SENSe:]STRain:UNSTrained? (@<channel>) returns the unstrained voltage value currently used for EU conversion for the sense channel specified by . This command does not make a measurement.
channel channel list (string) 100 - 15731 none
Comments • Returned Value: Numeric value of unstrained voltage. The data type is float32.

Usage STRAIN:UNST? (@107) query unstrained voltage for channel 7 enter statement here returns the unstrained voltage set by STR:UNST
[SENSe:]TOTalize:RESet:MODE <select>,<ch_list> sets the mode for resetting totalizer channels in .
select discrete (string) INIT | TRIGger seconds
ch_list string 100 - 163 none
Comments • In the INIT mode the total is reset only when the INITiate command is executed. In the TRIGger mode the total is reset every time a new scan is triggered.
Usage SENS:TOT:RESET:MODE TRIG,(@134) totalizer at channel 34 resets at each trigger event

[SENSe:]TOTalize:RESet:MODE? <channel> returns the reset mode for the totalizer channel in .
channel string 100 - 163 none
Comments • The <channel> parameter must specify a single channel.

The SOURce command subsystem allows configuring output SCPs as well as linking channels to output functions.
:STATe 1 | 0 | ON | OFF,(@) :STATe? (@) :FUNCtion
[:SHAPe]
:CONDition (@) :PULSe (@) :SQUare (@) :PULM
:STATe 1 | 0 | ON | OFF,(@) :STATe? (@) :PULSe
:PERiod ,(@) :PERiod? (@) :WIDTh ,(@) :WIDTh? (@) :VOLTage
[:AMPLitude] ,(@)
SOURce:FM[:STATe] <enable>,(@<ch_list>) enables the Frequency Modulated mode for a PULSe channel.
enable boolean (uint16) 1 | 0 | ON | OFF none
ch_list string 100 - 163 none
Comments • This command is coupled with the SOURce:PULM:STATE command. If the FM state is ON then the PULM state is OFF. If the PULM state is ON then the FM state is OFF. If both the FM and the PULM states are OFF then the PULSe channel is in the single pulse mode.

Usage The variable frequency control for this channel is provided by the algorithm language. When the algorithm executes an assignment statement to this channel, the value assigned will be the frequency setting. For example:
O143 = 2000 /* set channel 43 to 2 kHz */
SOURce:FM:STATe? (@<channel>) returns the frequency modulated mode state for a PULSe channel.
channel string 100 - 163 none
Comments • The <channel> parameter must specify a single channel.
SOURce:FUNCtion[:SHAPe]:CONDition (@<ch_list>) sets the SOURce function to output digital patterns to bits in .
ch_list string 100 - 163 none
Comments • The VT1533A SCP sources 8 digital bits on the channel specified by this command. The VT1534A SCP can source 1 digital bit on each of the channels specified by this command.

SOURce:FUNCtion[:SHAPe]:PULSe (@<ch_list>) sets the SOURce function to PULSe for the channels in .
ch_list string 100 - 163 none
Comments • This PULSe channel function is further defined by the SOURce:FM:STATe and SOURce:PULM:STATe commands. If the FM state is enabled then the frequency modulated mode is active. If the PULM state is enabled then the pulse width modulated mode is active. If both the FM and the PULM states are disabled then the PULSe channel is in the single pulse mode.
SOURce:FUNCtion[:SHAPe]:SQUare (@<ch_list>) sets the SOURce function to output a square wave (50% duty cycle) on the channels in <ch_list>.
ch_list string 100 - 163 none
Usage The frequency control for these channels is provided by the algorithm language function:
O143 = 2000 /* set channel 43 to 2 kHz */
SOURce:PULM[:STATe] <enable>,(@<ch_list>) enable the pulse width modulated mode for the PULSe channels in .
enable boolean (uint16) 1 | 0 | ON | OFF none
ch_list string 100 - 163 none

Comments • This command is coupled with the SOURce:FM command. If the FM state is enabled then the PULM state is disabled. If the PULM state is enabled then the FM state is disabled. If both the FM and the PULM states are disabled then the PULSe channel is in the single pulse mode.
SOURce:PULM[:STATe]? (@<channel>) returns the pulse width modulated mode state for the PULSe channel in .
channel string 100 - 163 none
Comments • The <channel> parameter must specify a single channel.
SOURce:PULSe:PERiod <period>,(@<ch_list>) sets the fixed pulse period value on a pulse width modulated pulse channel. This sets the frequency (1/period) of the pulse-width-modulated pulse train.
period numeric (float32) 25E-6 to 7.8125E-3 (resolution 0.238 μs)
ch_list string 100 - 163 none
Comments • If the channels specified are not on a Frequency/Totalize SCP, an error will be generated.

O140 = .0025 /* set channel 43 pulse-width to 2.5 ms */
Usage SOUR:PULS:PER .005,(@140) set PWM pulse train to 200 Hz on channel 40
SOURce:PULSe:PERiod? (@<channel>) returns the fixed pulse period value on the pulse width modulated pulse channel in .
channel string 100 - 163 none
Comments • If the channels specified are not on a Frequency/Totalize SCP, an error will be generated.
SOURce:PULSe:WIDTh <pulse_width>,(@<ch_list>) sets the fixed pulse width value on the frequency modulated pulse channels in .
pulse_width numeric (float32) 7.87E-6 to 7.8125E-3 (238.4E-9 resolution)
ch_list string 100 - 163 none
Comments • If the channels specified are not on a Frequency/Totalize SCP, an error will be generated.

O143 = 2000 /* set channel 43 to 2 kHz */
Usage SOUR:PULS:WIDTH 2.50E-3,(@143) set fixed pulse width of 2.5 ms on channel 43
SOURce:PULSe:WIDTh? (@<ch_list>) returns the fixed pulse width value on a frequency modulated pulse channel.
channel string 100 - 163 none
Comments • The <channel> parameter must specify a single channel.
SOURce:VOLTage[:AMPLitude] <-offset_v>,(@<ch_list>) can be used to reduce bridge offset voltage present at the dynamic strain "Buffered Output" channel connectors.
-offset_v numeric (float32) -1.651 to +1.664 | MIN | MAX
ch_list string 10000 - 15731 none
Comments • If the channels specified are not on a VT1529A/B, an error will be generated.

Usage SOUR:VOLT .041,(@10031) correct a -41 mV offset at channel 31 of VT1529A/B 00.
SOURce

The STATus subsystem communicates with the SCPI defined Operation and Questionable Data status register sets. Each is comprised of a Condition register, a set of Positive and Negative Transition Filter registers, an Event register, and an Enable register. Condition registers allow the current real-time states of their status signal inputs (signal states are not latched) to be viewed. The Positive and Negative Transition Filter registers allow the polarity of change from the Condition registers that will set Event register bits to be controlled. Event registers contain latched representations of signal transition events from their Condition register. Querying an Event register reads and then clears its contents, making it ready to record further event transitions from its Condition register. Enable registers are used to select which signals from an Event register will be logically OR’ed together to form a summary bit in the Status Byte Summary register. Setting a bit to 1 in an Enable register enables the corresponding bit from its Event register.

Figure 7-5. General Status Register Organization
STATus

The following table shows the effect of Power-on, *RST, *CLS, and STATus:PRESet on the status system register settings.
IEEE 488.2
Registers ESE and SRE
Registers SESR and STB
Power-on preset preset clear clear clear
*RST none
*CLS none none clear none clear
STAT:PRESET preset preset none none none
:OPERation
:CONDition? :ENABle :ENABle? [:EVENt]? :NTRansition :NTRansition? :PTRansition :PTRansition? :PRESet :QUEStionable
:CONDition? :ENABle :ENABle? [:EVENt]? :NTRansition :NTRansition? :PTRansition :PTRansition?
The Status system contains four status groups
This SCPI STATus subsystem communicates with the first two groups while IEEE-488.2 Common Commands (documented later in this chapter) communicate with Standard Event and Status Byte Groups.

Register queries are returned using decimal weighted bit values. Enable registers can be set using decimal, hex, octal, or binary. The following table can be used to help set Enable registers using decimal and decode register queries.
Status System Decimal Weighted Bit Values
bit# 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
value always 0 16,384 8,192 4,096 2,048 1,024 512 256 128 64 32 16 8 4 2 1
The Operation Status Group indicates the current operating state of the VT1422A. The bit assignments are:
Bit # dec value hex value Bit Name Description
0 1 000116 Calibrating Set by CAL:TARE and CAL:SETup. Cleared by CAL:TARE? and CAL:SETup?. Set while *CAL? executes and reset when *CAL? completes. Set by CAL:CONFIG:VOLT or CAL:CONFIG:RES, cleared by CAL:VAL:VOLT or CAL:VAL:RES.
4 16 001016 Measuring Set when instrument INITiated. Cleared when instrument returns to Trigger Idle State.
8 256 010016 Scan Complete Set when each pass through a Scan List completed (may not indicate all measurements have been taken when TRIG:COUNT >1).
9 512 020016 SCP Trigger An SCP has sourced a trigger event (future VT1422A SCPs)
10 1024 040016 FIFO Half Full The FIFO contains at least 32,768 readings
11 2048 080016 Algorithm Interrupted The interrupt() function was called in an algorithm
STATus:OPERation:CONDition? returns the decimal weighted value of the bits set in the Condition register.
Comments • The Condition register reflects the real-time state of the status signals. The signals are not latched; therefore, past events are not retained in this register (see STAT:OPER:EVENT?).

Usage STATUS:OPERATION:CONDITION? Enter statement will return value from condition register
STATus:OPERation:ENABle <enable_mask> sets bits in the Enable register that will enable corresponding bits from the Event register to set the Operation summary bit.
enable_mask numeric (uint16) 0 - 32767 none
Comments • The <enable_mask> parameter may be sent as decimal, hex (#H), octal (#Q), or binary (#B).
When the event corresponding to bit 4 occurs and then is cleared, the card will generate a VXI interrupt. When the event corresponding to bit 8, 9, 10, or 11 occurs, the card will generate a VXI interrupt.
Usage STAT:OPER:ENABLE 1 Set bit 0 in the Operation Enable register
![Page 385 of the VXI VT1422A user manual — STATus:OPERation[:EVENt]?](/cdn/reader/9e/9e80b65a3c1c97d177a1eec46a7ccf82e797658477697872f7e1e0d805bc440a/images/page-385.webp?w=400)
STATus:OPERation:ENABle? returns the value of bits set in the Operation Enable register.
Comments • Returned Value: Decimal weighted sum of all set bits. The data type is uint16.
Usage STAT:OPER:ENABLE? Enter statement returns current value of bits set in the Operation Enable register
STATus:OPERation[:EVENt]? returns the decimal weighted value of the bits set in the Event register.
Comments • When using the Operation Event register to cause SRQ interrupts, STAT:OPER:EVENT? must be executed after an SRQ to re-enable future interrupts.
Usage STAT:OPER:EVENT? Enter statement will return the value of bits set in the Operation Event register STAT:OPER? Same as above
STATus

STATus:OPERation:NTRansition <transition_mask> sets bits in the Negative Transition Filter (NTF) register. When a bit in the NTF register is set to one, the corresponding bit in the Condition register must change from a one to a zero in order to set the corresponding bit in the Event register. When a bit in the NTF register is zero, a negative transition of the Condition register bit will not change the Event register bit.
transition_mask numeric (uint16) 0 - 32767 none
Comments • <transition_mask> may be sent as decimal, hex (#H), octal (#Q), or binary (#B).
Usage STAT:OPER:NTR 16 When "Measuring" bit goes false, set bit 4 in Status Operation Event register.
STATus:OPERation:NTRansition? returns the value of bits set in the Negative Transition Filter (NTF) register.
Usage STAT:OPER:NTR? Enter statement returns current value of bits set in the NTF register

STATus:OPERation:PTRansition <transition_mask> sets bits in the Positive Transition Filter (PTF) register. When a bit in the PTF register is set to one, the corresponding bit in the Condition register must change from a zero to a one in order to set the corresponding bit in the Event register. When a bit in the PTF register is zero, a positive transition of the Condition register bit will not change the Event register bit.
transition_mask numeric (uint16) 0 - 32767 none
Comments • <transition_mask> may be sent as decimal, hex (#H), octal (#Q), or binary (#B).
Usage STAT:OPER:PTR 16 When "Measuring" bit goes true, set bit 4 in Status Operation Event register.
STATus:OPERation:PTRansition? returns the value of bits set in the Positive Transition Filter (PTF) register.
Comments • Returned Value: Decimal weighted sum of all set bits. The data type is uint16.
Usage STAT:OPER:PTR? Enter statement returns current value of bits set in the PTF register

STATus:PRESet sets the Operation Status Enable and Questionable Data Enable registers to 0. After executing this command, none of the events in the Operation Event or Questionable Event registers will be reported as a summary bit in either the Status Byte Group or Standard Event Status Group. STATus:PRESet does not clear either of the Event registers.
Usage STAT:PRESET Clear both of the Enable registers
The Questionable Data Group indicates when errors are causing lost or questionable data. The bit assignments are:
Bit # dec value hex value Bit Name Description
8 256 010016 Calibration Lost At *RST or Power-on Control Processor has found a checksum error in the Calibration Constants. Read error(s) with SYST:ERR? and re-calibrate area(s) that lost constants.
9 512 020016 Trigger Too Fast Scan not complete when another trigger event received.
10 1024 040016 FIFO Overflowed Attempt to store more than 65,024 readings in FIFO.
11 2048 080016 Over voltage Detected on Input
If the input protection jumper has not been cut, the input relays have been opened and *RST is required to reset the module. Overvoltage will also generate an error.
12 4096 100016 VME Memory Overflow
The number of readings taken exceeds VME memory space.
13 8192 200016 Setup Changed Channel Calibration in doubt because SCP setup may have changed since last *CAL? or CAL:SETup command. (*RST always sets this bit).
STATus · 0-7 Not used · 14-15 Not used

STATus:QUEStionable:CONDition? returns the decimal weighted value of the bits set in the Condition register.
Comments • The Condition register reflects the real-time state of the status signals. The signals are not latched; therefore, past events are not retained in this register (see STAT:QUES:EVENT?).
STATus:QUEStionable:ENABle <enable_mask> sets bits in the Enable register that will enable corresponding bits from the Event register to set the Questionable summary bit.
enable_mask numeric (uint16) 0 - 32767 none
Comments • The <enable_mask> parameter may be sent as decimal, hex (#H), octal (#Q), or binary (#B).
Usage STAT:QUES:ENABLE 128 Set bit 7 in the Questionable Enable register
![Page 390 of the VXI VT1422A user manual — STATus:QUEStionable[:EVENt]?](/cdn/reader/9e/9e80b65a3c1c97d177a1eec46a7ccf82e797658477697872f7e1e0d805bc440a/images/page-390.webp?w=400)
STATus:QUEStionable:ENABle? returns the value of bits set in the Questionable Enable register.
Comments • Returned Value: Decimal weighted sum of all set bits. The data type is uint16.
Usage STAT:QUES:ENABLE? Enter statement returns current value of bits set in the Questionable Enable register
STATus:QUEStionable[:EVENt]? returns the decimal weighted value of the bits set in the Event register.
Comments • When using the Questionable Event register to cause SRQ interrupts, STAT:QUES:EVENT? must be executed after an SRQ to re-enable future interrupts.
Usage STAT:QUES:EVENT? Enter statement will return the value of bits set in the Questionable Event register STAT:QUES? Same as above
STATus

STATus:QUEStionable:NTRansition <transition_mask> sets bits in the Negative Transition Filter (NTF) register. When a bit in the NTF register is set to one, the corresponding bit in the Condition register must change from a one to a zero in order to set the corresponding bit in the Event register. When a bit in the NTF register is zero, a negative transition of the Condition register bit will not change the Event register bit.
transition_mask numeric (uint16) 0 - 32767 none
Comments • <transition_mask> may be sent as decimal, hex (#H), octal (#Q), or binary (#B).
Usage STAT:QUES:NTR 1024 When "FIFO Overflowed" bit goes false, set bit 10 in Status Questionable Event register.
STATus:QUEStionable:NTRansition? returns the value of bits set in the Negative Transition Filter (NTF) register.
Usage STAT:QUES:NTR? Enter statement returns current value of bits set in the NTF register

STATus:QUEStionable:PTRansition <transition_mask> sets bits in the Positive Transition Filter (PTF) register. When a bit in the PTF register is set to one, the corresponding bit in the Condition register must change from a zero to a one in order to set the corresponding bit in the Event register. When a bit in the PTF register is zero, a positive transition of the Condition register bit will not change the Event register bit.
transition_mask numeric (uint16) 0 - 32767 none
Comments • <transition_mask> may be sent as decimal, hex (#H), octal (#Q), or binary (#B).
Usage STAT:QUES:PTR 1024 When "FIFO Overflowed" bit goes true, set bit 10 in Status Operation Event register.
STATus:QUEStionable:PTRansition? returns the value of bits set in the Positive Transition Filter (PTF) register.
Comments • Returned Value: Decimal weighted sum of all set bits. The data type is uint16.
Usage STAT:OPER:PTR? Enter statement returns current value of bits set in the PTF register

The SYSTem subsystem is used to query for error messages, types of Signal Conditioning Plug-ons (SCPs) and the SCPI version currently implemented.
:CTYPe? (@) :CTYPe:REMote?
SYSTem:CTYPe? (@<channel>) returns the identification of the Signal Conditioning Plug-On installed at the specified channel.
channel channel list (string) 100 - 163 none
Comments • The <channel> parameter must specify a single channel only.
The data type is string. For specific response string, refer to the appropriate SCP manual. If specifies a position where no SCP is installed, the module returns the response string: 0,No SCP at this Address,0,0
Usage SYST:CTYPE? (@100) return SCP type installed at channel 0
SYSTem:CTYPe:REMote? (@<channel>) returns the identification of the Remote Strain Conditioning Unit (VT1529A or VT1529B) installed at the specified channel.
This command is available with VXIplug&play driver revision A.01.09 or later (revision A.01.06 or later of hpe1422_32.dll).

channel channel list (string) 100 - 15731 none
Comments • The <channel> parameter must specify a single channel only. Either the 3-digit or 5-digit format can be used.
The data type is string.
Usage SYST:CTYPE? (@100) return SCP type installed at channel 0
SYSTem:ERRor? returns the latest error entered into the Error Queue.
Comments • SYST:ERR? returns one error message from the Error Queue (returned error is removed from queue). To return all errors in the queue, repeatedly execute SYST:ERR? until the error message string = +0, "No error"
Usage SYST:ERR? returns the next error message from the Error Queue
SYSTem:VERSion? returns the version of SCPI this instrument complies with.
Comments • Returned Value: String "1990." The data type is string.
Usage SYST:VER? Returns "1990"

The TRIGger command subsystem controls the behavior of the trigger system once it is initiated (see INITiate command subsystem).
Figure 7-6 shows the overall Trigger System model. The shaded area shows the ARM subsystem portion.

Figure 7-6. Logical Trigger Model
CAUTION Algorithms execute at most once per trigger event. Should trigger events cease (i.e. external trigger source stops) or become ignored (TRIGger:COUNt reached), algorithms execution will stop. In this case control outputs are left at the last value set by the algorithms. Depending on the process, this uncontrolled situation could even be dangerous. Make certain that the process has been put into a safe state before halting (stop triggering) execution of a controlling algorithm.
TRIGger

Event Sequence Figure 7-7 shows how the module responds to various trigger/arm configurations.

Figure 7-7. Trigger/Scan Sequence Diagram
:COUNt :COUNt? [:IMMediate] :SOURce BUS | EXTernal | HOLD | SCP | IMMediate | TIMer | TTLTrg :SOURce? :TIMer
[:PERiod] [:PERiod]?
TRIGger · TRIGger

TRIGger:COUNt <trig_count> sets the number of times the module can be triggered before it returns to the Trigger Idle State. The default count is 1. Note that this default was chosen to make testing data acquisition scan lists easier (only one scan list worth of data in FIFO per trigger). For algorithm operation, it is usually desirable to change the count to INFinite to accept continuous triggers. See Figure 7-7 on page 394.
0 to 65535 | INF none
Comments • When <trig_count> is set to 0 or INF, the trigger counter is disabled. Once INITiated the module will return to the Waiting-For-Trigger State after each trigger event. The ABORT (preferred) and *RST commands will return the module to the Trigger Idle State. ABORT is preferred since *RST also returns other module configurations to their default settings.
Usage TRIG:COUNT 10 Set the module to make ten passes all enabled algorithms. TRIG:COUNT 0 Set the module to accept unlimited triggers (the default)
TRIGger:COUNt? returns the currently set trigger count.
Usage TRIG:COUNT? Query for trigger count setting enter statement Returns the TRIG:COUNT setting

TRIGger[:IMMediate] causes one trigger when the module is set to the TRIG:SOUR BUS or TRIG:SOUR HOLD mode.
Comments • This command is equivalent to the *TRG common command or the IEEE-488.2 "GET" bus command.
Usage TRIG:IMM Use TRIGGER to start a measurement scan
TRIGger:SOURce <trig_source> configures the trigger system to respond to the trigger event.
trig_source discrete (string) BUS | EXT | HOLD | IMM | SCP | TIM
Comments • The following table explains the possible choices.
BUS TRIGger[:IMMediate], *TRG, GET (for GPIB)
EXTernal “TRG” signal on terminal module
HOLD TRIGger[:IMMediate]
IMMediate The trigger event is always satisfied.
SCP SCP Trigger Bus (future SCP Breadboard)
TIMer The internal trigger timer
TTLTrg The VXIbus TTLTRG lines (n=0 through 7)

Usage TRIG:SOUR EXT Hardware trigger input at Connector Module
TRIGger:SOURce? returns the current trigger source configuration.
Usage TRIG:SOUR? ask VT1422A to return trigger source configuration
TRIGger:TIMer[:PERiod] <trig_interval> sets the interval between scan triggers. Used with the TRIG:SOUR TIMER trigger mode.
100E-6 to 6.5536 | MIN | MAX
Comments • In order for the TRIG:TIMER to start it must be Armed. For information on timer arming see the ARM subsystem in this command reference.
![Page 400 of the VXI VT1422A user manual — TRIGger:TIMer[:PERiod]?](/cdn/reader/9e/9e80b65a3c1c97d177a1eec46a7ccf82e797658477697872f7e1e0d805bc440a/images/page-400.webp?w=400)
Usage TRIG:TIMER 1.0E-1 Set the module to scan inputs and execute all algorithms every 100 ms TRIG:TIMER 1 Set the module to scan inputs and execute all algorithms every second
TRIGger:TIMer[:PERiod]? returns the currently set Trigger Timer interval.
Comments • Returned Value: Numeric 1 through 6.5536. The data type is float32.
Usage TRIG:TIMER? Query trig timer enter statement Returns the timer setting
TRIGger

IEEE-488.2 Common Command Reference
*CAL? Calibration command. The calibration command causes the Channel Calibration function to be performed for every module channel. The Channel Calibration function includes calibration of A/D Offset and Gain and Offset for all 64 channels. This calibration is accomplished using internal calibration references. The *CAL? command causes the module to calibrate A/D offset and gain and all channel offsets. This may take many minutes to complete. The actual time it will take the VT1422A to complete *CAL? depends on the mix of SCPs installed.
*CAL performs literally hundreds of measurements of the internal calibration sources for each channel and must allow seventeen time constants of settling wait each time a filtered channel's calibrations source value is changed. The *CAL procedure is internally very sophisticated and results in an extremely well calibrated module.
To perform Channel Calibration on multiple VT1422As, use CAL:SETup/CAL:SETup?.
Value Meaning Further Action
0 Cal OK None
-1 Cal Error Query the Error Queue (SYST:ERR?)
See “Error Messages” on page 453.
The data type for this returned value is int16.

IEEE-488.2 Common Command Reference
*CLS Clear Status Command. The *CLS command clears all status event registers (Standard Event Status Event Register, Standard Operation Status Event Register, Questionable Data Event Register) and the instrument's error queue. This clears the corresponding summary bits (bits 3, 5, and 7) in the Status Byte Register. *CLS does not affect the enable bits in any of the status register groups. (The SCPI command STATus:PRESet does clear the Operation Status Enable and Questionable Data Enable registers.) *CLS disables the Operation Complete function (*OPC command) and the Operation Complete Query function (*OPC? command).
*DMC
*DMC <name>,<cmd_data> Define Macro Command. Assigns one or a sequence of commands to a named macro.
The command sequence may be composed of SCPI and/or Common commands.
may be the same as a SCPI command, but may not be the same as a Common command. When a SCPI named macro is executed, the macro rather than the SCPI command is executed. To regain the function of the SCPI command, execute the *EMC 0 command.
is sent as arbitrary block program data (see “Arbitrary Block Program and Response Data” on page 233).
*EMC <enable> Enable Macro Command. When is non-zero, macros are enabled. When is zero, macros are disabled.
*EMC? Enable Macro query. Returns either 1 (macros are enabled) or 0 (macros are disabled).

IEEE-488.2 Common Command Reference
*ESE <mask> Standard Event Status Enable Register Command. Enables one or more events in the Standard Event Status Register to be reported in bit 5 (the Standard Event Status Summary Bit) of the Status Byte Register. An event is enabled by specifying its decimal weight for <mask>. To enable more than one event (bit), specify the sum of the decimal weights. The data type for is int16.
Bit # 7 6 5 4 3 2 1 0
Weighted Value 128 64 32 16 8 4 2 1
Event power-On User Request
*ESE?
*ESE? Standard Event Status Enable Query. Returns the weighted sum of all enabled (unmasked) bits in the Standard Event Status Register. The data type for this returned value is int16.
*ESR? Standard Event Status Register Query. Returns the weighted sum of all set bits in the Standard Event Status Register. After reading the register, *ESR? clears the register. The events recorded in the Standard Event Status Register are independent of whether or not those events are enabled with the *ESE command to set the Standard Event Summary Bit in the Status Byte Register. The Standard Event bits are described in the *ESE command. The data type for this returned value is int16.
*GMC? <name> Get Macro query. Returns arbitrary block response data which contains the command or command sequence defined for . For more information, see “Arbitrary Block Program and Response Data” on page 233.

IEEE-488.2 Common Command Reference
*IDN? Identity. Returns the device identity. The response consists of the following four fields (fields are separated by commas):
*IDN? returns the following response strings depending on model and options: HEWLETT-PACKARD,E1422A,<serial number>,<revision number>
*LMC? Learn Macros query. Returns a quoted string name for each currently defined macro. If more than one macro is defined, the strings are separated by commas (,). If no macro is defined, *LMC? returns a null string.
*OPC Operation Complete. Causes an instrument to set bit 0 (Operation Complete Message) in the Standard Event Status Register when all pending operations invoked by SCPI commands have been completed. By enabling this bit to be reflected in the Status Byte Register (*ESE 1 command), synchronization between the instrument and an external computer or between multiple instruments can be ensured.

IEEE-488.2 Common Command Reference
*OPC? Operation Complete Query. Causes an instrument to place a 1 into the instrument's output queue when all pending instrument operations invoked by SCPI commands are finished. By requiring the computer to read this response before continuing program execution, synchronization can be ensured between one or more instruments and the computer. The data type for this returned value is int16.
If an algorithm is running continuously, then *OPC? will never return (will "hang"). In this case, send a device clear, then *RST or ABORT to stop the algorithm. *OPC? must be used with care when the VT1422A is INITiated.
*PMC Purge Macros Command. Purges all currently defined macros.
*RMC <name> Remove individual Macro Command. Removes the named macro command.
WARNING Note the change in character of output channels when *RST is received. Digital outputs change to inputs (appearing now is 1 kΩ to +3 V, a TTL one) and analog control outputs change to zero (current or voltage). Keep these changes in mind when applying the VT1422A to the system or engineering a system for operation with the VT1422A. Also, note that each analog output channels disconnects for 5 - 6 milliseconds to discharge to zero at each *RST.

IEEE-488.2 Common Command Reference
*SRE <mask> Service Request Enable. When a service request event occurs, it sets a corresponding bit in the Status Byte Register (this happens whether or not the event has been enabled (unmasked) by *SRE). The *SRE command allows one to identify which of these events will assert an GPIB service request (SRQ). When an event is enabled by *SRE and that event occurs, it sets a bit in the Status Byte Register and issues an SRQ to the computer (sets the GPIB SRQ line true). An event is enabled by specifying its decimal weight for <mask>. To enable more than one event, specify the sum of the decimal weights. Refer to "The Status Byte Register" for a table showing the contents of the Status Byte Register. The data type for is int16.
Bit # 7 6 5 4 3 2 1 0
Weighted Value 128 64 32 16 8 4 2 1
not used not used not used
*SRE?
*SRE? Status Register Enable Query. Returns the weighted sum of all enabled (unmasked) events (those enabled to assert SRQ) in the Status Byte Register. The data type for this returned value is int16.

IEEE-488.2 Common Command Reference
*STB? Status Byte Register Query. Returns the weighted sum of all set bits in the Status Byte Register. Refer to the *ESE command earlier in this chapter for a table showing the contents of the Status Byte Register. *STB? does not clear bit 6 (Service Request). The Message Available bit (bit 4) may be cleared as a result of reading the response to *STB?. The data type for this returned value is int16.
*TRG
*TRG Trigger. Triggers an instrument when the trigger source is set to bus (TRIG:SOUR BUS command) and the instrument is in the Wait for Trigger state.
*TST?
*TST? Self-Test. Causes an instrument to execute extensive internal self-tests and returns a response showing the results of the self-test.
Value Meaning Further Action
0 *TST? OK None
-1 *TST? Error Query the Error Queue (SYST:ERR?) for error 3052. See explanation below.

IEEE-488.2 Common Command Reference
Test numbers 20, 30-37, 72, 74-76, and 80-93 may indicate a problem with a Signal Conditioning Plug-on.
For tests 20 and 30-37, remove all SCPs and see if *TST? passes. If so, replace SCPs one at a time until the one causing the problem is found.
For tests 72, 74-76, and 80-93, try to re-seat the SCP that the channel number(s) points to or move the SCP and see if the failure(s) follow the SCP. If the problems move with the SCP, replace the SCP.
These are the only tests where the user should troubleshoot a problem. Other tests which fail should be referred to qualified repair personnel.
Note Executing *TST? returns the module to its *RST state. *RST causes the FIFO data format to return to its default of ASC,7. To read the FIFO for *TST? diagnostic information in a format other than ASCII,7 format, be certain to set the data FIFO format to the desired format (FORMAT command) after completion of *TST? but before executing a SENSE:DATA:FIFO: query command.
1-3: Writes and reads patterns to registers via A16 & A24 4-5: Checks FIFO and CVT 6: Checks measurement complete (Measuring) status bit 7: Checks operation of FIFO half and FIFO full IRQ generation 8-9: Checks trigger operation
Test# Description

IEEE-488.2 Common Command Reference
40-42: Checks internal voltage reference 43-44: Checks zero of A/D, internal cal source and relay drives 45-46: Checks fine offset calibration DAC 47-48: Checks coarse offset calibration DAC 49: Checks internal + and -15 V supplies 50-53: Checks internal calibration source 54-55: Checks gain calibration DAC 56-57: Checks that autorange works 58-59: Checks internal current source 60-63: Checks front end and A/D noise and A/D filter 64: Checks zeroing of coarse and fine offset calibration DACs 65-70: Checks current source and CAL BUS relay and relay drives and ohm relay drive 71: See 33 72-73: Checks continuity through SCPs, bank relays and relay drivers 74: Checks open transducer detect 75: Checks current leakage of the SCPs 76: Checks voltage offset of the SCPs 80: Checks mid-scale strain dac output. Only reports first channel of SCP. 81: Checks range of strain DAC. Only reports first channel of SCP. 82: Checks noise of strain DAC. Only reports first channel of SCP. 83: Checks bridge completion leg resistance each channel. 84: Checks combined leg resistance each channel. 86: Checks current source SCP's OFF current. 87: Checks current source SCP's current dac mid-scale. 88: Checks current source SCP's current dac range on HI and LO ranges. 89: Checks current source compliance 90: Checks strain SCP's Wagner Voltage control. 91: Checks autobalance dac range with input shorted. 92: Sample and Hold channel holds value even when input value changed. 93: Sample and Hold channel held value test for droop rate.
Test# Description · Test# Description

IEEE-488.2 Common Command Reference
301: Current and Voltage Output SCPsdigital DAC control. 302: Current and Voltage Output SCPsDAC noise. 303: Current Output SCP offset 304: Current Output SCP gain shift 305: Current Output SCP offset 306: Current Output SCP linearity 307: Current Output SCP linearity 308: Current Output SCP turn over 313: Voltage Output SCP offset 315: Voltage Output SCP offset 316: Voltage Output SCP linearity 317: Voltage Output SCP linearity 318: Voltage Output SCP turn over 331: Digital I/O SCP internal digital interface 332: Digital I/O SCP user input 333: Digital I/O SCP user input 334: Digital I/O SCP user output 335: Digital I/O SCP user output 336: Digital I/O SCP output current 337: Digital I/O SCP output current 341: Freq/PWM/FM SCP internal data0 register 342: Freq/PWM/FM SCP internal data1 register 343: Freq/PWM/FM SCP internal parameter register 344: Freq/PWM/FM SCP on-board processor self-test 345: Freq/PWM/FM SCP on-board processor self-test 346: Freq/PWM/FM SCP user inputs 347: Freq/PWM/FM SCP user outputs 348: Freq/PWM/FM SCP outputs ACTive/PASSive 349: Freq/PWM/FM SCP output interrupts 350: Watchdog SCP enable/disable timer 351: Watchdog SCP relay drive and coil closed 352: Watchdog SCP relay drive and coil open 353: Watchdog SCP I/O Disconnect line 354: Watchdog SCP I/O Disconnect supply
*WAI Wait-to-continue. Prevents an instrument from executing another command until the operation begun by the previous command is finished (sequential operation).

The following tables summarize SCPI and IEEE-488.2 Common (*) commands for the VT1422A Remote Channel Multifunction Module.
SCPI Command Quick Reference Command Description
ABORt Stops scanning immediately and sets trigger system to idle state (scan lists are unaffected)
ALGorithm Subsystem to define, configure and enable loop control algorithms
[:EXPLicit]
:ARRay ’’,’’, Defines contents of array in algorithm or if is "GLOBALS", defines values global to all algorithms.
:ARRay? ’’,’’ Returns block data from in algorithm or if is "GLOBALS", returns values from a global array.
:DEFine ’’[,],’
:SCALar ’’,’’, Defines value of variable in algorithm or if is "GLOBALS", defines a value global to all algorithms.
:SCALar? ’’,’’ Returns value from in algorithm or if is "GLOBALS," returns a value from global variable.
:RATio ’’, Sets scan triggers per execution of (send also ALG:UPD)
:RATio? ’’ Returns scan triggers per execution of
:SIZe? ’’ Returns size in words of named algorithm
:STATe ’’,ON | OFF Enables/disables named algorithm after ALG:UPDATE sent
:STATe? ’’ Returns state of named algorithm
:TIME? ’’ | MAIN Returns worst case alg execution time. Use "MAIN" for overall time.
:FUNCtion
:DEFine ’’,,, Defines a custom conversion function
:OUTPut
:DELay | AUTO Sets the delay from scan trigger to start of outputs
:DELay? Returns the delay from scan trigger to start of outputs
:UPDate
[:IMMediate] Requests immediate update of algorithm code, variable or array
:CHANnel (@ Sets dig channel to synch algorithm updates
:WINDow Sets a window for num_updates to occur. *RST default is 20.
:WINDow? Returns setting for allowable number variable and algorithm updates.
[:IMMediate] Arm if ARM:SOUR is BUS or HOLD (software ARM)
:SOURce BUS | EXT | HOLD | IMM | SCP | TTLTrg Specify the source of Trigger Timer ARM
:SOURce? Return current ARM source
:TEMPerature:THERmistor? ,[,resistance] Calculates temperature (in °C) of VT1586A reference thermistor.
:TEMPerature:TCouple? ,, Converts array of thermocouple output voltages into temperatures (in °C)
:CONFigure Prepare to measure on-board references with an external multimeter
:RESistance Configure to measure reference resistor
:VOLTage , ZERO | FSCale Configure to measure reference voltage range at zero or full scale
Command Quick Reference · CALCulate · CALibration

SCPI Command Quick Reference Command Description
:REMote? Calibrates Remote Signal Conditioning Units
:DATA Sends RSC cal constants from CAL:REM:DATA? back to VT1422A
:DATA? Queries VT1422A for all remote cal constants
:STORe Copies RSCU calibration constants from working ram to non-volatile memory
:SETup Performs Channel Calibration procedure
:SETup? Returns state of CAL:SETup operation (returns error codes or 0 for OK)
:STORe ADC | TARE Store cal constants to non-volatile Flash RAM for either A/D calibration or those generated by the CAL:TARE command
:TARE (@) Calibrate out system field wiring offsets
:RESet Resets cal constants from CAL:TARE back to zero for all channels
:TARE? Returns state of CAL:TARE operation (returns error codes or 0 for OK)
:VALue
:RESistance Send to instrument the value of just measured reference resistor
:VOLTage Send to instrument the value of just measured voltage reference
:ZERO? Correct A/D for short term offset drift (returns error codes or 0 for OK)
:CALibration
:SETup
[:MODE] 0 | 1 Set analog DAC output SCP calibration mode
[:MODE]? Return current setting of DAC calibration mode
:TARe
[:MODE] 0 | 1 Set mode to control OTD current during tare calibration
[:MODE]? Return current setting of OTD control during tare calibration
:CHECksum? Perform checksum on Flash RAM and return a '1' for OK, a '0' for corrupted or deleted memory contents
:CONNect ,(@) connect VT1529A/B channels to measure internal values for verification
:CUSTom
:MXB ,(@) Generates and loads linear custom EU table
:PIECewise ,,(@) Loads piecewise custom EU table
:REFerence:TEMPerature Puts the contents of the Reference Temperature Register into the FIFO
:INTerrupt[:LINe] Sets the VXIbus interrupt line the module will use
:INTerrupt[:LINe]? Returns the VXIbus interrupt line the module is using
:OTDetect[:STATe] ON | OFF, (@) Controls "Open Transducer Detect" on SCPs contained in
:OTDetect[:STATe]? (@) Returns current state of OTD on SCP containing
:QUERy
:SCPREAD? Returns value from an SCP register
:REMote
:NUMber? ,,(@) Performs single selected self-test on RSCU a selected number of times
:SELFtest? (@) Performs complete self-test on Remote Signal Conditioning Units
:VERSion? Returns manufacturer, model, serial#, flash revision # and date e.g., HEWLETT-PACKARD,E1422A,US34000478,A.04.00, Wed Jul 08 11:06:22 MDT 1994
FETCh? Return readings stored in VME Memory (format set by FORM cmd)
Command Quick Reference · CALibration (continued) · DIAGnostic

SCPI Command Quick Reference Command Description
[:DATA] [, ] Set format for response data from [SENSe:]DATA?
ASCii[, 7] Seven bit ASCII format (not as fast as 32-bit because of conversion)
PACKed[, 64] Same as REAL, 64 except NaN, +INF and -INF formatted for BASIC
REAL[, 32] IEEE 32-bit floating point (requires no conversion so is fastest)
REAL, 64 IEEE 64-bit floating point (not as fast as 32-bit because of conversion)
[:DATA]? Returns format: REAL, +32 | REAL, +64 | PACK, +64 | ASC, +7
[:IMMediate] Put module in Waiting for Trigger state (ready to make one scan)
:FILTer Control filter Signal Conditioning Plug-ons
[:LPASs]
:FREQuency ,(@) Sets the cutoff frequency for active filter SCPs
:FREQuency? (@) Returns the cutoff frequency for the channel specified
[:STATe] ON | OFF, (@) Turn filtering OFF (pass through) or ON (filter)
[:STATe]? (@) Return state of SCP filters
:GAIN ,(@) Set gain for amplifier-per-channel SCP
:GAIN? (@) Returns the channel's gain setting
:LOW ,(@) Controls the connection of input LO on a Strain Bridge (Opt. 21 SCP)
:LOW? (@) Returns the LO connection for the Strain Bridge at channel
:POLarity NORmal | INVerted,(@) Sets input polarity on a digital SCP channel
:POLarity? (@) Returns digital polarity currently set for
MEASure MEAS performs automatic setup and measurement scanning:
:VOLTage return value in volts;
:EXCitation? (@) measure excitation voltage at strain bridge, send to EU conversion
:UNSTrained? (@) measure unstrained bridge output voltage, send to EU conversion
:ADDRess Specify address of VME memory card to be used as reading storage
:ADDRess? Returns address of VME memory card
:SIZE Specify number of bytes of VME memory to be used to store readings
:SIZE? Returns number of VME memory bytes allocate to reading storage
:STATe 1 | 0 | ON | OFF Enable or disable reading storage in VME memory at INIT
:STATe? Returns state of VME memory, 1=enabled, 0=disabled
:CURRent
:AMPLitude ,(@) Set amplitude of Current Source SCP channels
:AMPLitude? (@) Returns the setting of the Current Source SCP channel
:STATe ON | OFF,(@) Enable or disable the Current Source SCP channels
:STATe? (@) Returns the state of the Current Source SCP channel
:POLarity NORmal | INVerted,(@) Sets output polarity on a digital SCP channel
:POLarity? (@) Returns digital polarity currently set for
:SHUNt ON | OFF,(@) Adds shunt resistance to leg of Bridge Completion SCP channels
:SOURce INTernal | EXTernal,(@) Selects either the VT1529A/B’s internal shunt resistor or an external shunt resistor
:SHUNt? (@) Returns the state of the shunt resistor on Bridge Completion SCP channel
:TTLTrg
:SOURce FTRigger | LIMit | SCPlugon | TRIGger Sets the internal trigger source that can drive the VXIbus TTLTrg lines
:SOURce? Returns the source of TTLTrg drive.

SCPI Command Quick Reference Command Description
:TTLTrg
[:STATe] ON | OFF When module triggered, source a VXIbus trigger on TTLTrg
[:STATe]? Returns whether the TTL trigger line specified by n is enabled
:TYPE PASSive | ACTive,(@) sets the output drive type for a digital channel
:TYPE? (@) Returns the output drive type for
:VOLTage
:AMPLitude ,(@) Sets the voltage amplitude on Voltage Output and Strain SCPs
:AMPLitude? (@) Returns the voltage amplitude setting
:SEQuence
:DEFine (@) Defines the analog scan list.
:DEFine? AIN | AOUT | DIN | DOUT | DEST Returns comma separated list of channels in analog I|O, dig I|O ch lists. For DEST, returns the data destination for each AIN channel; 0 = none, 1 = CVT, 2 = FIFO, 3 = CVT&FIFO, -1=set by algorithm (writefifo, writecvt, writeboth)
:POINts? AIN | AOUT | DIN | DOUT Returns number of channels defined in above lists.
:TIMer ,(@) sets the time interval between channel measurements
:TIMer? (@) Returns the time interval between channel measurements
[SENSe:]
:SETTling ,(@) Sets the channel settling time for channels in <ch_list>
:SETTling? (@) Returns the channel settling time for <channel>
:CVTable? (@) Returns elements of Current Value Table specified by <ch_list>
:RESet Resets all entries in the Current Value Table to IEEE "Not-a-number"
[:ALL]? Fetch all readings until instrument returns to trigger idle state
:COUNt? Returns the number of measurements in the FIFO buffer
:HALF? Returns 1 if at least 32,768 readings are in FIFO, else returns 0
:HALF? Fetch 32,768 readings (half the FIFO) when available
:MODE BLOCK | OVERwrite Set FIFO mode.
:MODE? Return the currently set FIFO mode
:PART? Fetch <n_readings> from FIFO reading buffer when available
:RESet Reset the FIFO counter to 0
:APERture ,(@) Sets the gate time for frequency counting
:APERture? (@) Returns the gate time set for frequency counting
FUNCtion Equate a function and range with groups of channels
:CONDition (@) Sets function to sense digital state
:CUSTom [,](@) Links channels to custom EU conversion table loaded by DIAG:CUST:MXB or DIAG:CUST:PIEC commands
:HVOLtage [,](@) Links VT1529B high-level input (DCV measurement) channels to custom EU conversion table loaded by DIAG:CUST:MXB or DIAG:CUST:PIEC
:REFerence [,](@) Links channels to custom reference temperature EU conversion table loaded by DIAG:CUST:PIEC commands
:TC ,[,](@) Links channels to custom temperature EU conversion table loaded by DIAG:CUST:PIEC and performs ref temp compensation for
:FREQuency (@) Configure channels to measure frequency
:HVOLtage (@) Links the specified VT1529B channels to return DCV on high-input pins on RJ-45 connector for channel

SCPI Command Quick Reference Command Description
SENse:FUNCtion (continued)
:RESistance ,[,](@) Configure channels to sense resistance measurements
:STRain Links measurement channels as having read bridge voltage from:
:FBENding [,](@) Full BENding
:POST [,](@
:FBPoisson [,](@) Full Bending Poisson
:POST [,](@
:FPOisson [,](@) Full POisson
:POST [,](@
:HBENding [,](@) Half BENding
:POST [,](@
:HPOisson [,](@) Half Poisson
:POST [,](@
[:QUARter] [,](@) QUARter
:POST [,](@
:Q120 [,](@) Quarter bridge with the 120 Ω resistor selected (VT1529A/B only)
:POST [,](@
:Q350 [,](@) Quarter bridge with the 350 Ω resistor selected (VT1529A/B only)
:POST [,](@
:USER [,](@) Quarter bridge with the user supplied resistor selected (VT1529A/B only)
:POST [,](@
RTD, 85 | 92 RTDs
TCouple, CUST | E | EEXT | J | K | N | S | T thermocouples
THERmistor, 2250 | 5000 | 10000 thermistors
:TEMPerature ,,
Configure channels for temperature measurement types above: excitation current comes from Current Output SCP.
[,](@)
:POST TC, ,[,](@) Links VT1529B channels to post-processing temperature EU conversion
:TOTalize (@) Configure channels to count digital state transitions
:VOLTage[:DC] [,](@) Configure channels for dc voltage measurement
RTD, 85 | 92 RTDs
REFerence ,,[,](@) Configure channel for reference temperature measurements above:
:POST THERmistor, ,[],
Links thermistor channel to excitation voltage channel and to reference junction temperature EU conversion
(@
:CHANnels (@),(@) Groups reference temperature channel with TC measurement channels
:POST (@ref_channel>), (@
:TEMPerature Specifies the temperature of a controlled temperature reference junction
:POST , (@<ch_list>) Stores fixed reference junction temperature for post-processing EU conversions for specified thermocouple channels
:THERmistor
:RESistance:POST , (@) Specifies sum of resistor values in thermistor divider circuit for specified thermistor channels when using VT1529B for temperature measurements
:RESistance:POST? (@) Returns programmed sum of resistor values in thermistor divider circuit
Command Quick Reference · THERmistor,5000 thermistors

SCPI Command Quick Reference Command Description
:STRain
:BRIDge[:TYPE] ,(@) Set bridge configuration switches on VT1529A/B
:BRIDge[:TYPE]? (@) Returns the current bridge configuration setting
:CONNect BRIDge | EXCitation,(@) Set switches to sense bridge output or excitation voltage on VT1529A/B
:CONNect? (@) Returns the current sense setting for the channel specified
:EXCitation ,(@) Specifies the Excitation Voltage by channel to the strain EU conversion
:EXCitation? (@) Returns the Excitation Voltage set for
:STATe ON | OFF,(@) controls state of excitation supply relay in VT1529A/B to banks of 8 channels
:STATe? (@) returns state of excitation supply relay ("ON" | "OFF"
:GFACtor ,(@) Specifies the Gage Factor by channel to the strain EU conversion
:GFACtor? (@) Returns the Gage Factor set for
:POISson ,(@) Specifies the Poisson Ratio by channel to the strain EU conversion
:POISson? (@) Returns the Poisson Ratio set for
:UNSTrained ,(@) Specifies the Unstrained Voltage by channel to the strain EU conversion
:UNSTrained? (@) Returns the Unstrained Voltage set for
[:STATe] 1 | 0 | ON | OFF,(@) Configure digital channels to output frequency modulated signal
[:STATe]? (@) Returns state of channels for FM output
:FUNCtion
[:SHAPe]
:CONDition (@) Configures channels to output static digital levels
:PULSe (@) Configures channels to output digital pulse(s)
:SQUare (@) Configures channels to output 50/50 duty cycle digital pulse train
:STATe 1 | 0 | ON | OFF,(@) Configure digital channels to output pulse width modulated signal
:STATe? (@) Returns state of channels for PW modulated output
:PULSe
:PERiod ,(@) Sets pulse period for PW modulated signals
:PERiod? (@) Returns pulse period for PW modulated signals
:WIDTh ,(@) Sets pulse width for FM modulated signals
:WIDTh? (@) Returns pulse width setting for FM modulated signals
:VOLTage
[:AMPLitude] ,(@) Used to correct for bridge offset at dynamic strain connector (Buffered Output)
:OPERation Operation Status Group: Bit assignments; 0=Calibrating, 4=Measuring, 8=Scan Complete, 10=FIFO Half Full, 11=algorithm interrupt
:CONDition? Returns state of Operation Status signals
:ENABle Bits set to 1 enable status events to be summarized into Status Byte
:ENABle? Returns the decimal weighted sum of bits set in the Enable register
[:EVENt]? Returns weighted sum of bits that represent Operation status events
:NTRansition Sets mask bits to enable pos. Condition Reg. transitions to Event reg
:NTRansition? Returns positive transition mask value
:PTRansition Sets mask bits to enable neg. Condition Reg. transitions to Event reg
:PTRansition? Returns negative transition mask value
:PRESet Presets both the Operation and Questionable Enable registers to 0
Command Quick Reference · SOURce · STATus

SCPI Command Quick Reference Command Description
:QUEStionable Questionable Data Status Group: Bit assignments; 8=Calibration Lost, 9=Trigger Too Fast, 10=FIFO Overflowed, 11=Over voltage, 12=VME Memory Overflow, 13=Setup Changed.
:CONDition? Returns state of Questionable Status signals
:ENABle Bits set to 1 enable status events to be summarized into Status Byte
:ENABle? Returns the decimal weighted sum of bits set in the Enable register
[:EVENt]? Returns weighted sum of bits that represent Questionable Data events
:NTRansition Sets mask bits to enable pos. Condition Reg. transitions to Event reg
:NTRansition? Returns positive transition mask value
:PTRansition Sets mask bits to enable neg. Condition Reg. transitions to Event reg
:PTRansition? Returns negative transition mask value
:CTYPe? (@) Returns the identification of the SCP at <channel>
:ERRor? Returns one element of the error queue "0" if no errors
:VERSion? Returns the version of SCPI this instrument complies with
:COUNt Specify the number of trigger events that will be accepted
:COUNt? Returns the current trigger count setting
[:IMMediate] Triggers instrument when TRIG:SOUR is TIMer or HOLD (same as *TRG and IEEE 488.1 GET commands.
:SOURce BUS | EXT | HOLD | IMM | SCP | TIMer | TTLTrg Specify the source of instrument triggers
:SOURce? Returns the current trigger source
:TIMer Sets the interval between scan triggers when TRIG:SOUR is TIMer
[:PERiod] Sets the interval between scan triggers when TRIG:SOUR is TIMer
[:PERiod]? Returns setting of trigger timer

IEEE-488.2 Common Command Quick Reference
Category Command Title Description
Calibration *CAL? Calibrate Performs internal calibration on all 64 channels out to the terminal module connector. Returns error codes or 0 for OK
Internal Operation *IDN? Identification Returns the response: HEWLETT-PACKARD,E1422A,<serial#>,<driver rev#>
*RST Reset Resets all scan lists to zero length and stops scan triggering. Status registers and output queue are unchanged.
*TST? Self-test Performs self-test. Returns 0 to indicate test passed.
Status Reporting *CLS Clear Status Clears all status event registers and so their status summary bits (except the MAV bit).
*ESE Event Status Enable Set Standard Event Status Enable register bits mask.
*ESE? Event Status Enable query Return current setting of Standard Event Status Enable register.
*ESR? Event Status Register query Return Standard Event Status Register contents.
*SRE Service Request Enable Set Service Request Enable register bit mask.
*SRE? Service Request Enable query Return current setting of the Service Request Enable register.
*STB? Read Status Byte query Return current Status Byte value.
Macros *DMC , Define Macro Command Assigns one or a sequence of commands to a macro.
*EMC 1 | 0 Enable Macro Command Enable/Disable defined macro commands.
*EMC? Enable Macros query Returns 1 for macros enabled, 0 for disabled.
*GMC? Get Macro query Returns command sequence for named macro.
*LMC? Learn Macro query Returns comma-separated list of defined macro names
*PMC Purge Macro Commands Purges all macro commands
*RMC Remove Individual Macro Removes named macro command.
Synchronization *OPC Operation Complete Standard Event register's Operation Complete bit will be 1 when all pending device operations have been finished.
*OPC? Operation Complete query Places an ASCII 1 in the output queue when all pending operations have finished.
*TRG Trigger Triggers module when TRIG:SOUR is HOLD.
*WAI Wait to Complete
Command Quick Reference



Power Requirements (with no SCPs installed) +5 V +12 V -12 V +24 V -24 V -5.2 V
IPm=Peak Module Current IPm IDm IPm IDm IPm IDm IPm IDm IPm IDm IPm IDm
IDm=Dynamic Module Current 1.0 0.02 0.06 0.01 0.01 0.01 0.1 0.01 0.1 0.01 0.15 0.01
Cooling Requirements Average watts/slot Δ Pressure (mm H2O) Air Flow (liters/s)
14 0.08 0.08
1.0 A ±24 V, 3.5 A 5 V
Power Available for SCPs
(See VXI Catalog or SCP manuals for SCP current)
VT1539A Power Requirements (in Amps)
dc volts (VT1501A or VT1502A) ±62.5 mV to ±16 V Full Scale
Temperature Thermocouples - -200 to +1700 °C
Thermistors - (Opt 15 required) -80 to +160 °C
RTD’s - (Opt 15 required) -200 to +850 °C
Resistance (VT1505A with VT1501A) 512 Ω to 131 kΩ FS
Strain 25,000 μ∈ or limit of linear range of strain gage
Measurement Resolution 16 bits (including sign)
Maximum Update Rate (running PIDA algorithms)
1 Algorithm 8 Algorithms 32 Algorithms
2.5 kHz 1 kHz 250 Hz
Specifications 419 Appendix A
Measurement Ranges

Trigger Timer and Sample Timer Accuracy
100 ppm (0.01%) from -10 °C to +70 °C
External Trigger Input TTL compatible input. Negative true edge triggered except first trigger will occur if external trigger input is held low when module is INITiated. Minimum pulse width 100 ns. Since each trigger starts a complete scan of two or more channel readings, maximum trigger rate depends on module configuration.
Maximum Input Voltage (Normal mode plus common mode)
With Direct Input, Passive Filter or Amplifier SCPs: Operating: < ±16 VPEAK Damage level: >±42 VPEAK With VT1513A Divide by 16 Attenuator SCP:
Maximum Common Mode Voltage
With Direct Input, Passive Filter or Amplifier SCPs: Operating: ±42 VPEAK
With VT1513A Divide by 16 Attenuator SCP:
Common Mode Rejection 0 to 60 Hz -105 dB
Input Impedance greater than 90 MΩ differential (1 MΩ with VT1513A Attenuator)
On-Board Current Source 122 µA ±0.02%, with ±17 volts Compliance
Maximum TARE CAL Offset SCP Gain = 1 (Maximum tare offset depends on A/D range and SCP gain)
A/D range ± V F.Scale
16 4 1 0.25 0.0625
Max Offset 3.2213 0.82101 0.23061 0.07581 0.03792
The following specifications reflect the performance of the VT1422A with the VT1501A Direct Input Signal Conditioning Plug-on. The performance of the VT1422A with other SCPs is found in the Specifications section of that SCP’s manual.
Measurement Accuracy dc volts
(90 days) 23 °C ±1 °C (with *CAL? done after 1 hr warm up and CAL:ZERO? within 5 min.). NOTE: If autoranging is ON:
for readings < 3.8 V, add ±0.02% to linearity specifications.
for readings ≥ 3.8 V, add ±0.05% to linearity specifications.
A/D range ± V F. Scale
Linearity % of Reading
Offset Error Noise 3 sigma Noise* 3 sigma
420 Specifications Appendix A

Measurement Accuracy dc volts
(90 days) 23 °C ±1 °C (with *CAL? done after 1 hr warm up and CAL:ZERO? within 5 min.). NOTE: If autoranging is ON:
for readings < 3.8 V, add ±0.02% to linearity specifications.
for readings ≥ 3.8 V, add ±0.05% to linearity specifications.
0.0625 0.25 1 4 16
0.01%
5.3 μV 10.3 μV 31 μV 122 μV 488 μV
18 μV 45 μV 110 μV 450 μV 1.8 mV
8 μV 24 μV 90 μV 366 μV 1.5 mV
Temperature Coefficient: Gain - 10 ppm/°C. Offset - (0 - 40 °C) 0.14 µV/°C, (40 - 55 °C) 0.8 µV + 0.38 µV/°C
Temperature Accuracy The following pages have temperature accuracy graphs that include instrument and firmware linearization errors. The linearization algorithm used is based on the ITS-90 standard transducer curves. Add transducer accuracy to determine total measurement error.
The thermocouple graphs on the following pages include only the errors due to measuring the voltage output of the thermocouple, as well as the algorithm errors due to converting the thermocouple voltage to temperature. To this error must be added the error due to measuring the reference junction temperature with an RTD or a 5k thermistor. See the graphs for the RTD or the 5k thermistor to determine this additional error. Also, the errors due to gradients across the isothermal reference must be added. If an external isothermal reference panel is used, consult the manufacturer’s specifications. If VXI Technology termination blocks are used as the isothermal reference, see the notes below.
The temperature specification graphs are found on the following pages:
Specifications 421 Appendix A


Thermocouple Type E (-200 - 800 °C), SCPs VT1501/02/03A

Specifications 423 Appendix A

Thermocouple Type E (-200 - 800 °C), SCPs VT1508/09A

424 Specifications Appendix A

Thermocouple Type E (0 - 800 °C), SCPs VT1501A/02A/03A

Specifications 425 Appendix A

Thermocouple Type E (0 - 800 °C), SCPs VT1508A/09A

426 Specifications Appendix A

Thermocouple Type E Extended, SCPs VT1501A/02A/03A

Specifications 427 Appendix A

Thermocouple Type E Extended, SCPs VT1508A/09A

428 Specifications Appendix A

Thermocouple Type J, SCPs VT1501A/02A/03A

Specifications 429 Appendix A

Thermocouple Type J, SCPs VT1508A/09A

430 Specifications Appendix A

Thermocouple Type K, SCPs VT1501A/02A/03A

Specifications 431 Appendix A

Thermocouple Type R, SCPs VT1501A/02A/03A

432 Specifications Appendix A

Thermocouple Type R, SCPs VT1508A/09A

Specifications 433 Appendix A

Thermocouple Type S, SCPs VT1501A/02A/03A

434 Specifications Appendix A

Thermocouple Type S, SCPs VT1508A/09A

Specifications 435 Appendix A

Thermocouple Type T, SCPs VT1501A/02A/03A

436 Specifications Appendix A

Thermocouple Type T, SCPs VT1508A/09A

Specifications 437 Appendix A

5k Thermistor Reference, SCPs VT1501A/02A/03A

438 Specifications Appendix A

5k Thermistor Reference, SCPs VT1508A/09A

Specifications 439 Appendix A

RTD Reference, SCPs VT1501A/02A/03A

440 Specifications Appendix A


Specifications 441 Appendix A
RTD, SCPs VT1501A/02A/03A


442 Specifications Appendix A
RTD, SCPs VT1508A/09A

2250 Thermistor, SCPs VT1501A/02A/03A

Specifications 443 Appendix A

2250 Thermistor, SCPs VT1508A/09A

444 Specifications Appendix A

5k Thermistor, SCPs VT1501A/02A/03A

Specifications 445 Appendix A

5k Thermistor, SCPs VT1508A/09A

446 Specifications Appendix A

10k Thermistor, SCPs VT1501A/02A/03A

Specifications 447 Appendix A

10k Thermistor, SCPs VT1508A/09A

448 Specifications Appendix A

General:
32 V per V 5000 V per V 0.06 mV (subject to rms noise limits)
Recommended measurement products:
VT1422A Remote Channel DAC Module plus up to eight VT1539A SCPs
VT1432A 16 Chan 51.2 kSamples/s Digitizer VT1433A 8 Chan 196 kSamples/s Digitizer
120/350 Ω ± 0.05%, ±5 ppm/°C TC 0.125W @ 125 °C
±8 V dc (16 V centered about Gnd terminal) ±0.01% of reading
Strain Measurement (Combined VT1422A + VT1529A/B)
Measurement range (μ∈) (Quarter bridge, ±5 V excitation): ±200,000 ±50,000 ±12,500 ±3,125
Resolution (μ∈) 6.1 1.5 0.4 0.1
rms noise (μ∈) 0.4 (noise can be reduced by averaging)
Specifications 449 Appendix A
Static strain measurements · Dynamic strain measurements · Bridge Specifications

Voltage offset: Typical offset depends on previous channel value as shown in figure below.
Typical offset error due to "soak" voltage
-0.5 -0.4 -0.3 -0.2 -0.1 0 0.1 0.2 0.3 0.4 0.5
40usec 100usec 200usec 500usec
Sustained "soak" voltage on low-voltage inputs
Drift:
32 V per V ±0.1% of reading 100 kHz
Quarter Bridge Bending Errors: (5 V Excitation, GF=2) μ∈ -50,000 -40,000 -30,000 -20,000 -10,000 0 10,000 20,000 30,000 40,000 50,000
Error (μ∈) 160 90 45 20 8 1 8 20 45 90 160
450 Specifications Appendix A
Offset error (µV) · Offset drift · Gain drift

Half Bridge Bending Errors: (5 V Excitation, GF=2) μ∈ -50,000 -40,000 -30,000 -20,000 -10,000 0 10,000 20,000 30,000 40,000 50,000
Error (μ∈) 28 23 17 12 6 0.5 6 12 17 23 28
Full Bridge Bending Errors: (5 V Excitation, GF=2) μ∈ -50,000 -40,000 -30,000 -20,000 -10,000 0 10,000 20,000 30,000 40,000 50,000
Error (μ∈) 28 22 17 11 6 0.3 6 11 17 22 28
Humidity: 5 to 85% R.H.
Specifications 451 Appendix A

452 Specifications Appendix A

-108 'Parameter not allowed.'
-109 'Missing parameter.'
-160 'Block data error.'
-211 'Trigger ignored.'
-212 'Arm ignored.'
-213 'Init ignored.'
-221 'Settings conflict.'
-222 'Data out of range.'
-224 'Illegal parameter value.'
-240 'Hardware error.' Execute *TST?.
-253 'Corrupt media.'
-281 'Cannot create program.'
-282 'Illegal program name.'
-310 'System error.'
-410 'Query INTERRUPTED.'
1000 'Out of memory.'
2001 'Invalid channel number.'
2003 'Invalid word address.'
2007 'Bus error.'
2008 'Scan list not initialized.'
2009 'Too many channels in channel list.'
2016 'Byte count is not a multiple of two.'
Error Messages 453 Chapter B

3000 'Illegal while initiated.' Operation must be performed before INIT or INIT:CONT ON.
3004 'Illegal command. CAL:CONF not sent.' Incorrect sequence of calibration commands. Send CAL:CONF:VOLT command before CAL:VAL:VOLT and send CAL:CONF:RES command before CAL:VAL:RES.
3005 'Illegal command. Send CAL:VAL:RES.' The only command accepted after a CAL:CONF:RES is a CAL:VAL:RES command.
3006 'Illegal command. Send CAL:VAL:VOLT.' The only command accepted after a CAL:CONF:VOLT is a CAL:VAL:VOLT command.
3007 'Invalid signal conditioning module.' The command sent to an SCP was illegal for its type.
3008 'Too few channels in scan list.' A Scan List must contain at least two channels.
3012 'Trigger too fast.' Scan list not completed before another trigger event occurs.
3015 'Channel modifier not permitted here.'
3019 'TRIG:TIM interval too small for SAMP:TIM interval and scan list size.' TRIG:TIM interval must allow for completion of entire scan list at currently set SAMP:TIM interval. See TRIG:TIM in Chapter 7, the Command Reference
3020 'Input overvoltage.' Calibration relays opened (if JM2202 not cut) to protect module inputs and Questionable Data Status bit 11 set. Execute *RST to close relays and/or reset status bit.
3021 'FIFO overflow.' Indicates that the FIFO buffer has filled and that one or more readings have been lost. Usually caused by algorithm values stored in FIFO faster than FIFO was read.
3026 '*CAL?/CAL:SET Calibration failed.'
3027 'Unable to map A24 VXI memory.'
3028 'Incorrect range value.' Range value sent is not supported by instrument.
3030 'Command not yet implemented!!'
454 Error Messages Chapter B

3036 '0x10: DSP-Invalid SCP gain value.' Check that SCP is seated or replace SCP. Channel numbers are in FIFO.
3038 '0x40: DSP-Couldn't cal some channels.' Check that SCP is seated or replace SCP. Channel numbers are in FIFO.
3040 '0x100: DSP-Invalid tare CAL constant or checksum.' Perform CAL:TARE - CAL:TARE? procedure.
3041 '0x200: DSP-Invalid Factory CAL constant or checksum.' Perform A/D Cal procedure.
3042 '0x400: DSP-DAC adjustment went to limit.' Execute *TST?
3045 '0x2000: DSP-cal constant out of range.' Execute *CAL?
3048 'Calibration or Test in Process.'
3049 'Calibration not in Process.'
3050 'ZERO must be sent before FSCale.' Perform A/D Cal sequence as shown in Command Reference under CAL:CONF:VOLT.
3051 'Memory size must be multiple of 4.' From MEM:VME:SIZE. Each VT1422A reading requires 4 bytes.
Error Messages 455 Chapter B

3052 'Self test failed. Test info in FIFO.' Use SENS:DATA:FIFO:ALL? to retrieve data from FIFO.
164 Special "channel" used for A/D tests only
200 A/D range 0.0625 V associated with failed test
201 A/D range 0.25 V associated with failed test
202 A/D range 1 V associated with failed test
203 A/D range 4 V associated with failed test
204 A/D range 16 V associated with failed test
Test ID Corrective Actions
20, 30 -37 Remove all SCPs and see if *TST? passes. If so, replace SCPs one at a time until the one causing the problem is found.
72,74 - 76, 80 - 93, 301 - 354 Re-seat the SCP that the channel number(s) points to or move the SCP and see if the failure(s) follow the SCP. If the problems move with the SCP, replace the SCP.
73, 77 - 79, 94 - 99 (VXI Technology Service)*
*Must send module to an VXI Technology Service Center for repair. Record information found in FIFO to assist the VXI Technology Service Center in repairing the problem.
Refer to the Command Reference under *TST? for a list of module functions tested.
456 Error Messages Chapter B
FIFO Value Definition

3053 'Corrupt on board Flash memory.'
3056 'Custom EU not loaded.' May have erased custom EU conversion table with *RST. May have linked channel with standard EU after loading custom EU, this erases the custom EU for this channel. Reload custom EU table using DIAG:CUST:LIN or DIAG:CUST:PIEC.
3057 'Invalid ARM or TRIG source when S/H SCPs enabled.' Don't set TRIG:SOUR or ARM:SOUR to SCP with VT1510A or VT1511A installed.
3058 'Hardware does not have D32, S/H or new trigger capabilities.' Module's serial number is earlier than 3313A00530.
3067 'Multiple attempts to erase Flash Memory failed.'
3068 'Multiple attempts to program Flash Memory failed.'
3069 'Programming voltage jumper not set properly.' See "Disabling Flash Memory Access" in Chapter 1 (JM2201).
3070 'Identification of Flash ROM incorrect.'
3071 'Checksum error on Flash Memory.'
3074 'WARNING! Old Opt 16 or Opt 17 card can damage SCP modules' must use VT1506A or VT1507A.
3075 'Too many entries in CVT list.'
3076 'Invalid entry in CVT list.' Can only be 10 to 511.
3077 'Too many updates in queue. Must send UPDATE command.' To allow more updates per ALG:UPD, increase ALG:UPD:WINDOW
3078 'Invalid Algorithm name.' Can only be 'ALG1' through 'ALG32' or 'GLOBALS' or 'MAIN'.
3079 'Algorithm is undefined.' In ALG:SCAL, ALG:SCAL?, ALG:ARR or ALG:ARR?
3080 'Algorithm already defined.' Trying to repeat ALG:DEF with same (and is not enabled to swap) or trying to define 'GLOBALS' again since last *RST.
3081 'Variable is undefined.' Algorithm exists but has no local variable by that name.
3082 'Invalid Variable name.' Must be valid 'C' identifier. See Chapter 7.
Error Messages 457 Chapter B

3083 'Global symbol (variable or custom function) already defined.' Trying to define a global variable with same name as a user defined function or vice versa. User functions are also global.
3084 'Algorithmic error queue full.' ALG:DEF has generated too many errors from the algorithm source code.
3084 "Error 1:Number too big for a 32 bit float" "Error 2:Number too big for a 32 bit integer" "Error 3:'8' or '9' not allowed in an octal number" "Error 4:Syntax error" "Error 5:Expecting '('" "Error 6:Expecting ')'" "Error 7:Expecting an expression" "Error 8:Out of driver memory" "Error 9:Expecting a bit number (Bn or Bnn)" "Error 10:Expecting ']'" "Error 11:Expecting an identifier" "Error 12:Arrays can't be initialized" "Error 13:Expecting 'static'" "Error 14:Expecting 'float'" "Error 15:Expecting ';'" "Error 16:Expecting ','" "Error 17:Expecting '='" "Error 18:Expecting '{'" "Error 19:Expecting '}'" "Error 20:Expecting a statement" "Error 21:Expecting 'if'" "Error 22:Can't write to input channels" "Error 23:Expecting a constant expression" "Error 24:Expecting an integer constant expression" "Error 25:Reference to an undefined variable" "Error 26:Array name used in a scalar context" "Error 27:Scalar name used in an array context" "Error 28:Variable name used in a custom function
context" "Error 29:Reference to an undefined custom function" "Error 30:Can't have executable code in GLOBALS
definition" "Error 31:CVT address range is 10 - 511" "Error 32:Numbered algorithms can only be called
from MAIN" "Error 33:Reference to an undefined algorithm" "Error 34:Attempt to redefine an existing symbol
(var or fn)" "Error 35:Array size is 1 - 1024" "Error 36:Expecting a default PID parameter" "Error 37:Too many FIFO or CVT writes per scan
trigger" "Error 38:Statement is too complex" "Error 39:Unterminated comment"
458 Error Messages Chapter B

3085 'Algorithm too big.' Algorithm exceeded 46k words (23k if enabled to swap) or exceeded size specified in .
3086 'Not enough memory to compile Algorithm.' The algorithm's constructs are using too much translator memory. The Agilent/HP E1406 needs more memory. Try breaking the algorithm into smaller algorithms.
3088 'Too many functions.' Limit is 32 user defined functions.
3089 'Bad Algorithm array index.' Must be from 0 to (declared size)-1.
3090 'Algorithm Compiler Internal Error.' Call VXI Technology with details of operation.
3091 'Illegal while not initiated.' Send INIT before this command.
3092 'No updates in queue.'
3093 'Illegal Variable Type.' Sent ALG:SCAL with identifier of array, ALG:ARR with scalar identifier, ALG:UPD:CHAN with identifier that is not a channel, etc.
3094 'Invalid Array Size.' Must be 1 to 1024.
3095 'Invalid Algorithm Number.' Must be 'ALG1' to 'ALG32'
3096 'Algorithm Block must contain termination.' Must append a null byte to end of algorithm string within the Block Data.
3097 'Unknown SCP. Not Tested.' May be received if using a breadboard SCP.
3099 'Invalid SCP for this product.'
3100 'Analog Scan time to big. Too much settling time.' Count of channels referenced by algorithms combined with use of SENS:CHAN:SETTLING has attempted to build an analog Scan List greater than 64 channels.
3101 'Can't define new algorithm while running.' Execute ABORT, then define algorithm.
3102 'Need ALG:UPD before redefining this algorithm again.' Already have an algorithm swap pending for this algorithm.
Error Messages 459 Chapter B

3103 'Algorithm swapping already enabled; Can't change size.' Only send parameter on initial definition.
3104 'GLOBALS can't be enabled for swapping.' Don't send parameter for ALG:DEF 'GLOBALS'.
3105 'Invalid SCP switch setting.'
3106 'E1536A debounce.' Ch list must contain all lower 4 and/or upper 4 channels.
3107 'Channel data direction conflicts with command.' Check switches that hardware-define data direction (configure channel as input or output).
3108 'E1536A debounce.' Each referenced 4 Ch debounce bank must contain at least one input channel.
3110 'Channel specified is invalid for RVELocity function.' See the VT1538A SCP manual.
3111 'Multiple channels are specified in the reference channel list.' See the VT1538A SCP manual.
3112 'Channel specified is invalid for RPULse reference channel.' See the VT1538A SCP manual.
3113 'Channel specified is not on the same SCP as reference channel.' See the VT1538A SCP manual.
3114 'First channel on SCP cannot be used in RPULse output channel list.' See the VT1538A SCP manual.
3115 'Channels specified are not in ascending order.' See the VT1538A SCP manual.
3116 'Multiple channels specified are not grouped correctly.' See the VT1538A SCP manual.
3117 'Grouped channels are not adjacent.' See the VT1538A SCP manual.
3118 'Incomplete setup information for RPULse function.' See the VT1538A SCP manual.
3119 'RPULse reference channel must be defined as RVELocity type.' See the VT1538A SCP manual.
3120 'Minimum velocity parameter must not exceed maximum velocity parameter.' See the VT1538A SCP manual.
3121 'Query invalid for current channel usage with the configured RPULse mode.' See the VT1538A SCP manual.
460 Error Messages Chapter B

3122 'This multiple channel function must not span multiple SCPs.' See the VT1538A SCP manual.
3123 'E1538A OE switch ON conflicts with this command.' See the VT1538A SCP manual.
3124 'E1538A OE switch OFF conflicts with this command.' See the VT1538A SCP manual.
3125 'E1538A VRS switch setting conflicts with OE switch setting.' See the VT1538A SCP manual.
3126 'E1538A VRS switch setting conflicts with PU switch setting.' See the VT1538A SCP manual.
3127 'Undefined E1538A stepper motor mode.' See the VT1538A SCP manual.
3128 'E1538A Input threshold calibration failure.' See the VT1538A SCP manual.
3129 'Incompatible Aperture and Range values.'
3131 'First or last channel in specified range is invalid.'
3132 'Channel modifier has illegal value.' Only legal values for Data Destination modifier are 1=CVT, 2=FIFO, 3=CVT and FIFO, 0=neither CVT nor FIFO.
3133 'Last channel in range must be greater than first channel.' 10000:10008 is OK, 10008:10000 is not OK.
3134 'Scan List contains non-input channel.' Scan list defined by ROUT:SEQ:DEF can only contain analog input channel specifiers.3135
'A 3-digit and 5-digit channel are both going to same CVT location.' Channels in ROUT:SEQ:DEF Scan List have fixed CVT destinations. On-board 3-digit channels can collide with remote 5-digit channel CVT destinations. See “ROUTe:SEQuence:DEFine” on page 323.
3136 'Only 32 channels may be scanned on each VT1529A/B.' Maximum Scan List entries per VT1529A/B is 32, so if a channel is used more than once, some other channel must be left out on that VT1529A/B.
3137 'VT1539A SCP channel 0 not responding.' Indicates a communications error between the VT1539A SCP and a Remote Signal Conditioning Unit connected to the SCP’s channel 0 input. Check the Data Interface connection as well as the power connection to that RSCU.
Error Messages 461 Chapter B

3138 'VT1539A SCP channel 1 not responding.' Indicates a communications error between the VT1539A SCP and a Remote Signal Conditioning Unit connected to the SCP’s channel 1 input. Check the Data Interface connection as well as the power connection to that RSCU.
3140 'VT1529A/B data not received properly, cable connected?'
3141 'Gain of 0.0 not allowed for VT1529A/B channel.'
3142 'Custom EU out of date, bridge connection was EXC when created, now is BRID.'
3143 'Custom EU out of date, bridge connection was DRID when created, now is EXC.'
3144 'Channels 15722 to 15731 illegal to send to CVT.' Only 502 CVT elements for 512 channels so highest 10 channels can’t be stored in CVT, use FIFO instead. See “ROUTe:SEQuence:DEFine” on page 323.
3145 'Shunt ON/OFF allows only a single channel per VT1529A/B.' The shunt cal resistor in a VT1529A/B can only be connected to one channel at a time. The <ch_list> in the OUTPut:SHUNT contained references to more than one channel on the same VT1529A/B.
3146 'Communication error reading VT1529A/B calibration constants, defaults used.'
3147 'Checksum error reading VT1529A/B calibration constants, defaults used.' Do CAL:REMote? and CAL:REM:STORe on the affected VT1529A/B.
462 Error Messages Chapter B

Introduction This appendix describes the verification and calibration procedure for the VT1529A/B Remote Strain Conditioning Unit when used with the VT1422A and the VT1539A SCP.
Note The verification and calibration procedure for the VT1422A and all SCPs other than the VT1539A is identical to the procedures for the VT1415A Algorithmic Closed Loop Controller. The procedures and programs described in the VT1415A and VT1419A Service Manual should be used to verify and calibrate the VT1422A and the other SCPs. Please contact VXI Technology for service manual availability.
See the table below for test equipment recommended to test and service the VT1529A/B. Essential requirements for each piece of test equipment are listed in the Requirements column. Other equipment may be substituted if it meets the requirements listed in the table.
Instrument Requirements Recommended model Use*
GPIB Controller Pentium II 450 MHz or faster PC with GPIB card
GPIB = 82350A or 82357A Agilent I/O Libraries
VXI card cage and slot 0
Compatible with Agilent/HP E1406A Command Module
Agilent/HP E1406A V, A
Frequency ≥ 2 kHz VT1531A SCP for VT1422A V
Digital Multimeter Voltage Range: ±20 V dc Resistance Range: 1 MΩ Current Range: 100 µA to 1 mA dc
Agilent/HP 3458A V, A
Dummy Load See “Dummy Load” below V
*A = Adjustments, V= Verification Tests
Dummy Load Many of the tests require that a dummy load be connected to the VT1529A/B channel(s) being tested. With only one dummy load, each channel must be tested separately. This will take a long time, so it is recommended that one load be created for each channel on a VT1529A/B so that all channels can be tested simultaneously.
VT1529A/B Verification & Calibration 463 Appendix C
Programmable D/A Converter · Precision Calibration Source

The circuit diagram for the dummy load is:
Excitation 1 + 2 – 3 + 4 5 + 6 7 + 8
7.5k
Figure C-1. Dummy Load Circuit
Remote calibration (CAL:REMOTE? command) performs calibration against the Remote Cal signal from the VT1422A which is traceable to a standard. The procedures in the Verification section test functional performance. They do not test the performance compared to specifications.
The assumed conditions for the performance verification tests are based on the following specifications/conditions:
The purpose of the verification tests is to verify that the VT1529A/B is functioning properly. Functional verification tests include:
-- Test V-1: Self-Test page 465 -- Test V-2: Cal Remote page 465 -- Test V-3: Sense Out page 466 -- Test V-4: Bridge Resistors page 467 -- Test V-5: Dynamic Strain Output Port page 469 -- Test V-6: Filters page 471 -- Test V-7: Shunt Cal Resistor Port page 474 -- Test V-8: Internal Shunt page 475
464 VT1529A/B Verification & Calibration Appendix C

Description This test performs a self-test on the VT1529A/B by running the VT1422A self-test. This self-test checks much of the basic functionality of the VT1529A/B.
Setup The VT1529A/B must be connected to the VT1422A through the VT1539A SCP. The dummy load is not required for this test, but may be connected.
Procedure Send the DIAG:TEST:REM:SELF? (@) query to the VT1422A module. The expected return value is “+0”.
Troubleshooting Failures One problem with the current VT1422A drivers is that a failure on one channel will can cause the VT1422A to report that all channels failed. This can make it difficult to find the channel that is failing. It may be easiest to let all the tests run and then look at the channels with the most failures.
See “DIAGnostic:TEST:REMote:SELFtest?” on page 288 for details on the self-test, return values and possible causes.
Remote
Description This test performs a calibration of the VT1529A/B by running the VT1422A remote calibration command. The calibration sequence checks the results for reasonable values and reports errors.
This test requires that the time since the last *CAL? calibration be less than 8 hours. The test program (perf_e1529.c) insures this by forcing a *CAL at the beginning of the program.
Setup The VT1529A/B must be connected to the VT1422A through the VT1539A SCP. The dummy load is not required for this test, but may be connected.
Procedure If necessary, send the *CAL? query to the VT1422A (required if more than 8 hours has elapsed since the last *CAL? command). The expected return value is “+0”.
Send the CAL:REMote? (@) query to the VT1422A module. The expected return value is “+0”.
VT1529A/B Verification & Calibration 465 Appendix C

Troubleshooting Failures A failure in the *CAL? command indicates a problem with the VT1422A or with one of the installed SCPs.
A failure in the CAL:REMote? command indicates a problem with the VT1529A/B, the VT1539A SCP or the cable between the VT1529A/B and the VT1539A.
Description This test verifies the operation of the excitation sense circuitry of the VT1529A/B. It measures the excitation voltage with the dummy load attached to each channel. This voltage should be one-half the applied excitation voltage due to the voltage divider effect between the 20 kΩ resistor in the dummy load and the 10 kΩ resistors between the excitation bus and the Excitation Sense + and - terminals on channel input in the VT1529A/B.
Setup The VT1529A/B must be connected to the VT1422A through the VT1539A SCP. The Dummy Load must be connected to the channel(s) being tested.
The Voltage Source must be connected to the appropriate channel bank terminals of the Bridge Excitation input on the VT1529A/B.
The signal path through the VT1529A/B is highlighted in Figure C-2.
466 VT1529A/B Verification & Calibration Appendix C

8-pin Telcom Connector (RJ-45)
Excitation to CHs 1-7
10K
Instrument.
20K
CH01
To VT1422A (VT1539A SCP)
RJ-45 X2 2:1 Mux
32:1 Mux
off for full bridge
10K
CH01
CH31
32:1 Mux
Bridge Sense from CHs 1-31
Figure C-2. Signal Path for Sense Out Test
Procedure Set the Voltage Source to +5.000 V. Send the MEAS:VOLT:EXCitation? (@) command to the VT1422A. The expected measurement value is approximately +2.5 V on each channel.
Troubleshooting Failures Check that the Dummy Load is wired and working correctly and firmly seated in the RJ-45 input connector. If all 8 channels of one block of VT1529A/B channels are failing, check that the Voltage Source is connected to the correct terminals on the Bridge Excitation input on the VT1529A/B.
Resistors
Description This test verifies the operation of the internal bridge completion resistors and associated switches in the VT1529A/B.
The operation of the internal bridge resistors can be measured by unbalancing the bridge circuit. The bridge output voltage is a function of the resistor value as given by the following formula:
Vsense = Vexcitation * (10.0 / (10.0 + 7.5 + R) - 0.5)
VT1529A/B Verification & Calibration 467 Appendix C

where R is the completion resistor value in kΩ.
With Vexcitation = 5.000 V, the nominal output voltages can be computed:
for R = 0 Ω, Vsense = 0.357143 V for R = 120 Ω, Vsense = 0.337684 V for R = 350 Ω, Vsense = 0.301120 V
Setup The VT1529A/B must be connected to the VT1422A through the VT1539A SCP. The Dummy Load must be connected to the channel(s) being tested.
The Voltage Source must be connected to the appropriate channel bank terminals of the Bridge Excitation input on the VT1529A/B.
The signal path through the VT1529A/B is highlighted in Figure C-3.
8-pin Telcom Connector (RJ-45)
Excitation to CHs 1-7
10K
Instrument.
CH00
CH01
To VT1422A (VT1539A SCP)
RJ-45 X2 2:1 Mux
32:1 Mux
off for full bridge
10K
CH01
CH31
32:1 Mux
Bridge Sense from CHs 1-31
Figure C-3. Signal Path for Bridge Resistor Test
Procedure If necessary, send the *CAL? query to the VT1422A (required if more than eight hours has elapsed since the last *CAL? command). The expected return value is “+0”.
Set the Voltage Source to 5.000 V.
Configure the VT1529A/B for bending half-bridge operation using the SENS:FUNC:STR:HBEN (@) command. This switches in the 0 Ω
468 VT1529A/B Verification & Calibration Appendix C

resistor path. Send the MEAS:VOLT:UNStrained? (@) query to the VT1422A. The expected return value is ~0.357 V on each channel.
Configure the VT1529A/B for 120 Ω quarter-bridge operation using the SENS:FUNC:STR:Q120 (@) command. Send the MEAS:VOLT:UNStrained? (@) query to the VT1422A. The expected return value is ~0.338 V on each channel.
Configure the VT1529A/B for 350Ω quarter-bridge operation using the SENS:FUNC:STR:Q350 (@) command. Send the MEAS:VOLT:UNStrained? (@) query to the VT1422A. The expected return value is ~0.301 V on each channel.
Troubleshooting Failures Check that the Dummy Load is wired and working correctly and firmly seated in the RJ-45 input connector. If all 8 channels of one block of VT1529A/B channels are failing, check that the Voltage Source is connected to the correct terminals on the Bridge Excitation input on the VT1529A/B.
Description Test the dynamic output gain and offset of the VT1529A/B.
The dynamic strain output voltage should be equal to VSENSE times the gain of the output amplifier, which is fixed at 32.
With VEXCITATION = 5.000 V, the Dummy Load attached and the VT1529A/B configured for the 0 Ω sense path, the nominal dynamic output voltage can be computed:
for R = 0 Ω, Vsense = 0.357143 V, Vdynamic = 11.4286 V
Setting Vexcitation to 0 V, verify the operation of the dynamic output offset control DAC by setting the offset to +1.0 V. The dynamic output voltage should be the same as the DAC value, +1.0 V.
Setup The VT1529A/B must be connected to the VT1422A through the VT1539A SCP. The Dummy Load must be connected to the channel(s) being tested.
The Voltage Source must be connected to the appropriate channel bank terminals of the Bridge Excitation input on the VT1529A/B.
The Digital Multimeter should be connected to the first channel on the Dynamic Strain Output Port.
VT1529A/B Verification & Calibration 469 Appendix C

The signal path through the VT1529A/B is highlighted in Figure C-4.
8-pin Telcom Connector (RJ-45)
Excitation to CHs 1-7
10K
Instrument.
CH00
CH01
To VT1422A (VT1539A SCP)
RJ-45 X2 2:1 Mux
32:1 Mux
off for full bridge
10K
CH01
CH31
32:1 Mux
Bridge Sense from CHs 1-31
Figure C-4. Signal Path for Dynamic Strain Output Port Test
Procedure If necessary, send the *CAL? query to the VT1422A (required if more than 8 hours has elapsed since the last *CAL? command). The expected return value is “+0”.
Set the Voltage Source to 5.000 V.
Configure the VT1529A/B for bending half-bridge operation using the SENS:FUNC:STR:HBEN (@) command. This switches in the 0 Ω resistor path. Send the MEAS:VOLT:UNStrained? (@) query to the VT1422A. The expected return value is ~0.357 V on each channel.
Use the Digital Multimeter to measure the output voltage on each channel on the Dynamic Strain Output Port. The expected value is ~11.43 V.
After measuring all channels, set the Voltage Source to 0.0 V. Send the SOUR:VOLT:AMPL 1.0, command to set the offset DAC for each channel to 1.0 V.
Use the Digital Multimeter to measure the output voltage on each channel on the Dynamic Strain Output Port. The expected value is 1.0 V.
Troubleshooting Failures Check all connections and the Dummy Load.
470 VT1529A/B Verification & Calibration Appendix C

Description Tests the low-pass filters for each channel in the VT1529A/B. The nominal filter bandwidths are 2 Hz, 10 Hz, 100 Hz, and 20 kHz.
The filter bandwidth is calculated by measuring the rise time of the step response. The bandwidth is related to the rise time by the equation:
Bandwidth = 0.35 / Rise Time
The VT1422A cannot sample fast enough to measure the rise time of the 20 kHz filter. The test procedure for this filter checks that the bandwidth is greater than 800 Hz, which is sufficient to verify that none of the other filters are being used.
Setup The VT1529A/B must be connected to the VT1422A through the VT1539A SCP. The Dummy Load must be connected to the channel(s) being tested.
The VT1531A Voltage Output SCP should be installed on the VT1422A. If needed, remove another SCP so that the VT1531A can be installed.
Make the following connections between the VT1531A and the Bridge Excitation input port on the VT1529A/B front panel. This connection table assumes that RJ-45 terminal block for the VT1422A is being used.
as labeled on terminal block
Ch 0-7 + 1 Ch 0 + 8 1
Ch 0-7 - 2 Ch 0 - 8 2
Gnd 3 Shield Gnd 8 or 9 Shield
Ch 8-15 + 4 Ch 1 + 9 1
Ch 8-15 - 5 Ch 1 - 9 2
Ch 16-23 + 6 Ch 2 + 8 3
Ch 16-23 - 7 Ch 2 - 8 6
Ch 24-31 + 8 Ch 3 + 9 3
Ch 24-31 - 9 Ch 3 - 9 6
See Figure 3-7, “Excitation Supply Connections”, on page 68 and Figure 2-4, “RJ-45 Connector Module and Pin-out”, on page 41 for pin-out information for the Bridge Excitation port on the VT1529A/B and the RJ-45 connector ports for the VT1531A.
VT1529A/B Verification & Calibration 471 Appendix C

Procedure If necessary, send the *CAL? query to the VT1422A (required if more than eight hours has elapsed since the last *CAL? command). The expected return value is “+0”.
Each channel of the VT1529A/B must be tested individually. Follow the steps below for each channel to be tested.
Use the VT1422A VXIplug&play Soft Front Panel to select Reset from the System menu. Then, select Algorithm from the Panels menu. Create the algorithm below. Note that this algorithm assumes the VT1531A SCP is in SCP position 1; it is necessary to modify the VT1531A channel numbers (O108, O109, O110, O111) if the VT1531A is in a different SCP location. It is also necessary to modify the VT1529A/B channel (I10000) depending on the channel to be tested. When algorithm creation is finished, click on the Down Load... button to download the algorithm.
static float loop = 0.0; static float wrote_fifo = 0.0;
if (First_loop) { loop = 0; O108 = 0; O109 = 0; O110 = 0; O111 = 0; } else { loop = loop + 1.0; if (loop == 1000.0) { if (I10000 > 0.001) { writefifo(-2); wrote_fifo = 1; } O108 = -1.0; O109 = -1.0; O110 = -1.0; O111 = -1.0; } if (!wrote_fifo) { if (loop > 1000.0 && I10000 > .39) { writefifo(1093.75 / (loop - 1000)); wrote_fifo = 1.0; } else if (loop == 1999.0) writefifo(-1.0); } }
472 VT1529A/B Verification & Calibration Appendix C

From the Panels menu, select Main Panel, then enter the following commands on the Enter Command line in the Interactive Communications box to test the 100 Hz filter. Note that it is necessary to change the channel number (10000) in these commands depending on the channel being testing:
samp:tim min trig:sour tim;tim 400e-6;count 2000 rout:seq:def (@0(10000)) func:volt (@10000) inp:filt:freq 100,(@10000);stat on,(@10000) init data:fifo?
This should display a value between about 85 and 100, which is the computed bandwidth of the 100 Hz filter. This value should be considered only as an approximate value given the limited resolution on the measurement.
To test the 10 Hz filter, now enter the following commands (again, modify the channel number as appropriate):
inp:filt:freq 10,(@10000) init data:fifo?
This should display a value between about 9 and 10, which is the approximate bandwidth of the 10 Hz filter.
To test the 2 Hz filter, now enter the following commands (again, modify the channel number as appropriate):
inp:filt:freq 2,(@10000) init data:fifo?
This should display a value of approximately 1.9 to 2.2.
Finally, to test the 20 kHz filter, enter (again, modify the channel number as appropriate):
inp:filt:stat off,(@10000) init data:fifo?
This should display a value greater than 1000.
Troubleshooting Failures Use the Digital Multimeter to verify that the VT1531A outputs transition from 0 V to 5 V after the INITiate:IMMediate command is sent.
VT1529A/B Verification & Calibration 473 Appendix C

Resistor Port
Description This test verifies the operation of the switches associated with the front panel Shunt Cal Resistor port. The operation of these switches can be verified by observing the changes in the bridge output voltage when external shunt calibration is disabled and enabled.
A 1 kΩ external shunt resistor is connected to the Shunt Cal Resistor port and the Dummy Load is attached. The 350 Ω bridge completion resistor path is configured. With the external shunt disabled, the bridge output voltage should be:
Vsense = Vexcitation * (10 / (10 + 7.5 + .350) - 0.5)
With Vexcitation = 5.0 V, the expected value of Vsense is 0.301120 V.
With the external shunt enabled, the bridge output voltage should be:
Vsense = Vexcitation * (10 / (10 + 7.5 + R) - 0.5)
Where R equals the parallel combination of the 350 Ω resistor and the 1 kΩ external shunt or 259.26 Ω. Again, with VEXCITATION = 5.0 V, the expected value of Vsense is 0.315433 V.
Setup The VT1529A/B must be connected to the VT1422A through the VT1539A SCP. The Dummy Load must be connected to the channel(s) being tested.
The Voltage Source must be connected to the appropriate channel bank terminals of the Bridge Excitation input on the VT1529A/B.
The signal path through the VT1529A/B is highlighted in Figure C-5.
Procedure If necessary, send the *CAL? query to the VT1422A (required if more than 8 hours has elapsed since the last *CAL? command). The expected return value is “+0”.
Set the Voltage Source to 5.000 V.
Configure the VT1529A/B for 350 Ω quarter-bridge operation using the SENS:FUNC:STR:Q350 (@) command. Disable shunt calibration by sending the OUTP:SHUNt OFF,(@) command. Send the MEAS:VOLT:UNStrained? (@) query to the VT1422A. The expected return value is ~0.301 V on each channel. Now, configure for external shunt using OUTP:SHUNt:SOURce EXTernal,(@).
For each channel (each must be tested separately), enable external shunt calibration by sending the OUTP:SHUNt ON,(@) command. Note: this turns off the shunt on the previous channel. Send the MEAS:VOLT:UNStrained? (@) query to the VT1422A. The expected return value is ~0.315 V on each channel.
474 VT1529A/B Verification & Calibration Appendix C

8-pin Telcom Connector (RJ-45)
Excitation to CHs 1-7
10K
Instrument.
CH00
CH01
7.5K
To VT1422A (VT1539A SCP)
32:1 Mux
RJ-45 X2 2:1 Mux
off for full bridge
CH01
10K
CH31
32:1 Mux
Bridge Sense from CHs 1-31
Figure C-5. Signal Path for Shunt Cal Resistor Port Test
Shunt
Description This test verifies the operation of the internal 50 kΩ shunt resistor and the associated switches in the VT1529A/B.
Switch operation can be verified by observing the changes in the bridge output voltage when internal shunt calibration is disabled and enabled.
The bending half-bridge strain path is configured and the Dummy Load is attached. With the internal shunt disabled, the bridge output voltage should be:
Vsense = Vexcitation * (10 / (10 + 7.5) - 0.5)
With Vexcitation = 2.0 V, the expected value of Vsense is 0.142857 V.
With the internal shunt enabled, the bridge output voltage should be:
Vsense = Vexcitation * (10 / (10 + R) - 0.5)
Where R equals the parallel combination of the 7.5 kΩ resistor in the Dummy Load and the 50 kΩ internal shunt or 6.522 kΩ. Again, with Vexcitation = 2.0 V, the expected value of Vsense is 0.210526 V.
VT1529A/B Verification & Calibration 475 Appendix C

Setup The VT1529A/B must be connected to the VT1422A through the VT1539A SCP. The Dummy Load must be connected to the channel(s) being tested.
The Voltage Source must be connected to the appropriate channel bank terminals of the Bridge Excitation input on the VT1529A/B.
The signal path through the VT1529A/B is highlighted in Figure C-6.
8-pin Telcom Connector (RJ-45)
Excitation to CHs 1-7
10K
Instrument.
CH00
CH01
To VT1422A (VT1539A SCP)
RJ-45 X2 2:1 Mux
32:1 Mux
off for full bridge
10K
CH01
CH31
32:1 Mux
Bridge Sense from CHs 1-31
Figure C-6. Signal Path for Internal Shunt Test
Procedure If necessary, send the *CAL? query to the VT1422A (required if more than 8 hours has elapsed since the last *CAL? command). The expected return value is “+0”.
Set the Voltage Source to 2.000 V.
Configure the VT1529A/B for bending half-bridge operation using the SENS:FUNC:STR:HBEN (@) command. Disable shunt calibration by sending the OUTP:SHUNt OFF,(@) command. Send the MEAS:VOLT:UNStrained? (@) query to the VT1422A. The expected return value is ~0.142 V on each channel. Now, configure for internal shunt using OUTP:SHUNt:SOURce INTernal,(@).
476 VT1529A/B Verification & Calibration Appendix C

For each channel (each must be tested separately), enable internal shunt calibration by sending the OUTP:SHUNt ON,(@) command. Note: this turns off the shunt on the previous channel. Send the MEAS:VOLT:UNStrained? (@) query to the VT1422A. The expected return value is ~0.211 V on each channel.
Calibration is performed via the VT1422A CAL:REMote? command. The VT1422A will automatically calibrate the specified VT1529A/B using the Remote Calibration signal from the VT1422A. This signal is calibrated via the Adjustment Procedure described in Chapter 3 of the VT1415A and VT1419A Service Manual.
No other calibration procedure is needed.
VT1529A/B Verification & Calibration 477 Appendix C

478 VT1529A/B Verification & Calibration Appendix C

The following terms have special meaning when related to the VT1422A.
Algorithm In general, an algorithm is a tightly defined procedure that performs a task. This manual uses the term to indicate a program executed within the VT1422A that implements a data acquisition and control algorithm.
Algorithm Language The algorithm programming language specific to the VT1422A. This programming language is a subset of the ANSI 'C' language.
Application Program The program that runs in the VXIbus controller, either embedded within the VXIbus mainframe or external and interfaced to the mainframe. The application program typically sends SCPI commands to configure the VT1422A, define its algorithms, then start the algorithms running. Typically, once the VT1422A is running algorithms, the application need only "oversee" the control application by monitoring the algorithms' status. During algorithm writing, debugging and tuning, the application program can retrieve comprehensive data from running algorithms.
Buffer In this manual, a buffer is an area in RAM memory that is allocated to temporarily hold:
Data input values that an algorithm will later access. This is the Input Channel Buffer.
Data output values from an algorithm until these values are sent to hardware output channels. This is the Output Channel Buffer.
Data output values from an algorithm until these values are read by the application program. This is the First-In-First-Out or FIFO buffer.
A second copy of an array variable containing updated values until it is "activated" by an update. This is "double buffering."
A second version of a running algorithm until it is "activated" by an update. This is only for algorithms that are enabled for swapping. This is also "double buffering."
Glossary 479 Appendix D

Control Processor The Digital Signal Processor (DSP) chip that performs all of the VT1422A's internal hardware control functions as well as performing the EU Conversion process.
DSP Same as Control Processor
EU Conversion Engineering Unit Conversion: Converting binary A/D readings (in units of A/D counts) into engineering units of voltage, resistance, temperature, strain. These are the "built in" conversions (see SENS:FUNC: ...). The VT1422A also provides access to custom EU conversions (see SENS:FUNC:CUST in command reference and "Creating and Loading Custom EU Tables" in Chapter 3).
FIFO The First-In-First-OUT buffer that provides output buffering for data sent from an algorithm to an application program.
Flash or Flash Memory Non-volatile semiconductor memory used by the
VT1422A to store its control firmware and calibration constants
RSC unit or RSCU This stands for Remote Signal Conditioning Unit. The VT1529A/B Remote Strain Conditioning unit is an example of an RSC.
Scan List A list of up to 512 channels that is built by the ROUTE:SEQUENCE:DEFINE command and analog input channels referenced in algorithms as they are defined. This list will be scanned each time the module is triggered.
SCP Signal Conditioning Plug-on: Small circuit boards that plug onto the VT1422A's main circuit board. Available analog input SCPs can provide noise canceling filters, signal amplifiers, signal attenuators and strain bridge completion. Analog output SCPs are available to provide measurement excitation current, controlling voltage and controlling current. Digital SCPs are available to both read and write digital states, read frequency and counts and output modulated pulse signals (FM and PWM).
480 Glossary Appendix D
EU Engineering Units

Swapping This term applies to algorithms that are enabled to swap. These algorithms can be exchanged with another of the same name while the original is running. The "new" algorithm becomes active after an update command is sent. This "new" algorithm may again be swapped with another and so on. This capability allows changing algorithm operation without stopping and leaving this and perhaps other processes without control.
Terminal Blocks The screw-terminal blocks connected to the system field wiring. The terminal blocks are inside the Terminal Module.
Terminal Module The plastic encased module which contains the terminal blocks connected to the field wiring. The Terminal Module then is plugged into the VT1422A's front panel.
Update This is an intended change to an algorithm, algorithm variable or global variable that is initiated by one of the commands ALG:SCALAR, ALG:ARRAY, ALG:DEFINE, ALG:SCAN:RATIO, or ALG:STATE. This change or "update" is considered to be pending until an update command is received. Several updates can be sent to the Update Queue, waiting for an update command to cause them to take effect synchronously. The update commands are ALG:UPDATE and ALG:UPD:CHANNEL.
Update Queue A list of scalar variable values and/or buffer pointer values (for arrays and swapping algorithms) that is built in response to updates (see Update). When an update command is sent, scalar values and pointer values are sent to their working locations.
User Function A function callable from the Algorithm Language in the general form (). These user defined functions provide advanced mathematical capability to the Algorithm Language.
Glossary 481 Appendix D

482 Glossary Appendix D

Separating Digital and Analog SCP Signals
Signals with very fast rise time can cause interference with nearby signal paths. This is called cross-talk. Digital signals present this fast rise-time situation. Digital I/O signal lines that are very close to analog input signal lines can inject noise into them.
To minimize cross-talk, maximize the distance between analog input and digital I/O signal lines. By installing analog input SCPs in positions 0 through 3 and digital I/O SCPs in positions 4 through 7, these types of signals are kept separated by the width of the VT1422A module. The signals are further isolated because they remain separated on the connector module as well. Note that in Figure E-1, even though only seven of the eight SCP positions are filled, the SCPs present are not installed contiguously, but are arranged to provide as much digital/analog separation as possible.
If it is necessary to mix analog input and digital I/O SCPs on the same side, the following suggestions will help provide quieter analog measurements.

SCP Pos 0 SCP Pos 1 SCP Pos 2 SCP Pos 3
SCP Pos 4 SCP Pos 7 SCP Pos 6 SCP Pos 5
Figure E-1. Separating Analog and Digital Signals
Wiring and Noise Reduction Methods 483 Appendix E

Unshielded signal wiring is very common in Data Acquisition applications. While this worked well for low-speed integrating A/D measurements and/or for measuring high-level signals, it does not work for high-speed sampling A/Ds, particularly when measuring low-level signals like thermocouples or strain gage bridge outputs. Unshielded wiring will pick up environmental noise, causing measurement errors. Shielded, twisted pair signal wiring, although it is expensive, is required for these measurements unless an even more expensive amplifier-at-the-signal-source or individual A/D at the source is used.
Generally, the shield should be connected to ground at the DUT and left open at the VT1422A. Floating DUTs or transducers are an exception. Connect the shield to VT1422A GND or GRD terminals for this case, whichever gives the best performance. This will usually be the GND terminal. A single point shield to ground connection is required to prevent ground loops. This point should be as near to the noise source as possible and this is usually at the DUT.
Wiring Checklist The following lists some recommended wiring techniques.
a. Grounded Transducer with shield connected to ground at the
transducer: Low frequency ground loops (dc and/or 50/60 Hz) can result if the shield is also grounded at the Terminal Module end. To prevent this, remove the GND-GRD jumper for that channel.
b. Floating Transducer with shield connected to the transducer
at the source: In this case, the best performance will most likely be achieved by leaving the GND-GRD jumper in place.
484 Wiring and Noise Reduction Methods Appendix E

The VT1422A guard connection provides a 10 kΩ current limiting resistor between the guard terminals (G) and VT1422A chassis ground for each 8 channel SCP bank. This is a safety device for the case where the Device Under Test (DUT) isn't actually floating; the shield is connected to the DUT and also connected to the VT1422A guard terminal (G). The 10 kΩ resistor limits the ground loop current, which has been known to burn out shields. This also provides 20 kΩ isolation between shields between SCP banks which helps isolate the noise source.
Common Mode
Be very careful not to exceed the maximum common mode voltage referenced to the card chassis ground of ±16 volts (±60 volts with the VT1513A Attenuator SCP). There is an exception to this when high frequency (1 kHz - 20 kHz) common mode noise is present (see “VT1422A Noise Rejection” below). Also, if the DUT is not grounded, then the shield should be connected to the VT1422A chassis ground.
When to Make Shield Connections
It is not always possible to state positively the best shield connection for all cases. Shield performance depends on the noise coupling mechanism which is very difficult to determine. The above recommendations are usually the best wiring method, but if feasible, experiment with shield connections to determine which provides the best performance for the particular installation and environment.
If either or both of the VT1422A and Agilent/HP E1482 (MXI Extender Modules) are not securely screwed into the VXIbus Mainframe, noise can be generated. Make sure that both screws (top and bottom) are screwed in tight. If not, it is possible that CVT data could be more noisy than FIFO data because the CVT is located in A24 space, the FIFO in A16 space; more lines moving could cause noisier readings.
Wiring and Noise Reduction Methods 485 Appendix E

This noise is actually present at the signal source and is a differential noise (Hi to Lo). It is what is filtered out by the buffered filters on the VT1502A, VT1503A, VT1508A, and VT1509A SCPs.
Common Mode
This noise is common to both the Hi and Lo differential signal inputs. Low frequency Ecm is very effectively rejected by a good differential instrumentation amplifier and it can be averaged out when measured through the Direct Input SCP (VT1501A). However, high-frequency Ecm is rectified and generates an offset with the amplifier and filter SCPs (such as VT1502A, VT1503A, VT1508A and VT1509A). This is since these SCPs have buffer-amplifiers on board and is a characteristic of amplifiers. The best way to deal with this is to prevent the noise from getting into the amplifier.
Keeping Common Mode Noise out of
Most common mode noise is about 60 Hz, so the differential amplifier rejection is very good. The amplifier Common Mode Noise characteristics are:
120 dB flat to 300 Hz, then 20 dB/octave rolloff
The VT1422A amplifiers are selected for low gain error, offset, temperature drift and low power. These characteristics are generally incompatible with good high frequency CMR performance. More expensive, high performance amplifiers can solve this problem, but they aren't required for many systems.
Shielded, twisted pair lead wire generally does a good job of keeping high frequency common mode noise out of the amplifier, provided the shield is connected to the VT1422A chassis ground through a very low impedance (not via the guard terminal). The VT1422A guard terminal connection shown in the VT1422A User's Manual does not consider the high-frequency Ecm problem and is there to limit the shield current and to allow the DUT to float up to some dc common mode voltage subject to the maximum ±16 volt input specification limit.
This conflicts with the often recommended good practice of grounding the shield at the signal source and only at that point to eliminate line frequency ground loops, which can be high enough to burn up a shield. It is recommended that this practice be followed and if high frequency common mode noise is seen (or suspected), tie the shield to the VT1422A ground through a 0.1 µF capacitor. At high frequencies, this drives the shield voltage to 0 volts at the VT1422A input. Due to inductive coupling to the signal leads, the Ecm voltage on the signal leads is also driven to zero.
486 Wiring and Noise Reduction Methods Appendix E

Introduction
The VT1422A has a limited set of mathematical operations such as add, subtract, multiply, and divide. Many control applications require functions such as square root for calculating flow rate or a trigonometric function to correctly transition motion of moving object from a start to ending position. In order to represent a sine wave or other transcendental functions, one could use a power series expansion to approximate the function using a finite number of algebraic expressions. Since the above mentioned operations can take from 1.5 µs to 4 µs for each floating point calculation, a complex waveform such as sine(x) could take more than 100 µs to get the desired result. A faster solution is desirable and available.
The VT1422A provides a solution to approximating such complex waveforms by using a piece-wise linearization of virtually any complex waveform. The technique is simple. The VXIplug&play Drivers & Product Manuals CD-ROM supplied with the VT1422A contains a 'C' program which calculates 128 Mx+B segments over a specified range of values for the desired function. The user supplies the function; the program generates the segments in a table. The resulting table can be downloaded into the VT1422A's RAM with the ALG:FUNC:DEF command where any desired name of the function (i.e., sin(x), tan(x), etc.) can be selected. Up to 32 functions can be created for use in algorithms. At runtime, where the function is passed an 'x' value, the time to calculate the Mx+B segmented linear approximation is approximately 18 µs.
The VT1422A actually uses this technique to convert volts to temperature, strain, etc. The accuracy of the approximation is really based upon how well the range is selected over which the table will be built. For thermocouple temperature conversion, the VT1422A fixes the range to the lowest A/D range (±64 mV) so that small microvolt measurements yield the proper resolution of the actual temperature for a non-linear transducer. In addition, the VT1422A permits the creation of Custom Engineering Unit conversion for a transducer so that when the voltage measurement is actually made, the EU conversion takes place (see SENS:FUNC:CUST). Algorithms deal with the resulting floating point numbers generated during the measurement phase and may require further complex mathematical operations to achieve the desired result.
With some complex waveforms, it may be necessary to break up the waveform into several functions in order to get the desired accuracy. For example, suppose the generation a square root function is required for both voltage and strain calculations. The voltages are only going to range from 0 to ±16 volts, worst case. The strain measurements return numbers in microstrain which range in the 1000's. Trying to represent the square root function over the entire range would severely impact the accuracy of the
Generating User Defined Functions 487 Appendix F

approximation. Remember, the entire range is broken up into only 128 segments of Mx+B operations. If accuracy is desired, the range MUST be limited over which calculations are made. Many transcendental functions are simply used as a scaling multiplier. For example, a sine wave function is typically created over a range of 360 degrees or 2π radians. After which, the function repeats itself. It's a simple matter to make sure the 'x' term is scaled to this range before calculating the result. This concept should be used almost exclusively to obtain the best results.
The following is an example of creating a haversine function (a sine wave over the range of -π/2 to π/2). The resulting function represents a fairly accurate approximation of this non-linear waveform when the range is limited as indicated. Since the tables must be built upon binary boundaries (i.e., 0.125, 0.25, 0.5, 1, 2, 4, etc.) and since π/2 is a number greater than 1 but less than 2, the next binary interval to include this range will be 2. Another requirement for building the table is that the waveform range MUST be centered around 0 (i.e., symmetrical about the X-axis). If the desired function is not defined on one side or the other of the Y-axis, then the table is right or left shifted by the offset from X=0 and the table values are calculated correctly, but the table is built as though it were centered about the X-axis. For the most part, the last couple sentences can be ignored if they are not understood. This is only brought up because the accuracy may suffer the farther away from the X=0 point the center is unless the resolution available is understood and how much non-linearity is present in the waveform. This is discussed later in the "Limitations" section.
Figure F-1 shows the haversine function as stated above. This type of waveform is typical of the kind of acceleration and deceleration one wants when moving an object from one point to another. The desired beginning point would be the location at -π/2 and the ending point would be at π/2. With the desired range spread over ±π/2, the 128 segments are actually divided over the range of ±2. Therefore, the 128 Mx+B line segments are divided equally on both sides of X=0: 64 segments for 0..2 and 64 segments for -2..0.
488 Generating User Defined Functions Appendix F

Figure F-1. A Haversine Function
A typical use of this function would be to output an analog voltage or current at each Scan Trigger of the VT1422A and over the range of the haversine. For example, suppose a new position is desired for an analog output and it is moved from 1 mA to 3 mA over a period of 100 ms. If the TRIG:TIMER setting or the EXTernal trigger was set to 2 ms, then forcing fifty intervals over the range of the haversine is desired. This can be easily done by using a scalar variable to count the number of times the algorithm has executed and to scale the variable value to the -π/2 to π/2 range. 3 mA is multiplied by the custom function result over each interval which will yield the shape of the haversine (0.003*sin(x)+0.001).
This is illustrated in the example below. The program (sine_fn.cpp) on the CD illustrates the actual program used to generate this haversine function. Simply supply the algebraic expression in my_function(), the desired range over which to evaluate the function (which determines the table range), and the name of the function. The Build_table() routine creates the table for the function and the ALG:FUNC:DEF writes that table into VT1422A memory. The table MUST be built and downloaded BEFORE trying to use the function.
The following is a summary of what commands and parameters are used in the program example. Table F-1 shows some examples of the accuracy of the custom function with various input values compared to an evaluation of the actual transcendental function found in 'C'. Please note that the Mx+B segments are located on boundaries specified by 2/64 on each side of X=0. This means that if the exact input value that was used for the beginning of each segment is selected, the exact calculated value of that function at that point will be determined. Any point between segments will be an approximation dependent upon the linearity of that segment. Also note that values of X = 2 and X = -2 will result in Y=infinity.
Generating User Defined Functions 489 Appendix F

'C' sin(-1.570798) -1.000000 'VT1422A' sin(-1.570798) -0.999905
'C' sin(-1.256639) -0.951057 'VT1422A' sin(-1.256639) -0.950965
'C' sin(-0.942479) -0.809018 'VT1422A' sin(-0.942479) -0.808944
'C' sin(-0.628319) -0.587786 'VT1422A' sin(-0.628319) -0.587740
'C' sin(-0.314160) -0.309017 'VT1422A' sin(-0.314160) -0.308998
'C' sin(0.000000) 0.000000 'VT1422A' sin(0.000000) 0.000000
'C' sin(0.314160) 0.309017 'VT1422A' sin(0.314160) 0.308998
'C' sin(0.628319) 0.587786 'VT1422A' sin(0.628319) 0.587740
'C' sin(0.942479) 0.809018 'VT1422A' sin(0.942479) 0.808944
'C' sin(1.256639) 0.951057 'VT1422A' sin(1.256639) 0.950965
'C' sin(1.570798) 1.000000 'VT1422A' sin(1.570798) 0.999905
Table F-1. 'C' Sin(x) Vs. VT1422A Haversine Function
As stated earlier, there are limitations to using this custom function technique. These limitations are directly proportional to the non-linearity of the desired waveform. For example, suppose the function X*X*X over a range of ±1000 is to represented. The resulting binary range would be ±1024 and the segments would be partitioned at 1024/64 intervals. This means that every 16 units would yield an Mx+B calculation over that segment. As long as the numbers input are VERY close to those cardinal points, good results will be attained. Strictly speaking, "perfect" results will only be attained if calculated at the cardinal points, which may be reasonable for an application if the input values are limited to those exact 128 points.
The waveform may also be shifted anywhere along the X-axis and Build_table() will provide the necessary offset calculations to generate the proper table. Be aware too that shifting the table out to greater magnitudes of X may also impact the precision of the results dependent upon the linearity of the waveform used. Suffice it to say that the best results will be attained and it will be easiest to grasp what is being done if the center stays near the X=0 point since most of the results of the measurements will have 1e-6..16 values for volts.
Truncation errors may be seen in the fourth digit of the results. This is because only 15 bits of the input value is sent to the function. This occurs because the same technique used for Custom EU conversion is used here and the method assumes input values are from the 16 bit A/D (15 bits = sign bit). This is evident in Table F-1 where the first and last entries return ±0.9999 rather than ±1. For most applications, this accuracy should be more than adequate.
490 Generating User Defined Functions Appendix F

This appendix includes listings of the built-in PIDA and PIDB, as well as the more advanced PIDC which can be downloaded as a custom algorithm.
Figure G-1 shows the block diagram of the PIDA algorithm.
process
Figure G-1. The Simple PID Algorithm "PIDA"
PIDA algorithm implements the classic PID controller. This implementation was designed to be fast. In order to be fast, this algorithm provides no clipping limit, alarm limits, status management or CVT/FIFO communication (History Modes). The algorithm performs the following calculations each time it is executed:
Error = Setpoint - I_out = I_out + I_factor * Error = P_factor * Error + I_out + D_factor * (Error - Error_old) Error_old = Error.
Example PID Algorithm Listings 491 Appendix G

/********************************************************************************************/ /* I/O Channels */ /* Must be defined by the user */ /* */ /* inchan - Input channel name */ /* outchan - Output channel name */ /* */ /********************************************************************************************/ /* */ /********************************************************************************************/ /* PID algorithm for VT1422A controller module. This algorithm is called */ /* once per scan trigger by main(). It performs Proportional, Integral */ /* and Derivative control. */ /* */ /* */ /* The output is derived from the following equations: */ /* */ /* PID_out = P_out + I_out + D_out */ /* P_out = Error * P_factor */ /* I_out = I_out + (Error * I_factor) */ /* D_out = ((Error - Error_old) * D_factor) */ /* Error = Setpoint - PV */ /* */ /* where: */ /* Setpoint is the desired value of the process variable (user supplied) */ /* PV is process variable measured on the input channel */ /* PID_out is the algorithm result sent to the output channel */ /* P_factor, I_factor and D_factor are the PID constants(user supplied) */ /* */ /* */ /* At startup the output will abruptly change to P_factor*Error */ /* */ /* */ /********************************************************************************************/ /* */ /* User determined control parameters */ static float Setpoint = 0; /* The setpoint */ static float P_factor = 1; /* Proportional control constant */ static float I_factor = 0; /* Integral control constant */ static float D_factor = 0; /* Derivative control constant */ /* */ /* Other Variables */ static float I_out; /* Integral term */ static float Error; /* Error term */ static float Error_old; /* Last Error - for derivative */ /* */ /*PID algorithm code: */ /* Begin PID calculations */ /* First, find the Process Variable "error" */ /* This calculation has gain of minus one (-1) */ Error = Setpoint - inchan; /* On the first trigger after INIT, initialize the I and D terms */ if (First_loop) { /* Zero the I term and start integrating */ I_out = Error * I_factor; /* Zero the derivative term */ Error_old = Error; } /* On subsequent triggers, continue integrating */ else /* not First trigger */ {
I_out = Error * I_factor + I_out; } /* Sum PID terms */ outchan = Error * P_factor + I_out + D_factor * (Error - Error_old); /* Save values for next pass */ Error_old = Error;
492 Example PID Algorithm Listings Appendix G

Figure G-2 shows the block diagram of a more advanced algorithm that is favored in process control because of the flexibility allowed by its two differential terms. The "D" differential term is driven by changes in the process input measurement. The "SD" differential term is driven by changes in the setpoint variable value.

Figure G-2. The Advanced Algorithm "PIDB"
Clipping Limits The PIDB algorithm provides clipping limits for its I, D, SD terms and the value sent to . Values for these terms are not allowed to range outside of the set limits. The variables that control clipping are:
I term limits; I_max and I_min D term limits; D_max and D_min SD term limits; SD_max and SD_min limits; Out_max and Out_min
Alarm Limits The PIDB algorithm provides Alarm Limits for the process variable PV and the Error term variable Error. If these limits are reached, the algorithm sets the value of true and generates a VXIbus interrupt. The variables that control alarm limits are:
Process Variable (from ); PV_max and PV_min Error term alarm limits; Error_max and Error_min
The max and min limits for clipping and alarms are set to 9.9E+37 and -9.9E+37 respectively when the algorithm is defined. This effectively turns the limits off until the values are changed with the ALG:SCALAR and ALG:UPDATE commands as described in "Pre-setting PID Variables and Coefficients" later in this section.
Example PID Algorithm Listings 493 Appendix G

Manual Control The PIDB algorithm provides for manual control with "bumpless" transfer between manual and automatic control. The variables that control the manual mode are:
Auto/Manual control; Man_state (0 = automatic (default), 1 = manual) Manual output control; Man_out (defaults to current auto value) Manual control slew rate; Man_inc (defaults to 9.99E+37 (fast change))
Use the ALG:SCALAR and ALG:UPDATE commands to change the manual control variables before or after the algorithm is running.
Status Variable The PIDB algorithm uses 7 bits in a status variable (Status) to record the state of clipping and alarm limits and the automatic/manual mode. When a limit is reached or the manual mode is set, the algorithm sets a status bit to 1.
Output () at clipping limit; Status.B0 I term (I_out) at clipping limit; Status.B1 D term (D_out) reached at limit; Status.B2 SD term (SD_out) at clipping limit; Status.B3 Control mode (Man_state) is manual; Status.B4 Error term (Error) out of limits; Status.B5 Process Variable () out of limits; Status.B6
History Mode The PIDB algorithm provides two modes of reporting the values of its operating variables. A variable <History_mode> controls the two modes. The default history mode (<History_mode> = 0) places the following algorithm values into elements of the Current Value Table (the CVT):
Process Variable () value to CVT element (10 * n) + 0 Error Term variable (Error) value to CVT element (10 * n) + 1 Output (<outp_chan>) value to CVT element (10 * n) + 2 Status word bits 0 through 6 (Status) to CVT element (10 * n) + 3 Where n is the number of the algorithm from ’ALGn’. So ALG1 places values into CVT elements 10 through 13, ALG2 places values in CVT elements 20 through 23 ... ALG32 places values into CVT elements 320 through 323.
When <History_mode> is set to 1, the operating values are sent to the CVT as above and they are sent to the FIFO buffer as well. The algorithm writes a header entry first. The header value is ( n * 256 ) + 4, where n is the algorithm number from ’ALGn’ and the number 4 indicates the number of FIFO entries that follow for this algorithm. This identifies which PIDB algorithm the five element FIFO entry is from.
494 Example PID Algorithm Listings Appendix G

/********************************************************************************************/ /* PID_B */ /********************************************************************************************/ /* I/O Channels */ /* Must be defined by the user */ /* */ /* inchan - Input channel name */ /* outchan - Output channel name */ /* alarmchan - Alarm channel name */ /* */ /********************************************************************************************/ /* */ /********************************************************************************************/ /* PID algorithm for VT1422A controller module. This algorithm is called */ /* once per scan trigger by main(). It performs Proportional, Integral */ /* and Derivative control. */ /* */ /* */ /* The output is derived from the following equations: */ /* */ /* PID_out = P_out + I_out + D_out + SD_out */ /* P_out = Error * P_factor */ /* I_out = I_out + (Error * I_factor) */ /* D_out = ((PV_old - PV) * D_factor) */ /* SD_out = (Setpoint - Setpoint_old) * SD_factor */ /* Error = Setpoint - PV */ /* */ /* where: */ /* Setpoint is the desired value of the process variable (user supplied) */ /* PV is the process variable measured on the input channel */ /* PID_out is the algorithm result sent to the output channel */ /* P_factor, I_factor, D_factor and SD_factor are the PID constants */ /* (user supplied) */ /* */ /* Alarms may be generated when either the Process Variable or the */ /* error exceeds user supplied limits. The alarm condition will cause */ /* an interrupt to the host computer, set the (user-specified) alarm */ /* channel output to one (1) and set a bit in the Status variable to */ /* one (1). The interrupt is edge-sensitive. ( It will be asserted only */ /* on the transition into the alarm state.) The alarm channel digital */ /* output will persist for the duration of all alarm conditions. The */ /* Status word bits will also persist for the alarm duration. No user */ /* intervention is required to clear the alarm outputs. */ /* */ /* This version provides for limiting (or clipping) of the Integral, */ /* Derivative, Setpoint Derivative and output to user specified limits. */ /* The Status Variable indicates when terms are being clipped. */ /* */ /* Manual control is activated when the user sets the Man_state variable */ /* to a non-zero value. The output will be held at its last value. The */ /* user can change the output by changing the Man_out variable. User */ /* initiated changes in Man_out will cause the output to slew to the */ /* Man_out value at a rate of Man_inc per scan trigger. */ /* */ /* Manual control causes the Setpoint to continually change to match */ /* the Process Variable and the Integral term to be constantly updated */ /* to the output value such that a return to automatic control will */ /* be bumpless and will use the current Process Variable value as the */ /* new setpoint. */ /* The Status variable indicates when the Manual control mode is active.*/ /* */ /* At startup in the Manual control mode, the output will slew to Man_out */ /* at a rate of Man_inc per scan trigger. */ /* */ /* At startup, in the Automatic control mode, the output will abruptly */ /* change to P_factor * Error. */ /* */ /* For process monitoring, data may be sent to the FIFO and current */ /* value table (CVT). There are two levels of data logging, controlled */ /* by the History_mode variable. The location in the CVT is based */
Example PID Algorithm Listings 495 Appendix G

/* on 'n', where n is the algorithm number (as returned by ALG_NUM, for*/ /* example). The first value is placed in the (10 * n)th 32-bit word of */ /* the CVT. The other values are written in subsequent locations. */ /* */ /* History_mode = 0: Summary to CVT only. In this mode, four values */ /* are output to the CVT. */ /* */ /* Location Value */ /* 0 Input */ /* 1 Error */ /* 2 Output */ /* 3 Status */ /* */ /* History_mode = 1: Summary to CVT and FIFO. In this mode, the four*/ /* summary values are written to both the CVT and FIFO. A header */ /* tag (256 * n + 4) is sent to the FIFO first, where n is the Algorithm */ /* number (1 - 32). */ /* */ /********************************************************************************************/ /* */ /* User determined control parameters */ static float Setpoint = 0; /* The setpoint */ static float P_factor = 1; /* Proportional control constant */ static float I_factor = 0; /* Integral control constant */ static float D_factor = 0; /* Derivative control constant */ static float Error_max = 9.9e+37; /* Error alarm limits */ static float Error_min = -9.9e+37; static float PV_max = 9.9e+37; /* Process Variable alarm limits */ static float PV_min = -9.9e+37; static float Out_max = 9.9e+37; /* Output clip limits */ static float Out_min = -9.9e+37; static float D_max = 9.9e+37; /* Derivative clip limits */ static float D_min = 9.9e+37; static float I_max = 9.9e+37; /* Integral clip limits */ static float I_min = -9.9e+37; static float Man_state = 0; /* Activates manual control */ static float Man_out = 0; /* Target Manual output value */ static float Man_inc = 9.9e+37;/* Manual output change increment */ static float SD_factor = 0; /* Setpoint Derivative constant */ static float SD_max = 9.9e+37; /* Setpoint Derivative clip limits */ static float SD_min = 9.9e+37; static float History_mode = 0; /* Activates fifo data logging */ /* */ /* Other Variables */ static float I_out; /* Integral term */ static float D_out; /* Derivative term */ static float Error; /* Error term */ static float PV_old; /* Last process variable */ static float Setpoint_old; /* Last setpoint - for derivative */ static float SD_out; /* Setpoint derivative term */ static float Status = 0; /* Algorithm status word */ /* */ /* B0 - PID_out at clip limit */ /* B1 - I_out at clip limit */ /* B2 - D_out at clip limit */ /* B3 - SD_out at clip limit */ /* B4 - in Manual control mode */ /* B5 - Error out of limits */ /* B6 - PV out of limits */ /* others - unused */ /* */ /* */
496 Example PID Algorithm Listings Appendix G

/*PID algorithm code: */ /* Test for Process Variable out of limits */ if ( (inchan >> PV_max) || ( PV_min >> inchan ) ) /* PV alarm test */ {
if ( !Status.B6 ) { Status.B6 = 1; alarmchan = 1; interrupt(); } } else {
Status.B6 = 0; } /* Do this when in the Manual control mode */ if ( Man_state ) { /* Slew output towards Man_out */ if (Man_out >> outchan + abs(Man_inc)) {
outchan = outchan + abs(Man_inc); } else if (outchan >> Man_out + abs(Man_inc)) {
outchan = outchan - abs(Man_inc); } else {
outchan = Man_out; } /* Set manual mode bit in status word */ Status.B4 = 1; /* No error alarms while in Manual mode */ Status.B5 = 0; /* In case we exit manual mode on the next trigger */ /* Set up for bumpless transfer */ I_out = outchan; Setpoint = inchan; PV_old = inchan; Setpoint_old = inchan; } /* Do PID calculations when not in Manual mode */ else /* if ( Man_state ) */ { Status.B4 = 0; /* First, find the Process Variable "error" */ /* This calculation has gain of minus one (-1) */ Error = Setpoint - inchan; /* Test for error out of limits */ if ( (Error >> Error_max) || (Error_min >> Error) ) { if ( !Status.B5 ) { Status.B5 = 1; alarmchan = 1; interrupt(); } } else {
Status.B5 = 0; } /* On the first trigger after INIT, initialize the I and D terms */ if (First_loop) { /* Zero the I term and start integrating */ I_out = Error * I_factor;
Example PID Algorithm Listings 497 Appendix G

/* Zero the derivative terms */ PV_old = inchan; Setpoint_old = Setpoint; } /* On subsequent triggers, continue integrating */ else /* not First trigger */ {
I_out = Error * I_factor + I_out; } /* Clip the Integral term to specified limits */ if ( I_out >> I_max ) {
I_out = I_max; Status.B1=1; } else if ( I_min >> I_out ) {
I_out = I_min; Status.B1=1; } else {
Status.B1 = 0; } /* Calculate the Setpoint Derivative term */ SD_out = SD_factor * ( Setpoint - Setpoint_old ); /* Clip to specified limits */ if ( SD_out >> SD_max )/* Clip Setpoint derivative */ { SD_out = SD_max; Status.B3=1; } else if ( SD_min >> SD_out ) { SD_out = SD_min; Status.B3=1; } else {
Status.B3 = 0; } /* Calculate the Error Derivative term */ D_out = D_factor *( PV_old - inchan ); /* Clip to specified limits */ if ( D_out >> D_max )/* Clip derivative */ {
D_out = D_max; Status.B2=1; } else if ( D_min >> D_out ) {
D_out = D_min; Status.B2=1; } else {
Status.B2 = 0; } /* Sum PID&SD terms */ outchan = Error * P_factor + I_out + D_out + SD_out; /* Save values for next pass */ PV_old = inchan; Setpoint_old = Setpoint; /* In case we switch to manual on the next pass */ /* prepare to hold output at latest value */ Man_out = outchan; } /* if ( Man_state ) */
498 Example PID Algorithm Listings Appendix G

/* Clip output to specified limits */ if ( outchan >> Out_max ) {
outchan = Out_max; Status.B0=1; } else if ( Out_min >> outchan ) {
outchan = Out_min; Status.B0=1; } else {
Status.B0 = 0; } /* Clear alarm output if no alarms */ if (!(Status.B6 || Status.B5) ) alarmchan = 0; /* Log appropriate data */ if ( History_mode ) { /* Output summary to FIFO & CVT */
writefifo( (ALG_NUM*256)+4 ); writeboth( inchan, (ALG_NUM*10)+0 ); writeboth( Error, (ALG_NUM*10)+1); writeboth( outchan, (ALG_NUM*10)+2); writeboth( Status, (ALG_NUM*10)+3 ); } else { /* Output summary to CVT only */
writecvt( inchan, (ALG_NUM*10)+0 ); writecvt( Error, (ALG_NUM*10)+1); writecvt( outchan, (ALG_NUM*10)+2); writecvt( Status, (ALG_NUM*10)+3 ); }
Example PID Algorithm Listings 499 Appendix G

PIDC is very similar to PIDB with the addition of extended history mode. See comments in source code below.
/********************************************************************************************/ /* PID_C */ /********************************************************************************************/ /* I/O Channels */ /* Must be defined by the user */ /* */ /* inchan - Input channel name */ /* outchan - Output channel name */ /* alarmchan - Alarm channel name */ /* */ /********************************************************************************************/ /* */ /********************************************************************************************/ /* PID algorithm for VT1422A controller module. This algorithm is called */ /* once per scan trigger by main(). It performs Proportional, */ Integral */ /* and Derivative control. */ /* */ /* */ /* The output is derived from the following equations: */ /* */ /* PID_out = P_out + I_out + D_out + SD_out */ /* P_out = Error * P_factor */ /* I_out = I_out + (Error * I_factor) */ /* D_out = ((PV_old - PV) * D_factor) */ /* SD_out = (Setpoint - Setpoint_old) * SD_factor */ /* Error = Setpoint - PV */ /* */ /* where: */ /* Setpoint is the desired value of the process variable (user supplied) */ /* PV is the process variable measured on the input channel */ /* PID_out is the algorithm result sent to the output channel */ /* P_factor, I_factor, D_factor and SD_factor are the PID constants */ /* (user supplied) */ /* */ /* Alarms may be generated when either the ProcessVariable or the */ /* error exceeds user supplied limits. */ /* The alarm condition will cause an interrupt to the host computer, */ /* set the (user-specified) alarm channel output to one (1) and set a bit */ /* in the Status variable to one (1). */ /* The interrupt is edge-sensitive. ( It will be asserted only */ /* on the transition into the alarm state.) The alarm channel digital */ /* output will persist for the duration of all alarm conditions. The */ /* Status word bits will also persist for the alarm duration. No user */ /* intervention is required to clear the alarm outputs. */ /* */ /* This version provides for limiting (or clipping) of the Integral, */ /* Derivative, Setpoint Derivative and output to user specified limits. */ /* The Status Variable indicates when terms are being clipped. */ /* */ /* Manual control is activated when the user sets the Man_state variable */ /* to a non-zero value. The output will be held at its last value. The */ /* user can change the output by changing the Man_out variable. User */ /* initiated changes in Man_out will cause the output to slew to the */ /* Man_out value at a rate of Man_inc per scan trigger. */ /* */ /* Manual control causes the Setpoint to continually change to match */ /* the Process Variable and the Integral term to be constantly updated */ /* to the output value such that a return to automatic control will */ /* be bumpless and will use the current Process Variable value as the */ /* new setpoint. */ /* The Status variable indicates when the Manual control mode is active.*/ /* */
500 Example PID Algorithm Listings Appendix G

/* At startup in the Manual control mode, the output will be held at */ /* its current value. */ /* */ /* At startup, in the Automatic control mode, the output will slew */ /* from its initial value towards P_factor * Error at a rate determined */ /* by the Integral control constant (I_out is initialized to cancel P_out). */ /* */ /* For process monitoring, data may be sent to the FIFO and current */ /* value table (CVT). There are three levels of data logging, controlled */ /* by the History_mode variable. The location in the CVT is based */ /* on 'n', where n is the algorithm number (as returned by ALG_NUM, for*/ /* example). The first value is placed in the (10 * n)th 32-bit word of */ /* the CVT. The other values are written in subsequent locations. */ /* */ /* History_mode = 0: Summary to CVT only. In this mode, four values */ /* are output to the CVT. */ /* */ /* Location Value */ /* 0 Input */ /* 1 Error */ /* 2 Output */ /* 3 Status */ /* */ /* History_mode = 1: Summary to CVT and FIFO. In this mode, the four*/ /* summary values are written to both the CVT and FIFO. A header */ /* tag (256 * n + 4) is sent to the FIFO first. */ /* */ /* History_mode = 2: All to FIFO and CVT. In this mode, nine values */ /* are output to both the CVT and FIFO. A header tag (256 * n + 9) */ /* is sent to the FIFO first. */ /* */ /* Location Value */ /* 0 Input */ /* 1 Error */ /* 2 Output */ /* 3 Status */ /* 4 Setpoint */ /* 5 Proportional term */ /* 6 Integral term */ /* 7 Derivative term */ /* 8 Setpoint Derivative term */ /* */ /********************************************************************************************/ /* */ /* User determined control parameters */ static float Setpoint = 0; /* The setpoint */ static float P_factor = 1; /* Proportional control constant */ static float I_factor = 0; /* Integral control constant */ static float D_factor = 0; /* Derivative control constant */ static float Error_max = 9.9e+37; /* Error alarm limits */ static float Error_min = -9.9e+37; static float PV_max = 9.9e+37; /* Process Variable alarm limits */ static float PV_min = -9.9e+37; static float Out_max = 9.9e+37; /* Output clip limits */ static float Out_min = -9.9e+37; static float D_max = 9.9e+37; /* Derivative clip limits */ static float D_min = 9.9e+37; static float I_max = 9.9e+37; /* Integral clip limits */ static float I_min = -9.9e+37; static float Man_state = 0; /* Activates manual control */ static float Man_out = 0; /* Target Manual output value */ static float Man_inc = 0; /* Manual outout change increment */ static float SD_factor = 0; /* Setpoint Derivative constant */ static float SD_max = 9.9e+37; /* Setpoint Derivative clip limits */ static float SD_min = 9.9e+37; static float History_mode = 0; /* Activates fifo data logging */ /* */
Example PID Algorithm Listings 501 Appendix G

/* Other Variables */ static float I_out; /* Integral term */ static float P_out; /* Proportional term */ static float D_out; /* Derivative term */ static float Error; /* Error term */ static float PV_old; /* Last process variable */ static float Setpoint_old; /* Last setpoint - for derivative */ static float SD_out; /* Setpoint derivative term */ static float Status = 0; /* Algorithm status word */ /* */ /* B0 - PID_out at clip limit */ /* B1 - I_out at clip limit */ /* B2 - D_out at clip limit */ /* B3 - SD_out at clip limit */ /* B4 - in Manual control mode */ /* B5 - Error out of limits */ /* B6 - PV out of limits */ /* others - unused */ /* */ /* */ /*PID algorithm code: */ /* Test for Process Variable out of limits */ if ( (inchan >> PV_max) || ( PV_min >> inchan ) ) /* PV alarm test */ {
if ( !Status.B6 ) { Status.B6 = 1; alarmchan = 1; interrupt(); } } else {
Status.B6 = 0; } /* Do this when in the Manual control mode */ if ( Man_state ) { /* On the first trigger after INIT only */ if (First_loop) { Man_out= outchan;/* Maintain output at manual smooth start */ } /* On subsequent triggers, slew output towards Man_out */ else if (Man_out >> outchan + abs(Man_inc)) {
outchan = outchan + abs(Man_inc); } else if (outchan >> Man_out + abs(Man_inc)) {
outchan = outchan - abs(Man_inc); } else {
outchan = Man_out; } /* Set manual mode bit in status word */ Status.B4 = 1; /* No error alarms while in Manual mode */ Status.B5 = 0; /* In case we exit manual mode on the next trigger */ /* Set up for bumpless transfer */ I_out = outchan; Setpoint = inchan; PV_old = inchan; Setpoint_old = inchan; } /* Do PID calculations when not in Manual mode */ else /* if ( Man_state ) */ { Status.B4 = 0;
502 Example PID Algorithm Listings Appendix G

/* First, find the Process Variable "error" */ /* This calculation has gain of minus one (-1) */ Error = Setpoint - inchan; /* Test for error out of limits */ if ( (Error >> Error_max) || (Error_min >> Error) ) { if ( !Status.B5 ) { Status.B5 = 1; alarmchan = 1; interrupt(); } } else {
Status.B5 = 0; } /* On the first trigger after INIT, initialize the I and D terms */ if (First_loop) { /* For no abrupt output change at startup make the I term cancel the P term */
I_out = outchan + Error * ( I_factor - P_factor ); /* Zero the derivative terms */ PV_old = inchan; Setpoint_old = Setpoint; } /* On subsequent triggers, continue integrating */ else /* not First trigger */ {
I_out = Error * I_factor + I_out; } /* Clip the Integral term to specified limits */ if ( I_out >> I_max ) {
I_out = I_max; Status.B1=1; } else if ( I_min >> I_out ) {
I_out = I_min; Status.B1=1; } else {
Status.B1 = 0; } /* Calculate the Setpoint Derivative term */ SD_out = SD_factor * ( Setpoint - Setpoint_old ); /* Clip to specified limits */ if ( SD_out >> SD_max )/* Clip Setpoint derivative */ { SD_out = SD_max; Status.B3=1; } else if ( SD_min >> SD_out ) { SD_out = SD_min; Status.B3=1; } else {
Status.B3 = 0; } /* Calculate the Error Derivative term */ D_out = D_factor *( PV_old - inchan );
Example PID Algorithm Listings 503 Appendix G

/* Clip to specified limits */ if ( D_out >> D_max )/* Clip derivative */ {
D_out = D_max; Status.B2=1; } else if ( D_min >> D_out ) {
D_out = D_min; Status.B2=1; } else {
Status.B2 = 0; } /* Calculate Proportional term */ P_out = Error * P_factor; /* Sum PID&SD terms */ outchan = P_out + I_out + D_out + SD_out; /* Save values for next pass */ PV_old = inchan; Setpoint_old = Setpoint; /* In case we switch to manual on the next pass */ /* prepare to hold output at latest value */ Man_out = outchan; } /* if ( Man_state ) */ /* Clip output to specified limits */ if ( outchan >> Out_max ) {
outchan = Out_max; Status.B0=1; } else if ( Out_min >> outchan ) {
outchan = Out_min; Status.B0=1; } else {
Status.B0 = 0; } /* Clear alarm output if no alarms */ if (!(Status.B6 || Status.B5) ) alarmchan = 0; /* Log appropriate data */ if ( History_mode >> 1 ) { /* Output everything to FIFO & CVT */
writefifo( (ALG_NUM*256)+9 ); writeboth( inchan, (ALG_NUM*10)+0 ); writeboth( Error, (ALG_NUM*10)+1); writeboth( outchan, (ALG_NUM*10)+2); writeboth( Status, (ALG_NUM*10)+3 ); writeboth( Setpoint, (ALG_NUM*10)+4 ); writeboth( P_out, (ALG_NUM*10)+5 ); writeboth( I_out, (ALG_NUM*10)+6 ); writeboth( D_out, (ALG_NUM*10)+7 ); writeboth( SD_out, (ALG_NUM*10)+8 ); } else if ( History_mode ) { /* Output summary to FIFO & CVT */
writefifo( (ALG_NUM*256)+4 ); writeboth( inchan, (ALG_NUM*10)+0 ); writeboth( Error, (ALG_NUM*10)+1; writeboth( outchan, (ALG_NUM*10)+2); writeboth( Status, (ALG_NUM*10)+3 ); } else { /* Output summary to CVT only */
writecvt( inchan, (ALG_NUM*10)+0 ); writecvt( Error, (ALG_NUM*10)+1); writecvt( outchan, (ALG_NUM*10)+2); writecvt( Status, (ALG_NUM*10)+3 ); }
504 Example PID Algorithm Listings Appendix G



















The VT1415A and VT1422A are C-size, single-slot, VXI modules capable of either multi-function input/output (data acquisition) or powerful control capabilities. They serve as powerful data acquisition modules that handle analog input/output and digital input/output in both static and dynamic modes. The digital capability includes the ability to set or sense static states, to measure input frequency and period, to totalize, and to input or output PWM and FM signals. Refer to the VXI Technology Website for instrument driver availability and downloading instructions, as well as for recent product updates, if applicable.
Powerful Data Acquisition Capability Powerful Control Capability Comprehensive On-board Signal Conditioning Custom On-board DSP Program Development Wide Choice of Input/Output Signal Types
More powerful than PID controllers and easier to implement than large custom control systems, the VT1415A fills a unique niche in the data acquisition and control field, providing both control and precise data acquisition. Applications include:
Large Channel-count Strain Signal Conditioning and Measurement
The design of the on-board, DSP firmware assures the user that all inputs, all calculations, and all outputs can be completed between scan triggers. This means there is no drift, or jitter in the critical time intervals that are used to calculate integrals and derivatives in control algorithms.
The firmware allows a user to employ pre-written PID control algorithms, modify them for specific application needs, or to write an application from scratch. Low duty-cycle connection to the host computer allows interaction between the host and real-time DSP so the user can update algorithms, change tuning constants, or do envelope control. Limited host computer interaction leads to very high performance (8-loops, update rate 1000/second per loop with simple PID calculation included).
The VT1422A is a module that is essentially the same as the VT1415A and has all of the same data acquisition and control capabilities as the VT1415A, plus some additional features.



Remote Channel Multifunction DAC
The VT1422A Remote Channel Multi-Function DAC Module supports the VT1539A Remote Channel Signal Conditioning Plug-on and the VT1529B Remote Strain Signal Conditioning Unit to form a high-performance, but economical strain measurement system.
The VT1415A and VT1422A are digital sampling closed loop control systems that are complete in a single VXI module. All signal conditioning, process monitoring, control calculations, and control signals are handled on-board without the need for computer supervision. Once setup is done, the module is essentially free-running.
The VT1422A serves as the controller in this system, managing all the configuration, calibration, triggering of measurements, EU conversion, and calibration processes.
The inputs are updated at the beginning of each cycle and the outputs are updated at a later deterministic time in the cycle so that various paths in the control algorithm do not affect the loop timing. These steps are executed automatically and deterministically without need for intervention from a system computer. Other Features
The main differences between the VT1415A and VT1422A are:
Digital Sampling Closed Loop Control System
The VT1415A/VT1422A combine flexibility with deterministic control. Control algorithms for each of the loops can be the default PID calculation or a user-defined, downloaded, custom algorithm. The loop update rate is deterministically controlled by an internal clock so that variations in the algorithm execution times do not affect the loop cycle time.
The VT1415A and VT1422A offer superior calibration capabilities that provide more accurate measurements. Periodic calibration of the module’s measurement inputs is accomplished by connecting an external voltage measurement standard (such as a highly accurate multimeter) to the inputs of the module. This external standard first calibrates the on-board calibration source. Then built-in calibration routines use the on-board calibration source and on-board switching to calibrate the entire signal path from the closed loop controller’s input, through the signal conditioning plug-ons (SCPs) and FET MUX, to the A/D itself. Subsequent daily or short-term calibrations of this same signal path can be quickly and automatically done using the internal calibration source to eliminate errors introduced by the signal path through the SCPs and FET MUX or by ambient temperature changes. All input channels can be quickly and productively calibrated to assure continued high-accuracy measurements.
Signal Cond.
Engr. Unit Conversion
Signal Cond.
In addition to the calibration of the signal paths within the modules, the VT1415A and VT1422A allow you to perform a “Tare Cal” to reduce the effects of voltage offsets and IR voltage drops in your signal wiring that is external to the module. The Tare Cal uses an on-board D/A to eliminate these voltage offsets. By placing a short circuit across the signal or transducer being measured, the residual offset can be automatically measured and eliminated by the D/A. Tare Cal should not be used to eliminate the thermoelectric voltage of thermocouple wire on thermocouple channels.
Digital Sampling Closed Loop System
The control algorithm for each loop is easily developed by the user from a list of algebraic expressions and flow constructs such as IF, THEN, ELSE. Tuning is simplified because all of the constants in the algorithm as well as the algorithm itself can be updated on-the-fly. New values are double-buffered so there is no need to stop scanning the inputs or halt the algorithm execution.

Algorithmic Closed Loop Controller and Remote Channel Multifunction DAC
The on-board 40 MHz pipelined DSP provides highly deterministic execution, making it easy to accurately predict cycle times. Engineering unit conversions for temperature, strain, resistance, and voltage measurements are made automatically without slowing down the algorithm execution speed.
A Signal Conditioning Plug-on (SCP) is a small daughter board that mounts on VXI Technology’s VXI scanning measurement and control modules. These SCPs provide a number of input and output functions. Several include gain and filtered analog inputs for measuring electrical and sensor- based signals, as well as frequency, total event count, pulse- width modulation, toothed-wheel velocity, and digital state. Output functions include analog voltage and current D/As, 8- or 16-bit digital outputs, pulse output with variable frequency and PWM, and stepper motor control.
Wide Choice of Inputs/outputs
The inputs to the loop algorithm can be measured values from multiple channels, operator input values, outputs from other loops, or values from other subsystems. The VT1415A/ VT1422A have a variety of signal conditioning plug-ons for making measurements of:
Refer to the information on each individual SCP for more details.
Use any of the following SCPs with the VT1415A/VT1422A to make voltage measurements: VT1501A, VT1502A, VT1503A, VT1508A, VT1509A, VT1512A, or VT1513A.
In addition, the measured input values and the calculated output values can be stored in a 64,000-sample FIFO buffer and efficiently transferred to the controlling computer in blocks of data. With this feature, it is no longer necessary to waste resources by dedicating a data acquisition channel to monitor each control loop input and output. The result of any algorithm calculation can be an input for use by another loop or subsystem, or it can be a direct output of several different types. Among the choices of output are:
Any of the input SCPs can be used to make temperature measurements with thermocouples, thermistors, or RTDs, but the VT1503A/VT1508A/VT1509A SCPs provide higher accuracy with thermocouples.
Resistance is measured using either the VT1505A 8-channel Current Source SCP and an input SCP or the VT1518A 4-wire Resistance Measurement SCP. Measurements are made by applying a dc current to the unknown and measuring the voltage drop across the unknown.
As an example of output flexibility, the pulse width modulation output has several modes. In the PWM free- run mode, the frequency or pulse width output rate is independent of the loop update rate and can be changed once per loop update cycle. The square wave mode provides a variable frequency, fixed 50% duty cycle output signal. The pulse-per-update mode provides a variable width pulse synchronized to the loop update cycle.
There are two ways to make static strain measurements.
The VT1506A and VT1507A SCPs provide a convenient way to measure a few channels of static strain. When using the VT1506A/VT1507A for bridge completion, a second SCP is required to make the measurement connection. You can use the following SCPs for this type of static strain measurements:
Manual control can be implemented through a user software interface or external hardware, such as a potentiometer. Seamless transfer from auto to manual mode, or manual to auto is handled automatically by a set-point-tracking routine in the default PID algorithm code.

Algorithmic Closed Loop Controller and
Remote Channel Multifunction DAC
For applications requiring large channel counts of strain measurement, the EX1629 provides a more cost effective approach to static (and dynamic) strain measurements.
Use the VT1533A Digital I/O SCP to provide two 8-bit input/ output words.
Dynamic strain measurements are implemented by connecting the EX1629 to high-speed digitizers, such as the VXI Technology VT1432B and VT1433B.
The VT1538A Enhanced Frequency/Totalize/PWM SCP provides eight (8) channels which can be individually configured as a frequency or totalizer input, or as a pulse width modulated output.
Compact Packaging with Signal Conditioning
When making higher speed measurements, a vital issue often is the time skew between channels. Ideally, in many applications, the sampled data is needed at essentially the same instant in time. While the intrinsic design of the VT1415A/VT1422A provides scanning of 64 channels, with maximum skew of 640 µs between the first and last channel (far less than most sampled data systems), this still may not be small enough skew for some applications.
The VT1415A/VT1422A provide for configurable signal conditioned I/O with up to eight individual plug-ons for analog, digital, and frequency needs. The SCPs are:
The VT1510A provides basic sample-and-hold capabilities on four channels. Six-pole Bessel filters provide alias and alias-based noise reduction while giving excellent transient response without overshoot or ringing. The VT1510A can be used in strain applications primarily where the bridge is external.
The VT1511A, a double-wide SCP, has all the capabilities of the VT1510A but adds on-board bridge excitation and completion functions. The four direct input channels are used for monitoring the bridge excitation. A maximum of four SCPs (16 channels) can be installed on a VT1415A/VT1422A.
7 Hz Low-pass Filter SCP
Use the VT1531A for voltage outputs, and the VT1532A for current outputs. The VT1531A and VT1532A have eight (8) output channels available on each SCP.
A maximum of seven (7) VT1532A SCPs can be installed on each VT1415A/VT1422A due to power limitations. There are no power restrictions on the VT1531A.

Algorithmic Closed Loop Controller and Remote Channel Multifunction
Maximum reading rate: VT1415A: Up to 56 kSa/s dependent upon configuration VT1422A: Up to 25 kSa/s dependent upon configuration
Timing: Scan-to-scan timing and sample-to-sample timing can be set independently.
Scan triggers: Can be derived from a software command or a TTL level from other VXI modules, internal timer, or external hardware. Typical latency 17.5 µs.
Synchronization: Multiple VT1415A/VT1422A modules can be synchronized at the same rate using the TTL trigger output from one VT1415A/VT1422A to trigger the others.
Maximum common mode voltage:
Alternate Multiple VT1415A/VT1422A synchronization: modules can be synchronized at different integer-related rates using the ALG:SCAN:RATIO command and the TTL trigger output from one VT1415A/ VT1422A module to trigger the others.
Typically ±0.01% of input level; varies with the SCP used. Specifications are 90 days, 23 °C ± 1 °C, with *CAL done after a 1hr warm-up and CAL:ZERO done within 5 minutes. Note: Beyond the 5min. limitation and CAL:ZERO not done, apply the following drift error: Drift = 10 µV/°C ÷ SCP gain, per °C change from CAL:ZERO temperature.
Measurement accuracy is dependent upon the SCP module used. Refer to the accuracy tables and graphs for the individual SCP to determine the overall measurement accuracy.
The following specifications include the SCP and scanning A/D performance together as a unit. Accuracy is stated for a single sample. Averaging multiple samples will improve accuracy by reducing noise of the signal. The basic VT1415A scanning A/D has a full-scale range of ±16 V and five auto- ranging gains of x1, x4, x16, x64, and x256. An SCP must be used with each eight channel input block to provide input protection and signal conditioning.
Many definitions of accuracy are possible. Here we use single- shot with 3 sigma noise. To calculate accuracy assuming temperature is held constant within ±1 °C of the temperature at calibration, the following formula applies:
Single Shot 3σ = ±(√((GainError)2 + (OffsetError)2+ (3σ noise)2))

Algorithmic Closed Loop Controller and
Remote Channel Multifunction
variables, array local and global variables.
To calculate accuracy over temperature range outside the ±1 °C range, results after *CAL are given by replacing each of the above error terms as follows:
Intrinsic functions: interrupt( ), writefifo( ), writecvt( ),writeboth( ), min( ), max( ), abs( ).
Replace (GainError)2 with (GainError)2 + (GainTempco)2
Other functions: Create own custom functions to handle transcendental operations.
Replace (OffsetError)2 with (OffsetError)2 + (OffsetTempco)2
A total of eight (8) Signal Conditioning Plug-ons (SCPs) can be installed in most combinations of input or output configurations on a single VT1415A/VT1422A.
Power Available for SCPs ±24 V: 1.0 A 5 V: 3.5 A General Specifications VXI device type: A16, slave only, Register based
Default control PID algorithm type:
Maximum VT1415A loop update rate for default PID algorithm:
(Note: VT1422A maximum sample rate is 25 kSamples/s, compared to 56 kSa/s for the VT1415A. The loop speeds of the VT1422A are reduced in same ratio.) 1 loop: 3 kHz 8 loops: 1 kHz 32 loops: 250 Hz
Custom algorithm development:
Language: Subset of C programming language including if- then-else, most math and comparison operations.
Instrument Drivers - See the VXI Technology Website www.vxitech.com for driver availability and downloading. VT1415A Algorithmic Closed Loop Controller,
I/O General · Loop Control Specifications

Algorithmic Closed Loop Controller and Remote Channel Multifunction
Ordering Information
Includes Spring Clamp Terminal Block VT1415A-02 Algorithmic Closed Loop Controller, Includes Screw Connector Terminal Block VT1415A-A3F Interface to rackmount terminal panel VT1422A Remote Channel Multi-function Data Acquisition & Control Module VT1422A-001 16-Port RJ-45 Connector Block (supports VT1415A also) VT1422A-011 Screw Terminal Connector Block (supports VT1415A also) VT1422A-013 Spring Clamp Terminal Connector (supports VT1415A also) VT1501A 8-channel Direct Input SCP VT1502A 8-channel 7 Hz Low-pass Filter SCP VT1503A 8-channel Programmable Filter/Gain SCP VT1505A 8-channel Current Source SCP VT1506A 8-channel 120 Ω Strain Completion & Excitation SCP VT1507A 8-channel 350 Ω Strain Completion & Excitation SCP VT1508A 8-channel x16 Gain & 7 Hz Fixed Filter SCP VT1509A 8-channel x64 Gain & 7 Hz Fixed Filter SCP VT1510A 4-channel Sample & Hold Input SCP VT1511A 4-channel Transient Strain SCP VT1512A 8-channel 25 Hz Fixed Filter SCP VT1513A 8-channel ÷ 16 Fixed Attenuator & 7 Hz Low-pass Filter SCP VT1518A 4-wire Resistance Measurement SCP VT1521 4-channel High-Speed Bridge SCP VT1531A 8-channel Voltage Output SCP VT1532A 8-channel Current Output SCP VT1533A 16-bit Digital I/O SCP VT1536A 8-bit Isolated Digital I/O SCP VT1538A Enhanced Frequency/Totalize/PWM SCP VT1539A Remote Channel Signal Conditioning Plug-on (VT1422A only)

73-0025-002 Option 011 Screw Terminal Connector Block
73-0025-003 Option 013 Spring Clamp Terminal Connector Block
73-0025-004 Option A3F Interface to Rackmount Terminal Panel
Owners and our team usually reply within a day — and your question helps the next person too.
Be the first to ask — other owners or our team will answer.