Applies To
GX5150, GC5050, GX5050, GX5055, GX5280, GX5290, GX5290e, GX5295, File
Purpose
Returns the Main Clock, Out Clock or Strobe delay value.
Syntax
DioSetupClkStrobeDelay (nHandle, nClock, dDelay, pnStatus)
Parameters
Name |
Type |
Comments |
nHandle |
SHORT |
GX5150, GC5050, GX5050, GX5055: Master or File board handle. GX5280, GX5290, GX5290e, GX5295: Board or File board handle. |
nClock |
SHORT |
Clock/Strobe can be as follow: 0 CLK_DELAY: Main Clock. 1 USER_CLK_DELAY: Out Clock 2 STROBE_DELAY: Strobe 3 BOARD_OFFSET_DELAY (Gx528X /Gx529X only): Additional offset that advance or delay the specifed DIO board’s Clock and Strobe. The offset values can be set between -3.0 nSec to +3.0 nSec with resolution of 0.25nSec. The main purpose of this delay is to ease timing alignment between DIO boards in a domain. |
dDelay |
DOUBLE |
Delay values are in nSec GX5150, GC5050, GX5050 GX5055 Out Clock and Strobe: 0.0 to 64 nSec with increments of 0.25. GX5280/GX5290/ /GX5290e/GX5295 Main Clock: and Strobe, any of the following values ranges: 0-3 ns with increments of 0.25 ns. 4-7 ns with increments of 0.25 ns. 8-11 ns with increments of 0.25 ns. 12-15 ns with increments of 0.25 ns. 16-19 ns with increments of 0.25 ns. 20-23 ns with increments of 0.25 ns. 24-27 ns with increments of 0.25 ns. If nClock = BOARD_OFFSET_DELAY (Gx528X /Gx529X only): -3.0 to +3.0 ns with increments of 0.25 ns. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
Comments
The function adds a delay between the timing board clock source (i.e. programmable clock) and the following clocks:
0. Main clock that stimulate the DIO.
1. Out Clock signal (timing connector).
2. Strobe Clock signal (timing connector).
3. Board offset delay.
Note: For the GX5280/GX5290/GX5290e family when running at frequencies above 100MHz only 0-3nS delay range is available.
Example
The following example sets the main clock delay value to 15 nSec:
SHORT nStatus;
DioSetupClkStrobeDelay (nMasterHandle, 0, 15, &nStatus);
See Also
DioGetClkStrobeDelay, DioSetupClkStrobeSource, DioGetClkStrobeSource, DioGetErrorString