Programming Fundamentals

Putting Multiple Commands on the Same Line

Putting Multiple Commands on the Same Line

Multiple commands can be written on the same line, reducing your code space requirement. To do this:

Commands must be separated with a semicolon (;).

If the commands are in different subsystems, the key word for the new subsystem must be preceded by a colon (:).

If the commands are in the same subsystem, the full hierarchy of the command key words need not be included. The second command can start at the same key word level as the command that was just executed.

SCPI Termination and Separator Syntax

A terminator must be provided when an instrument is controlled using RS-232 (Option 1AX). There are several issues to be understood about choosing the proper SCPI terminator and separator when this is the case. There is no current SCPI standard for RS-232. Although one intent of SCPI is to be interface independent, <END> is only defined for IEEE 488 operation. At the time of this writing, the RS-232 terminator issue was in the process of being addressed in IEEE standard 1174.

A semicolon (;) is not a SCPI terminator, it is a separator. The purpose of the separator is to queue multiple commands or queries in order to obtain multiple actions and/or responses. Make sure that you do not attempt to use the semicolon as a terminator when using RS-232 control.

Basically all binary trace and response data is terminated with <NL><END>, as defined in Section 8.5 of IEEE Standard 488.2-1992, IEEE Standard Codes, Formats, Protocols and Common Commands for Use with ANSI/IEEE Std 488.1-1987. New York, NY, 1992.

The following are some examples of good and bad commands. The examples are created from an EMC analyzer with the simple set of commands indicated below:

[:SENSe]

:POWer

[:RF] :ATTenuation 40dB

[:SENSe]

:FREQuency

:STARt

:POWer

[:RF]

:MIXer

:RANGe

[:UPPer]

48

Chapter 1

Page 48
Image 48
Agilent Technologies Model  A.08.xx Putting Multiple Commands on the Same Line, Scpi Termination and Separator Syntax

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.