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 predened 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 predened variable, DL. Notice that MKA is not terminated with a ? or termination character. The ending semicolon terminates the MOV command.
To use a command argumentThe calling command must list predened function in its syntax diagram for the argument.
Do not follow the argument command with a ? or termination character.