Gx5733SetInternalClock (nHandle, nClock, nSource, dwDivider, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a GX5733 board. |
nClock |
SHORT |
Clock number:0. GX5733_CLOCK0: Internal Clock 01. GX5733_CLOCK1: Internal Clock 1 |
nSource |
SHORT |
Internal Clock 0 sources are:0. GX5733_INTERNAL_CLOCK0_NOT_CONNECTED: Clock not connected.1. GX5733_INTERNAL_CLOCK0_T0_PCI_CLOCK_33MHZ: Internal Clock 0 connected to 33MHz PCI Clock.2. GX5733_INTERNAL_CLOCK0_T0_PXI_CLOCK_10MHZ: Internal Clock 0 connected to 10MHz PXI Clock.3. GX5733_INTERNAL_CLOCK0_T0_STAR_TRIGGER: Internal Clock 0 connected to the PXI Start Trigger.Internal Clock 1 sources are:0. GX5733_INTERNAL_CLOCK1_NOT_CONNECTED: Clock not connected.1. GX5733_INTERNAL_CLOCK1_T0_PCI_CLOCK_33MHZ: Internal Clock 0 connected to 33MHz PCI Clock.2. GX5733_INTERNAL_CLOCK1_T0_PXI_CLOCK_10MHZ: Internal Clock 0 connected to 10MHz PXI Clock.3. GX5733_INTERNAL_CLOCK1_T0_STAR_TRIGGER: Internal Clock 0 connected to the PXI Start Trigger. |
dwDivider |
DWORD |
Divider value: 1-0x8000000 |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
Use the Gx5733GetInternalClock to retrieve the internal clock settings.
The following example sets the internal clock 0 to 10Mhz and divider to 20000:
Gx5733SetInternalClock (nHandle, 0, 1, 20000, &nStatus);
Gx5733GetInternalClock, Gx5733GetInternalClockEnable