aci_cancel 4-7
21 Dec 2001
Figure 4-2 Example of the aci_barcode Function
aci_cancel
The aci_cancel function cancels a specific DAS request. See
Figure 4-3.
Figure 4-3 aci_cancel Function Call
See Table 4-2 for a description of the parameter for the
aci_cancel function call.
The aci_cancel function cancels a previously issued and not
completed client request. Before using this function, use the
aci_list function to get the request_id in order to cancel the
correct request.
Table 4-2 Parameter for the aci_cancel Function Call
Parameter Description
request_id DAS command sequence number, get information on the sequence
number with the aci_list function
/* Switch the barcode reading off for robot 1 */
int rc = 0;
char *cRobNum = "1";
char *Action = "OFF";
rc = aci_barcode( cRobNum, Action );
if( rc )
{
aci_perror( "Command failed: " );
}
else
{
printf( "barcode reading switched off \n" );}
#include "aci.h"
int aci_cancel( unsigned long request_id )