GxAoDioGetClock

Purpose

Returns the DIO clock source and frequency.

Applies

GX1649, GX1649-1

Syntax

GxAoDioGetClock (nHandle, pnClockSource, pdFrequency, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX1649 board.
pnClockSource
PSHORT
Returned clock source:
0.   GXAO_1649_CLOCKSOURCE_INTERNAL
1.   GXAO_1649_CLOCKSOURCE_EXTERNAL
2.   GXAO_1649_CLOCKSOURCE_PXI0
3.   GXAO_1649_CLOCKSOURCE_PXI1
4.   GXAO_1649_CLOCKSOURCE_PXI2
5.   GXAO_1649_CLOCKSOURCE_PXI3
6.   GXAO_1649_CLOCKSOURCE_PXI4
7.   GXAO_1649_CLOCKSOURCE_PXI5
8.   GXAO_1649_CLOCKSOURCE_PXI6
9.   GXAO_1649_CLOCKSOURCE_PXI7
10. GXAO_1649_CLOCKSOURCE_STAR_TRIGGER
11. GXAO_1649_CLOCKSOURCE_GROUPA
pdFrequency
BOOL
Returned DIO frequency, this is only relevant when pnClockSource is control by the card internally (GXAO_CLOCKSOURCE_INTERNAL)
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

Default clock source is GXAO_CLOCKSOURCE_INTERNAL with frequency of  10MHz GXAO_1649_CLOCKSOURCE_GROUPA can only be used when nGroup is set to B, C, and D, using group A clock source will synchronizes all group channels to use the same clock source as group A.

Example

The following example returns the clock source and frequency for the DIO

 

SHORT  nStatus;

SHORT  nClockSource;

DOUBLE dFrequency;

GxAoDioGetClock(nHandle, &nClockSource, &dFrequency, &nStatus);

 

See Also

GxAoDioSetClock, GxAoGetErrorString