32 Getting Started
Chapter 1
Verifying a Successful Configuration
An example C program source is shown on the following pages. This program is
included on the VXI Technology VXI
plug&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 <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <hpe1422.h> /* 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);
Summary of Contents for VT1422A
Page 2: ...This page is blank...
Page 8: ...8 Notes...
Page 22: ...22 Support...
Page 57: ...Field Wiring 57 Chapter 2...
Page 58: ...58 Field Wiring Chapter 2...
Page 96: ...94 Programming the VT1422A VT1529A B for Remote Strain Measurement Chapter 3...
Page 162: ...160 Programming the VT1422A for Data Acquisition and Control Chapter 4...
Page 224: ...222 Creating and Running Algorithms Chapter 6...
Page 419: ...VT1422A Command Reference 417 Chapter 7 Notes...
Page 420: ...418 VT1422A Command Reference Chapter 7 Notes...
Page 425: ...Specifications 423 Appendix A Thermocouple Type E 200 800 C SCPs VT1501 02 03A...
Page 426: ...424 Specifications Appendix A Thermocouple Type E 200 800 C SCPs VT1508 09A...
Page 427: ...Specifications 425 Appendix A Thermocouple Type E 0 800 C SCPs VT1501A 02A 03A...
Page 428: ...426 Specifications Appendix A Thermocouple Type E 0 800 C SCPs VT1508A 09A...
Page 429: ...Specifications 427 Appendix A Thermocouple Type E Extended SCPs VT1501A 02A 03A...
Page 430: ...428 Specifications Appendix A Thermocouple Type E Extended SCPs VT1508A 09A...
Page 431: ...Specifications 429 Appendix A Thermocouple Type J SCPs VT1501A 02A 03A...
Page 432: ...430 Specifications Appendix A Thermocouple Type J SCPs VT1508A 09A...
Page 433: ...Specifications 431 Appendix A Thermocouple Type K SCPs VT1501A 02A 03A...
Page 434: ...432 Specifications Appendix A Thermocouple Type R SCPs VT1501A 02A 03A...
Page 435: ...Specifications 433 Appendix A Thermocouple Type R SCPs VT1508A 09A...
Page 436: ...434 Specifications Appendix A Thermocouple Type S SCPs VT1501A 02A 03A...
Page 437: ...Specifications 435 Appendix A Thermocouple Type S SCPs VT1508A 09A...
Page 438: ...436 Specifications Appendix A Thermocouple Type T SCPs VT1501A 02A 03A...
Page 439: ...Specifications 437 Appendix A Thermocouple Type T SCPs VT1508A 09A...
Page 440: ...438 Specifications Appendix A 5k Thermistor Reference SCPs VT1501A 02A 03A...
Page 441: ...Specifications 439 Appendix A 5k Thermistor Reference SCPs VT1508A 09A...
Page 442: ...440 Specifications Appendix A RTD Reference SCPs VT1501A 02A 03A...
Page 443: ...Specifications 441 Appendix A RTD SCPs VT1501A 02A 03A...
Page 444: ...442 Specifications Appendix A RTD SCPs VT1508A 09A...
Page 445: ...Specifications 443 Appendix A 2250 Thermistor SCPs VT1501A 02A 03A...
Page 446: ...444 Specifications Appendix A 2250 Thermistor SCPs VT1508A 09A...
Page 447: ...Specifications 445 Appendix A 5k Thermistor SCPs VT1501A 02A 03A...
Page 448: ...446 Specifications Appendix A 5k Thermistor SCPs VT1508A 09A...
Page 449: ...Specifications 447 Appendix A 10k Thermistor SCPs VT1501A 02A 03A...
Page 450: ...448 Specifications Appendix A 10k Thermistor SCPs VT1508A 09A...
Page 454: ...452 Specifications Appendix A...
Page 480: ...478 VT1529A B Verification Calibration Appendix C...
Page 484: ...482 Glossary Appendix D Notes...