The Agilent 816x VXIplug&play Instrument Driver

Error Handling

Error Handling

Events and errors within a instrument control program can be detected by polling (querying) the instrument. Polling is used in application development environments (ADEs) that do not support asynchronous activities where callbacks can be used.

Programs can set up and use polling as shown below.

1Declare a variable to contain the function completion code.

ViStatus errStatus;

Every driver function returns the completion code ViStatus.

If the function executes with no I/O errors, driver errors, or instrument errors, ViStatus is 0 (VI_SUCCESS).

If an error occurs, ViStatus is a negative error code.

Warnings are positive error codes, and indicate the operation succeeded but special conditions exist.

2Enable automatic instrument error checking following each function call.

hp816x_errorQueryDetect (instrumentHandle, VI_TRUE);

When enabled, the driver queries the instrument for an error condition before returning from the function.

If an error occurred, errStatus (Step 1) will contain a code indicating that an error was detected (hp816x_INSTR_ERROR_DETECTED).

3Check for an error (or event) after each function.

errStatus = hp816x_cmd(instrumentHandle, "SENS1:POW:RANG");

check(instrumentHandle, errStatus);

After the function executes, errStatus contains the completion code.

The completion code and instrument ID are passed to an error checking routine. In the above statement, the routine is called 'check'.

4Create a routine to respond to the error or event. This example queries whether an error has occured, checks if the error is an instrument error and then checks if the error is a driver error.

230

Agilent 8163A/B, 8164A/B & 8166A/B Mainframes, Fifth Edition

Page 230
Image 230
Agilent Technologies 8163A, B Error Handling, 230, Check for an error or event after each function, ViStatus errStatus

8163A, 8164A, 8166A, B specifications

Agilent Technologies B,86100A is a high-performance oscilloscope and signal integrity analyzer designed primarily for advanced digital communications applications. As a versatile tool, it supports a wide range of testing needs, making it indispensable for engineers and researchers involved in the development and testing of high-speed digital signals.

One of the standout features of the B,86100A is its capability to analyze signals with various bandwidths, accommodating both current and emerging communication standards. The device features a sampling rate of up to 80 GS/s and bandwidth capabilities of 33 GHz to ensure high accuracy in capturing fast signal transitions, which is critical for ensuring the integrity of complex digital signals.

The B,86100A employs Agilent's proprietary digital signal processing (DSP) technology, which significantly enhances measurement precision and reduces noise, enabling users to obtain clearer insights into signal behavior. Its advanced triggering capabilities allow for precise signal capture, making it particularly useful in troubleshooting and validating high-speed designs, as well as in evaluating the performance of optical and electrical devices.

In addition to its high-speed capabilities, the B,86100A offers a robust set of measurement tools including jitter analysis, eye diagram analysis, and equalization assessment. These features allow engineers to effectively analyze signal quality and address potential issues related to signaling distortions and inter-symbol interference.

The graphical user interface of the B,86100A is intuitive, enabling users to efficiently navigate through measurement options and visualize data results. Customizable measurement setups streamline workflow, ensuring that users can quickly adapt their tests to evolving project requirements.

Another key characteristic of the B,86100A is its modularity. The system supports a variety of plug-in modules, which can be tailored to specific application needs, such as different types of optical and electrical signals. This flexibility not only extends the operational capability of the instrument but also makes it a future-proof investment as technology continues to evolve.

In summary, Agilent Technologies B,86100A combines high-speed acquisition with advanced processing capabilities, making it an essential instrument for anyone involved in high-speed digital design and testing. With its ability to deliver precise measurements and extensive analysis features, it empowers engineers to achieve optimal performance and reliability in their systems.