Beginning of Program

/* This program resets the E1563A/E1564A, reads the ID Register, the Device */ /* Type Register, the Status Register, makes measurements and retrieves data*/ /* Programmed with MS Visual C++ version 2.0 using Agilent VISA I/O calls. */

#include <visa.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h>

/* function prototypes */ void err_handler();

void wait (int wait_seconds);

void reset(ViSession vi, ViStatus x);

Program Main

void main(void)

{

unsigned short id_reg, dt_reg;/* ID and Device Type */ unsigned short stat_reg; /* Status Register */

unsigned short cvt_reg, cache_reg; /* last value and cache registers */ double last_reading, reading; /* decimal values of readings */

int i;

/* create and open a device session */ ViStatus err;

ViSession defaultRM, digitizer; ViOpenDefaultRM(&defaultRM); /* GPIB interface address is 9 */

/* digitizer logical address switch = 40 (factory setting) */ ViOpen(defaultRM,”GPIB-VXI0::9::40”,VI_NULL,VI_NULL,&digitizer);

/* reset the E1563A/E1564A */ reset(digitizer, err);

Read ID and Device Type Registers

/********* read the digitizer's ID and Device Type registers *********/

err=ViIn16(digitizer,VI_A16_SPACE,0x00,&id_reg);

/* read reg 00 */

if (err<VI_SUCCESS) err_handler(digitizer,err);

 

err=ViIn16(digitizer,VI_A16_SPACE,0x02,&dt_reg);

/* read reg 02 */

if (err<VI_SUCCESS) err_handler(digitizer,err);

 

printf(“ID register = 0x%4X\n”,id_reg)

 

printf(“Device Type register = 0x%4X\n”,dt_reg);

 

Appendix B

Register-Based Programming 141

Page 141
Image 141
Agilent Technologies E1563A, E1564A user manual Beginning of Program, Program Main, Read ID and Device Type Registers

E1563A, E1564A specifications

Agilent Technologies, a prominent player in the field of electronic measurement, offers a range of products designed for various testing applications. Among their notable offerings are the E1564A and E1563A modules. Both models are designed for high-performance testing and measurement, catering particularly to the needs of engineers and technicians in the telecommunications and wireless industries.

The Agilent E1564A is a high-speed data and synchronization generation module, specifically tailored for advanced signal analysis. One of its primary features is its ability to provide a wide range of modulation types, including QPSK and 16QAM, which are essential for testing modern communication systems. The module also boasts a flexible output that supports multiple channels, making it efficient for testing complex systems where multiple data streams are present. Its exceptional performance in generating accurate waveforms enables engineers to perform thorough tests and validations on their devices.

On the other hand, the E1563A module is predominantly focused on protocol analysis and provides engineers with insights into the behavior of their communication systems. This module features comprehensive support for various communication protocols, making it invaluable when debugging and validating designs. Engineers can utilize the extensive measurement capabilities of the E1563A to analyze data integrity and system performance, ensuring that their products meet required specifications.

Both modules leverage advanced technologies from Agilent, ensuring high accuracy and reliability in measurements. They are equipped with powerful processing capabilities that allow for real-time data analysis, a critical aspect when working with high-frequency signals. Furthermore, these modules are designed for seamless integration into Agilent’s test and measurement platforms, enhancing usability and facilitating complex testing scenarios.

In summary, the Agilent E1564A and E1563A modules represent cutting-edge solutions for engineers involved in testing and validating communication systems. With their robust features, including support for various modulation schemes and protocol analysis, these modules enable efficient and accurate measurements. The commitment to quality and precision from Agilent Technologies continues to make these devices essential tools in the industry, helping engineers push the boundaries of innovation in telecommunications.