Returns the currently selected function
GxDmmGetFunction (nHandle, pdwFunction, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Handle for a GX2065 board. |
pdwFunction |
PDWORD |
Return the currently set 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.
The following example gets the current function:
SHORT nHandle, nStatus;
DWORD dwFunction;
GxDmmGetFunction (nHandle, &dwFunction, &nStatus);
GxDmmSetFunction, GxDmmSetRange, GxDmmGetRange, GxDmmSetTriggerMode, GxDmmGetTriggerMode, GxDmmGetErrorString