Sets the AC Power Line Frequency setting
GxDmmSetLineFrequency (nHandle, dwLineFrequency, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Handle for a GX2065 board. |
dwLineFrequency |
DWORD |
Sets 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. Calling this function will cause the value to be written to the file.
The following example sets the line frequency to 60Hz:
SHORT nHandle, nStatus;
GxDmmSetLineFrequency(nHandle, GXDMM_LINE_FREQUENCY_60HZ, &nStatus);
GxDmmInitialize, GxDmmReset, GxDmmSetLineFrequency, GxDmmSetTriggerMode, GxDmmGetTriggerMode, GxDmmGetRange, GxDmmSetFunction, GxDmmGetFunction, GxDmmGetErrorString