GX5961
Returns the data recorded by the probe.
GtDio6xProbeGetData (nHandle, lStartingAddress, lArraySize, palProbeData, 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. |
lStartingAddress |
LONG |
Specifies the vector offset to queryMust be in the range of 0-262143. |
lArraySize |
LONG |
Used to specify the number of elements in the probe array, plProbeData, as well as the number of elements to retrieve.The lStartingAddress plus the lArraySize must be less than or equal to 262144. |
palProbeData |
PLONG |
Used to return the probe data results.The array must have at least as many elements as is specified in the lArraySize parameter. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative value on failure. |
The probe memory stores eight bits of data from the AUX0 input for every vector.
The bit descriptions for the probe memory are:
Bit |
Description |
0 |
Good 1 level at window 3 open. |
1 |
Good 0 level at window 3 open. |
2 |
Good 1 level at window 3 close. |
3 |
Good 0 level at window 3 close. |
4 |
Positive transition at good 1 level. |
5 |
Positive transition at good 0 level. |
6 |
Negative transition at good 1 level. |
7 |
Negative transition at good 0 level. |
The following example gets the first 20 recorded results from the probe memory:
LONG alProbeData[20];
GtDio6xProbeSetDataMode(nHandle, GTDIO6X_ENABLED, &nStatus);
GtDio6xSequencerRun(nHandle, 0, &nStatus);
GtDio6xProbeGetData(nHandle, 0, 20, alProbeData, &nStatus);
GtDio6xProbeSetDataMode, GtDio6xProbeGetDataMode, GtDio6xProbeSetParameters, GtDio6xProbeGetParameters, GtDio6xWriteVectorMemory, GtDio6xReadVectorMemory, GtDio6xGetErrorString