Programming Example Conventions

Last Updated: August 29, 2007

This topic provides information about the conventions used for both short programming examples, and more comprehensive programming examples presented in this help. Refer to the following sections:

The Programming Environment Used

Syntax used in Programming Examples

DISPlay:BRIGhtness MEDium

DISPLAY:BRIGHTNESS MEDIUM

dispLAY:brigHTNESS medIUM

dIsPlAy:BrIgHtNeSs mEdIuM

SYSTem:CORRection[:SGAin] -2.55,-3.12

appears in the programming examples as:

SYSTem:CORRection -2.55,-3.12

Complex Commands

Complex commands are used to configure the state and assign values to parameters simultaneously. Complex commands can be used to save programming steps and minimize remote interface transactions.

TestSet.WriteString("SETup:RFCHannel:TIMeout:STATe ON")

TestSet.WriteString("SETup:RFCHannel:TIMeout:TIME 20S")

TestSet.WriteString("SETup:RFCHannel:TIMeout:STIMe 20S")

The command above sets the parameter state to ON and the value of the parameter to 20 seconds. Note that in this example the optional command mnemonic :STIMe has been included to clarify that this complex command was used to set both the state and the value.

This command can be shortened further by removing the optional command mnemonic :STIMe, as follows.

TestSet.WriteString("SETup:RFCHannel:TIMeout 20S")

Query Response Data Types

The test set can return the following data types in response to queries: