HXP Controller Software Drivers Manual
if (0 != error)
{
DisplayErrorAndClose(error, SocketID,
"EventExtendedConfigurationTriggerSet");
return;
}
/* Configure gathering event : action */
error = EventExtendedConfigurationActionSet
(SocketID,1,pAction,pNbPoints,pDiv,pZero,pZero);
if (0 != error)
{
DisplayErrorAndClose(error, SocketID,
"EventExtendedConfigurationActionSet");
return;
}
/* Configure gathering event : start */
error = EventExtendedStart (SocketID, eventID);
if (0 != error)
{
DisplayErrorAndClose(error, SocketID, "EventExtendedStart");
return;
}
/////////////////////////////////////////////////
// Push on TRIG ON button...
// And wait end of external gathering
/////////////////////////////////////////////////
while (pCurrent[0] < nNbPoints)
{
/* Get current number realized and display it */
error = GatheringExternalCurrentNumberGet (SocketID, pCurrent,
pMax);
if (0 != error)
{
DisplayErrorAndClose(error, SocketID,
"GatheringExternalCurrentNumberGet");
return;
}
else
{
if (pCurrentPrevious[0] < pCurrent[0])
printf ("Current gathered point : %d\n",pCurrent[0]);
else
pCurrentPrevious[0] = pCurrent[0];
}
Sleep(1000);
}
/* Stop external gathering and save data */
error = GatheringExternalStopAndSave (SocketID);
if (0 != error)
{
DisplayErrorAndClose(error, SocketID,
"GatheringExternalStopAndSave");
return;
}
EDH0336En1032 — 12/18 10