Using Commands as Arguments

Some OSA commands accept other commands as arguments. The following example shows the MKA command used as an argument for the MOV command.

10 OUTPUT 723;"MOV DL,MKA;"

The value of the command MKA is returned as input to the calling command, MOV. Commands that accept command arguments have syntax diagrams that show prede￿ned function as an argument. Refer to Chapter 7. When using a command as an argument, the value returned is similar to the query value. Be sure the value returned is appropriate for the calling command. For example, the TRA command returns all the data in a trace, but TRA[50] returns the ￿ftieth element.

Do not follow the argument command with a ? or termination character. In the example shown above, the MOV moves the marker amplitude value into the prede￿ned variable, DL. Notice that MKA is not terminated with a ? or termination character. The ending semicolon terminates the MOV command.

To use a command argument

￿The calling command must list prede￿ned function in its syntax diagram for the argument.

￿Do not follow the argument command with a ? or termination character.

1-17