VXI VT1422A User Manual

Page 263

Advertising
background image

VT1422A Command Reference 261

Chapter 7

CALCulate

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, &degC);

/* Get unconverted thermocouple data from the FIFO */

errStatus = hpe1422_calcTempTC_Q(vi, "J", degC, 30, &voltArray[1], tempArray,

&howManyRead);

Advertising
This manual is related to the following products: