Provides a user-defined statement.
[ Result = ] ModuleName CommandItem ... [ ( Arguments ) ]
The command statement is defined in ModuleName. This can be one of the following:
|
Module |
Description |
|
System |
The current system module. |
|
Driver |
Specifies that the commands are to be found in the current driver, that is. the driver which contains the Command statement. |
|
Program |
Specifies that the commands are to be found in the current program, that is. the program which contains the Command statement. |
|
DriverName |
The name of the driver module item which contains the commands, for example, DMM. |
The CommandItems are one or more identifiers separated by blanks. The first CommandItemmust be a top level command in the specified system, driver, or program module. Each subsequent CommandItem must be a subcommand of the preceding CommandItem. The final CommandItem must have been assigned a procedure or I/O Table to be executed to perform the command. As opposed to regular identifiers, CommandItem identifiers can start with a number, so that common instrument settings such 12V or 100k can be used as CommandItems.
The Arguments are zero or more expressions separated with commas passed to the subroutine or to the I/O Table. Each parameter to the subroutine or I/O Table which is not optional and which was not given a fixed value as part of the command definition must have a corresponding Argument expression supplied. If no arguments are supplied, the parentheses may be omitted.
If the command returns a value, the return value can be used in an assignment statement or in any other expression in the same manner as any function call.
In the following statement, DMM is the ModuleName, and Set, Function, and VDC are the CommandItems.
DMM Set Function VDC
In the following statement, DMM2 is the ModuleName, and Measure is the CommandItem.
DMM2 Measure (dResult)