Table of Contents

Method CleanupInstrumentation

Namespace
NationalInstruments.SemiconductorTestLibrary.TestStandSteps
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 ISemiconductorModuleContext

The NationalInstruments.TestStand.SemiconductorModule.CodeModuleAPI.ISemiconductorModuleContext object.

resetDevice bool

Whether to reset device during initialization.

instrumentType SetupAndCleanupSteps.NIInstrumentType

The type of instrument to close.