GxDmmSetLineFrequency

Purpose

Sets the AC Power Line Frequency setting

Syntax

GxDmmSetLineFrequency (nHandle, dwLineFrequency, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Handle for a GX2065 board.
dwLineFrequency
DWORD

Sets 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. Calling this function will cause the value to be written to the file.

Example

The following example sets the line frequency to 60Hz:

 

SHORT nHandle, nStatus;

GxDmmSetLineFrequency(nHandle, GXDMM_LINE_FREQUENCY_60HZ, &nStatus);

 

See Also

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