Programming Examples

Determine if an Error has Occurred

/* When an interrupt occurs, determine which device generated the interrupt (if an instrument other than the ESA generates the interrupt, simply report "Instrument at GPIB Address xxx Has Generated an Interrupt").*/

printf ("\n SRQ Event Occurred!\n");

printf ("\n ... Original Device Session = %1d\n",viESA);

/*Get the GPIB address of the insrument, which has interrupted*/ viQueryf(viESA,"SYST:COMM:GPIB:SELF:ADDR?\n","%t", cBuf);

printf ("\n Instrument at GPIB Address %s Has Generated an Interrupt!\n",cBuf);

/*Get the status byte*/

/* If the ESA generated the interrupt, determine the nature of the interrupt either a measurement is uncalibrated or an error message has occurred?*/

viQueryf(viESA, "STAT:QUES:INT:EVEN?\n", "%d", &iStatusByte); if ( (0x08 & iStatusByte))

printf("\n SRQ message:\t Measurement uncalibrated\n");

/* If the ESA generated the interrupt, determine the nature of the interrupt; did is the measurement complete or an error message occur?*/

viQueryf(viESA, "*ESR?\n", "%d", &iStatusByte); if ( (iStatusByte !=0) && (0x01 & iStatusByte))

printf("\n SRQ message:\t Measurement complete\n");

else if ( (iStatusByte !=0) && (0x02 0x10 0x20 & iStatusByte ))

printf ("\n SRQ message:\t Error Message Occurred\n");

/*Return successfully*/ iSrqOccurred =1; viReadSTB(viESA, &iStatusByte); return VI_SUCCESS;

}

void main()

{

/*Program Variables*/ ViStatus viStatus = 0;

long

lOpc= 0L;

int

iIntNum= 0;

long

lCount= 0L;

/* Open a GPIB session at address 18*/ viStatus=viOpenDefaultRM(&defaultRM); viStatus=viOpen(defaultRM,"GPIB0::18",VI_NULL,VI_NULL,&viESA); if(viStatus)

{

printf("Could not open a session to GPIB device at address 18!\n"); exit(0);

158

Chapter 3

Page 158
Image 158
Agilent Technologies Model  A.08.xx manual 158

Model A.08.xx specifications

Agilent Technologies has long been a leader in the field of measurement and analytical instrumentation, and their Model A.08.xx is a prime example of this expertise. This advanced instrument is designed for a wide array of applications, spanning from life sciences to chemical analysis, offering unparalleled precision and reliability to meet the demands of laboratory environments.

One of the main features of the A.08.xx model is its advanced measurement capabilities. The instrument boasts a high-resolution detector that provides exceptional sensitivity, allowing researchers to detect even trace levels of analytes in complex samples. The enhanced signal-to-noise ratio is particularly beneficial for users working with low concentrations, ensuring accurate results without the need for laborious sample preparation.

The A.08.xx is equipped with state-of-the-art technologies that significantly enhance its performance. One such technology is its multi-wavelength detection system, which allows simultaneous analysis of multiple compounds within a single run. This not only boosts efficiency but also reduces the time required for method development and validation. Additionally, the model utilizes sophisticated software for data analysis, providing users with intuitive tools to interpret results quickly and effectively.

Another characteristic of the A.08.xx is its robust build quality and user-friendly interface. Designed for rigorous laboratory use, the instrument can withstand the demanding conditions of a busy research environment. Its intuitive touchscreen display simplifies operations, allowing users to set up experiments and navigate through various functions with ease. This user-centric design reduces the learning curve for new operators, enhancing productivity in the lab.

The A.08.xx also incorporates connectivity features that align with modern laboratory needs. With options for remote monitoring and data sharing, researchers can easily collaborate and access results in real-time, streamlining workflows and promoting innovation.

In conclusion, Agilent Technologies’ Model A.08.xx is not just an analytical instrument; it is a comprehensive solution for researchers and scientists seeking reliability and performance in their analytical work. With its advanced measurement capabilities, cutting-edge technologies, and user-friendly design, it continues to set the standard for excellence in laboratory instrumentation, facilitating groundbreaking research across various scientific fields.