Programming Examples

C Programming Examples using VTL

The visatype.h header file defines most of the VISA types. The VISA types are used throughout VTL to specify data types used in the functions. For example, the viOpenDefaultRM function requires a pointer to a parameter of type ViSession. If you find ViSession in the visatype.h header file, you will find that ViSession is eventually typed as an unsigned long.

Opening a Session

A session is a channel of communication. Sessions must first be opened on the default resource manager, and then for each device you will be using. The following is a summary of sessions that can be opened:

A resource manager session is used to initialize the VISA system. It is a parent session that knows about all the opened sessions. A resource manager session must be opened before any other session can be opened.

A device session is used to communicate with a device on an interface. A device session must be opened for each device you will be using. When you use a device session you can communicate without worrying about the type of interface to which it is connected. This insulation makes applications more robust and portable across interfaces. Typically a device is an instrument, but could be a computer, a plotter, or a printer.

NOTE

All devices that you will be using need to be connected and in working condition

 

prior to the first VTL function call (viOpenDefaultRM). The system is

 

configured only on the first viOpenDefaultRM per process. Therefore, if

 

viOpenDefaultRM is called without devices connected and then called again

 

when devices are connected, the devices will not be recognized. You must close

 

ALL resource manager sessions and re-open with all devices connected and in

 

working condition.

 

 

Device Sessions

There are two parts to opening a communications session with a specific device. First you must open a session to the default resource manager with the viOpenDefaultRM function. The first call to this function initializes the default resource manager and returns a session to that resource manager session. You only need to open the default manager session once. However, subsequent calls to viOpenDefaultRM returns a session to a unique session to the same default resource manager resource.

Next, you open a session with a specific device with the viOpen function. This function uses the session returned from viOpenDefaultRM and returns its own session to identify the device session. The following shows the function syntax:

viOpenDefaultRM (sesn);

viOpen (sesn, rsrcName, accessMode, timeout, vi);

100

Chapter 3

Page 100
Image 100
Agilent Technologies Model  A.08.xx manual Opening a Session, Device Sessions

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.