GtDio6xSequencerGetRecordOffset

Applies To

GX5296, GX5961, GX5964, File

Purpose

Returns the record memory offset parameters.

Syntax

GtDio6xSequencerGetRecordOffset (nHandle, pdOffset, pdExpectDataOffset, pnStatus);

Parameters

Name
Type
Comments
nHandle
SHORT
Session identifier:

     Board handle is used when communicating with the hardware. The Board handle session identifier is returned by calling GtDio6xInitialize or GtDio6xSetupInitialization.

     File handle is used when communicating with a file. The File handle session identifier is  returned by calling GtDio6xFileOpen.

pdOffset
PDOUBLE
Used to compensate for round-trip driver/receiver delay and also cabling delay to the UUT. Can also be used to allow windows to effectively close at the end of the T0Cycle. Resolution: 1 master clock Range: 0-63 master clocks.
pdExpectDataOffset
PDOUBLE
GX5960: Not used, pass as 0.
pnStatus
PSHORT
Returned status: 0 on success, negative value on failure.

Comments

The record offset allows the user to shift the record signals (vector code expect data and window strobes) to accommodate system and UUT delay.  The record offset resolution is the master clock period.

Example

The following example sets the record offset to 20 master clock periods, and returns the settings:

 

SHORT nStatus;

DOUBLE dOffset, dExpectDataOffset;

 

GtDio6xSequencerSetRecordOffset (nHandle, 20, 0, &nStatus);

GtDio6xSequencerGetRecordOffset (nHandle, &dOffset, &dExpectDataOffset, &nStatus);

 

See Also

GtDio6xSequencerGetRecordParameters, GtDio6xStepSetRecordMode, GtDio6xReadRecordMemory, GtDio6xReadVectorMemory,  GtDio6xWriteVectorMemory, GtDio6xGetErrorString