Returns the specified group clock source information.
GX1632e
GxAoArbGetGroupClockEx (nHandle, nGroup, pnSource, pdwParam, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a GX1632e board. |
nGroup |
SHORT |
Group number:0. GXAO_GROUPA1. GXAO_GROUPB2. GXAO_GROUPC3. GXAO_GROUPD |
pnSource |
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_GROUPA12. GXAO_CLOCKSOURCE_STAR_A13. GXAO_CLOCKSOURCE_STAR_B14. GXAO_CLOCKSOURCE_DIO15. GXAO_CLOCKSOURCE_DIVIDER16. GXAO_CLOCKSOURCE_SOFTWARE17. GXAO_CLOCKSOURCE_FREQUENCY |
pdwParam |
PDWORD |
Returned parameter. Dependent upon the clock source selected. See comments. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
Default clock source is GXAO_CLOCKSOURCE_INTERNAL. In this mode, each channel will hold its last programmed value at a static level.
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.
GXAO_CLOCKSOURCE_DIVIDER uses a 10 MHz clock divided by 2^(N+1) where N is the input value dwParam. Valid range is 6 to 26.
GXAO_CLOCKSOURCE_FREQUENCY allows the user to program the frequency in 1uS increments. The frequency achieved is 1/N where N is the input value dwParam. Valid range is 1 to 2^32-1.
The following example returns the clock source and parameter for group D:
SHORT nStatus, nClockSource;
DWORD dwParam;
GxAoArbGetGroupClockEx (nHandle, GXAO_GROUPD, &nClockSource, &dwParam, &nStatus);