Sets the measurement function
GxDmmSetFunction (nHandle, dwFunction, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Handle for a GX2065 board. |
dwFunction |
DWORD |
Sets the DMM function:
|
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
The GX2065 can be set to several different function modes. When the function is changed, the min/max accumulator is cleared and any ongoing measurement is aborted. If the current reading trigger is not set to software trigger, changing the function will result in the reading trigger being set to software trigger, briefly, and then back to its previous setting.
See Appendix B for connection diagram for each one of the functions used.
The following example sets the DMM’s function to Volts DC:
SHORT nHandle, nStatus;
GxDmmSetFunction (nHandle, GXDMM_FUNCTION_VDC, &nStatus);
GxDmmGetFunction, GxDmmSetRange, GxDmmGetRange, GxDmmSetTriggerMode, GxDmmGetTriggerMode, GxDmmGetErrorString