Applies To
GC5050, GX5050, GX5055, GX5150, GX5280, GX5290, , GX5290e, GX5295, File
Purpose
Returns the specified clock delay value.
Syntax
DioGetClkStrobeDelay (nHandle, nClock, pdDelay, pnStatus)
Parameters
Name |
Type |
Comments |
nHandle |
SHORT |
GX5150, GC5050, GX5050 GX5055: Master or File board handle. GX5280, GX5290, GX5290e, GX5295 : Master, Slave 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 vacan be set between -3.0 nSec to +3.0 nSec with resolution of 0.25nSec. The main purpose of this delaty is to ease timing aligment between DIO boards in a domain. |
pdDelay |
LPDOUBLE |
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 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:
Note: For the GX5280/GX5290/GX5290e, family when running at frequencies above 100MHz only 0-3nS delay range is available (with resolution of 0.25nSec).
Example
The following example returns the main clock delay value:
SHORT nStatus;
DOUBLE dDelay;
DioGetClkStrobeDelay(nMasterHandle, 0, &dDelay, &nStatus);
See Also
DioSetupClkStrobeDelay, DioSetupClkStrobeSource, DioGetClkStrobeSource, DioGetErrorString