Gx5732SetInternalClock

Purpose

Sets internal clock source and divider.

Syntax

Gx5732SetInternalClock (nHandle, nClock, nSource, dwDivider, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX5732 board.
nClock
SHORT
Clock number:
0. GX5731_CLOCK0: Clock 0.
1. GX5731_CLOCK1: Clock 1.
nSource
SHORT
Internal Clock source:
0. GX5732_INTERNAL_CLOCK_T0_PCI_CLOCK_33MHZ: 33MHz PCI Clock.
1. GX5732_INTERNAL_CLOCK_T0_PXI_CLOCK_10MHZ: 10MHz PXI Clock.
2. GX5732_INTERNAL_CLOCK_T0_USER_LINE0: User Line 0.
3. GX5732_INTERNAL_CLOCK_T0_USER_LINE1: User Line 1.
4. GX5732_INTERNAL_CLOCK_T0_USER_LINE2: User Line 2.
5. GX5732_INTERNAL_CLOCK_T0_USER_LINE3: User Line 3.
6. GX5732_INTERNAL_CLOCK_T0_USER_LINE4: User Line 4.
7. GX5732_INTERNAL_CLOCK_T0_USER_LINE5: User Line 5.
dwDivider
DWORD
Divider value : 1-0x1000000 (16777216)
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

Use the Gx5732GetInternalClock to retrieve the internal clock settings.

Example

The following example sets the internal clock 0 to 10Mhz and divider to 20000:

 

Gx5732SetInternalClock (nHandle, GX5732_CLOCK0, GX5732_INTERNAL_CLOCK_T0_PXI_CLOCK_10MHZ, 20000, &nStatus);

 

See Also

Gx5732GetInternalClock, Gx5732SetCounterClock