Calling a Subroutine

To call a subroutine you need to insert a CALLSUB command into your measurement routine to call an existing subroutine from the current measurement routine or a subroutine from an external measurement routine.

When a CALLSUB command executes, PC-DMIS executes all the commands in the subroutine. This includes even unmarked commands.

The called subroutine must have been created in a valid PC-DMIS version (versions 2015.1 through 2022.1).

Calling a Subroutine by Typing CALLSUB

Calling a Subroutine Using the Call Sub Menu Item

Syntax for the CALLSUB Command

Example CALLSUB Command

 

More:

Understanding the Call Subroutine Dialog Box

Passing Arguments into a Subroutine

To add a new argument using the Call Subroutine Dialog box:

To edit existing arguments using the Call Subroutine Dialog box:

To delete arguments from a CALLSUB command:

Using CALLSUB Statements in Multiple Arm Mode