Method SetupNIDCPowerInstrumentation
- Assembly
- NationalInstruments.SemiconductorTestLibrary.TestStandSteps.dll
SetupNIDCPowerInstrumentation(ISemiconductorModuleContext, bool, double, DCPowerMeasureApertureTimeUnits, DCPowerMeasurementWhen, DCPowerMeasurementSense, double, double)
Initializes the NI DCPower instrument sessions associated with the pin map.
If the resetDevice
input is set to True, then the instrument will be reset as the session is initialized (default = False).
If the sourceDelay
is set to -1 the method will not set the source delay property, and will assume the initialized default value from the driver,
which is expected to be the inverse of the power line frequency.
If the powerLineFrequency
is set to -1, the method will attempt to automatically determine the power line frequency
and set the power line frequency property for the respective driver sessions.
If the power line frequency cannot be determined, the property will not be set and the driver will use the default value of this property (60 Hz).
This is currently only supported by systems that use a PXIe-109x chassis or newer.
public static void SetupNIDCPowerInstrumentation(ISemiconductorModuleContext tsmContext, bool resetDevice = false, double apertureTime = 1, DCPowerMeasureApertureTimeUnits apertureTimeUnits = DCPowerMeasureApertureTimeUnits.PowerLineCycles, DCPowerMeasurementWhen measureWhen = DCPowerMeasurementWhen.OnDemand, DCPowerMeasurementSense measurementSense = DCPowerMeasurementSense.Remote, double sourceDelay = -1, double powerLineFrequency = -1)
Parameters
tsmContext
ISemiconductorModuleContextThe NationalInstruments.TestStand.SemiconductorModule.CodeModuleAPI.ISemiconductorModuleContext object.
resetDevice
boolWhether to reset device during initialization.
apertureTime
doubleThe aperture time.
apertureTimeUnits
DCPowerMeasureApertureTimeUnitsThe aperture time units.
measureWhen
DCPowerMeasurementWhenWhen to do measurement.
measurementSense
DCPowerMeasurementSenseThe measurement sense to use.
sourceDelay
doubleThe source delay in seconds.
powerLineFrequency
doubleThe power line frequency.