Step.SwitchExecOperation

Syntax

Step.SwitchExecOperation

Data Type

SwitchExecOperations

Use the following constants with this data type:

  • SwitchExecOperation_Connect –(Value: 1) Creates the paths for the specified routes in the Step.SwitchExecRoutesToConnect property.
  • SwitchExecOperation_ConnectDisconnect –(Value: 4) Creates the paths for the routes specified in the Step.SwitchExecRoutesToConnect property and destroys the paths for the routes specified in the Step.SwitchExecRoutesToDisconnect property. Use the Step.SwitchExecOperationOrder property to specify whether the Disconnect operation occurs before or after the Connect operation.
  • SwitchExecOperation_Disconnect –(Value: 2) Destroys the paths the specified routes define in the Step.SwitchExecRoutesToDisconnect property.
  • SwitchExecOperation_DisconnectAll –(Value: 3) Disconnects all previously created paths.

Purpose

Specifies whether to connect or disconnect the routes the Step.SwitchExecRoutesToConnect and Step.SwitchExecRoutesToDisconnect properties specify, or disconnect all previously connected routes for a virtual device.

Note This operation returns as soon as the instrument is ready for another operation, which might be before or after the switches involved settle. Enable the Step.SwitchExecWaitForDebounce property if you want to wait until all switches have debounced.

See Also

Step.SwitchExecOperationOrder

Step.SwitchExecRoutesToConnect

Step.SwitchExecRoutesToDisconnect

Step.SwitchExecVirtualDevice

Step.SwitchExecWaitForDebounce