Method CleanupInstrumentation
- Assembly
- NationalInstruments.SemiconductorTestLibrary.TestStandSteps.dll
CleanupInstrumentation(ISemiconductorModuleContext, bool, NIInstrumentType)
Closes any open instrument sessions associated with the pin map.
If the resetDevice input is set to True, then the instrument will be reset before closing the session (default = False).
The sessions will always be closed in parallel.
By default, the instrumentType input is set to All, which closes sessions for all instrument types in parallel.
This can be configured to target a specific instrument type, which can be useful for debugging purposes
and/or if there is a need to ensure sessions are closed sequentially (requiring multiple instances of this step).
Note that the following types are supported: niDCPower, niDigitalPattern, niRelayDriver, niDAQmx, niDMM, niScope, niFGen, and niSync.
public static void CleanupInstrumentation(ISemiconductorModuleContext tsmContext, bool resetDevice = false, NIInstrumentType instrumentType = NIInstrumentType.All)Parameters
tsmContextISemiconductorModuleContext-
The NationalInstruments.TestStand.SemiconductorModule.CodeModuleAPI.ISemiconductorModuleContext object.
resetDevicebool-
Whether to reset device during initialization.
instrumentTypeNIInstrumentType-
The type of instrument to close.
CleanupInstrumentation(ISemiconductorModuleContext)
Closes any open instrument sessions associated with the pin map. To close instruments of specific types, use NationalInstruments.SemiconductorTestLibrary.TestStandSteps.SetupAndCleanupSteps.CleanupInstrumentation(NationalInstruments.TestStand.SemiconductorModule.CodeModuleAPI.ISemiconductorModuleContext,System.Boolean,NationalInstruments.SemiconductorTestLibrary.TestStandSteps.NIInstrumentType) instead.
public static void CleanupInstrumentation(ISemiconductorModuleContext tsmContext)Parameters
tsmContextISemiconductorModuleContext-
The NationalInstruments.TestStand.SemiconductorModule.CodeModuleAPI.ISemiconductorModuleContext object.
Remarks
This method makes a callback to new overload method.