Table of Contents

Method TryDeterminePowerLineFrequency

Namespace
NationalInstruments.SemiconductorTestLibrary.Common
Assembly
NationalInstruments.SemiconductorTestLibrary.Abstractions.dll

TryDeterminePowerLineFrequency(ref double, bool)

Tries to determine the power line frequency of the PXI chassis using the SystemConfiguration API. Will use power line frequency 60Hz when isOfflineModeEnabled is true.

public static void TryDeterminePowerLineFrequency(ref double powerLineFrequency, bool isOfflineModeEnabled = false)

Parameters

powerLineFrequency double

The power line frequency variable to be updated. It falls back to the original value when the try fails.

isOfflineModeEnabled bool

A flag indicating whether offline mode is enabled.