... continued
/**************************************************************************/
void rst_clear(void)
{
/* Reset the meter, clear the error queue, and wait for commands to
complete. A "1" is sent to the output buffer from the *OPC? command
when *RST and *CLS are completed. */
float value;
IOOUTPUTS(ADDR, "*RST;*CLS;*OPC?", 15);
IOENTER(ADDR, &value);
}
/**************************************************************************/
void setup_status(void)
{
/* An interrupt is to be generated when the external trigger is received
and readings are available in internal memory. To enable the status
registers to generate an interrupt, you must enable bits in the
Status Byte and Standard Event Register. */
/* Enable bit 5 "Standard Event" in the Status Byte to recognize
activity from the Standard Event Register (2^5 = 32) */
IOOUTPUTS(ADDR, "*SRE 32", 7);
/* Enable bit 0 in the Standard Event Register to interrupt the
Status Byte (2^0 = 1) */
IOOUTPUTS(ADDR, "*ESE 1", 6);
/* Call the function to check for errors */
check_error("setup_status");
}
Chapter 6 Application Programs
C Language Programs
240
Summary of Contents for 34420A
Page 1: ......
Page 2: ......
Page 13: ...1 Quick Start ...
Page 31: ...2 Front Panel Operation ...
Page 55: ...3 Features and Functions ...
Page 117: ...4 Remote Interface Reference ...
Page 200: ...5 Error Messages ...
Page 213: ...6 Application Programs ...
Page 245: ...6 Chapter 6 Application Programs Microsoft Excel Macro Example 245 ...
Page 246: ...Chapter 6 Application Programs Microsoft Excel Macro Example 246 ...
Page 247: ...7 Measurement Tutorial ...
Page 274: ...8 Specifications ...
Page 279: ...Dimensions Chapter 8 Specifications 34420A Nano Volt Micro Ohm Meter 280 ...
Page 294: ......