beautypg.com

B&K Precision 4045B - Manual User Manual

Page 73

background image

73

For example, to set the frequency to its maximum

value we can send the command

FREQ MAX

Some Program Message Units either require, or can

accept, more than one data element. Program data

elements are separated from each other by the Program

Data Separator. It is defined as optional white space

characters followed by a comma (','), which in turn is

followed by optional white space characters.

There are two types of Program Message Units:

Command Message Units and Query Message Units. A

Query differs from a Command in that the Program

Header is terminated with a question mark ('?'). For

example, the frequency might be queried with the

following query:

FREQ?

Some Query Message Units accept data, giving the device

more specific information about what is being queried. In

many cases the Query Message Unit may optionally be

supplied with the MIN or MAX mnemonics as data. This

tells the device to return the minimum or maximum value

to which the parameter may currently be set. For example,

FREQ? MAX