Returns the AC Power Line Frequency setting
GxDmmGetLineFrequency (nHandle, pdwLineFrequency, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Handle for a GX2065 board. |
pdwLineFrequency |
PDWORD |
Returns the AC Power Line Frequency selection
|
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
This function allows the user to select the line frequency of the Mains Source powering the chassis. Setting this parameter correctly reduces the amount of noise in all measurements.
The last set AC line frequency is stored within the GxDmm.ini file located in Windows Common App Data folder. The input AC line frequency is loaded from the GxDmm.ini file when first initializing the DMM after power up, if the file does not exist 60Hz is used.
The following example gets the line frequency setting:
SHORT nHandle, nStatus;
DWORD dwLineFrequency;
GxDmmGetLineFrequency(nHandle, &dwLineFrequency, &nStatus);
GxDmmInitialize, GxDmmReset, GxDmmSetLineFrequency, GxDmmSetTriggerMode, GxDmmGetTriggerMode, GxDmmSetRange, GxDmmGetRange, GxDmmSetFunction, GxDmmGetFunction, GxDmmGetErrorString