SwitchDisconnect Function
- Mise à jour2025-07-21
- Temps de lecture : 1 minute(s)
SwitchDisconnect Function
Syntax
SwitchDisconnect(String device, String disconnectRoutes, Boolean waitForDebounce = True)
Return Value
This function always returns 0.
Purpose
This function disconnects paths for the specified routes in the device defined in the National Instruments Switch Executive.
Parameters
device as String
The virtual device on which to performs the switching action.
disconnectRoutes as String
The routes you are disconnecting. The expression must be a valid route specification string as defined by the National Instruments Switch Executive configuration for the virtual device name you are using. The string can be a combination of route group alias names, route names, and physical route paths. Example: 'MyRouteGroup & MyRoute & [Dev1/CH3->CH4,CH4->R0]'
waitForDebounce as Boolean
(Optional) Specifies whether the operation waits for all switches to debounce before returning to TestStand. The wait for debounce occurs after the disconnect operation completes. The default value is True.