Returns the specified group clock source and frequency.
GX1649, GX1649-1
GxAoArbGetGroupClock (nHandle, nGroup, pnClockSource, pdFrequency, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a GX1649 board. |
nGroup |
SHORT |
Group number:0. GXAO_GROUPA1. GXAO_GROUPB2. GXAO_GROUPC3. GXAO_GROUPD |
pnClockSource |
PSHORT |
Returned clock source:0. GXAO_CLOCKSOURCE_INTERNAL1. GXAO_CLOCKSOURCE_EXTERNAL2. GXAO_CLOCKSOURCE_PXI03. GXAO_CLOCKSOURCE_PXI14. GXAO_CLOCKSOURCE_PXI25. GXAO_CLOCKSOURCE_PXI36. GXAO_CLOCKSOURCE_PXI47. GXAO_CLOCKSOURCE_PXI58. GXAO_CLOCKSOURCE_PXI69. GXAO_CLOCKSOURCE_PXI710. GXAO_CLOCKSOURCE_STAR_TRIGGER11. GXAO_CLOCKSOURCE_GROUPA |
pdFrequency |
PDOUBLE |
Returned group 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. |
Default clock source is GXAO_CLOCKSOURCE_INTERNAL with frequency of 10MHz GXAO_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.
The following example returns the clock source and frequency for group A:
SHORT nStatus;
SHORT nClockSource;
DOUBLE dFrequency;
GxAoArbGetGroupClock (nHandle, GXAO_GROUPA, &nClockSource, &dFrequency, &nStatus);