GX5296, GX5961, GX5964, File
Initializes Steps to a default state.
GtDio6xStepReset (nHandle, lFirstStep, lLastStep, nNumberOfSteps, pnStatus)
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. |
lFirstStep |
LONG |
The starting step number to initialize 0-4095 |
lLastStep |
LONG |
Used to specify the last step to initialize. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative value on failure. |
This function initializes the Steps as follows:
All Phases set to Assert 0nS and Return 12nS.
All Windows set to Open 0nS, Close 12nS.
Step Clock Period set to 100nS.
Clocks Per Vector set to 1.
Control set to None.
Loop Counter and Count set to 0.
Halt set true.
Step Timeout set to Reset.
Step Flags set low.
Record mode set to Record Errors.
Phase Trigger set to StepClock.
Handshake and Resume Condition set to None.
No Vectors assigned
The following example initializes the first step:
SHORT nStatus;
GtDio6xStepReset(nHandle, 0, 1, &nStatus);