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, SetupAndCleanupSteps.NIInstrumentType instrumentType = NIInstrumentType.All)
Parameters
tsmContext
ISemiconductorModuleContextThe NationalInstruments.TestStand.SemiconductorModule.CodeModuleAPI.ISemiconductorModuleContext object.
resetDevice
boolWhether to reset device during initialization.
instrumentType
SetupAndCleanupSteps.NIInstrumentTypeThe type of instrument to close.