Returns the pre-scale mode for both channels.
GxCntGetPrescalerMode (nHandle, , pnMode, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a counter board. |
pnMode |
PSHORT |
Returns the pre-scale mode:
|
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
Prescaling is necessary when the input frequency exceeds 10MHz in Frequency, Period, Ratio, and AutoRatio modes (see Specifications). Prescaling does not affect resolution or accuracy in any way.
The by the user, or it can be set to auto mode.
If the input frequency exceeds 10MHz and arming is enabled, the prescaler must be explicitly turned on. The prescaler reverts to the off state whenever arming is enabled, to reduce potential measurement start point ambiguity (up to 4 Acquisitions of the input signal may pass before the counter starts).
The following example returns the prescale mode:
SHORT nHandle, nMode, nStatus;
GxCntGetPrescalerMode (nHandle, &nMode, &nStatus)
GxCntSetGateTime, GxCntSetAcquisitionTimeInterval, GxCntGetAcquisitionTimeInterval, GxCntSetAcquisitionMode, GxCntGetAcquisitionMode, GxCntGetErrorString