/* Use the MEASure command to configure the digitizer and to take */ /* the readings */

IOOUTPUTS(ADDR, "MEAS1:ARR:VOLT? (10),5,(@3)", 27); /* Send (27) characters */

IOENTERA(ADDR, rdgs, &readings);

/* Read readings from MEASure command */

for (i = 0; i < readings; i++)

{

printf("\nReading %d = %f", i, *rdgs++);

}

free (rdgs - readings);

}

/****************************************************************************/ void rst_clr(void)

{

/* Reset and clear the A/D */

IOOUTPUTS(ADDR, "*RST;*CLS", 9);

/* Send (9) characters */

}

Using CONFigure When an application requires a configuration different from that available with MEASure, CONFigure is used. CONFigure does not take readings after setting the configuration. Thus, any of the low-level commands (Table 1-3) can be used to change selected parameters before a measurement is made.

Assume an application requires the following configuration:

10 pre-arm and 10 post arm readings

1V range

single ended input

MEASure cannot be used since it sets the pre-arm reading count to 0. By using CONFigure, the low-level command:

SENSe[<chan >]:SWEep:OFFSet:POINts <count >

can be used to set the desired number of pre-arm readings:

Chapter 1

Getting Started 39

Page 39
Image 39
HP E1429A manual Can be used to set the desired number of pre-arm readings