GxDmmGetLineFrequency

Purpose

Returns the AC Power Line Frequency setting

Syntax

GxDmmGetLineFrequency (nHandle, pdwLineFrequency, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Handle for a GX2065 board.
pdwLineFrequency
PDWORD
Returns the AC Power Line Frequency selection
  • GXDMM_LINE_FREQUENCY_50HZ (50): 50Hz AC Line Frequency
  • GXDMM_LINE_FREQUENCY_60HZ (60): 60Hz AC Line Frequency
  • GXDMM_LINE_FREQUENCY_400HZ (400): 400Hz AC Line Frequency
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

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.

Example

The following example gets the line frequency setting:

 

SHORT nHandle, nStatus;

DWORD dwLineFrequency;

GxDmmGetLineFrequency(nHandle, &dwLineFrequency, &nStatus);

 

See Also

GxDmmInitialize, GxDmmReset, GxDmmSetLineFrequency, GxDmmSetTriggerMode, GxDmmGetTriggerMode, GxDmmSetRange, GxDmmGetRange, GxDmmSetFunction, GxDmmGetFunction, GxDmmGetErrorString