Paxar Gold 6037EX User Manual Page 111

  • Download
  • Add to my manuals
  • Print
  • Page
    / 230
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 110
Function Reference 4-75
Example
#include <stdio.h>
#include "scan1223.h"
#include "mmsultra.h"
void main(void)
{
short sStatus = 0; // Command calls status
LPCODABARINFO CDBconfig; // Codabar data struct.
sStatus = scnOpenScanner(); // Enable scanner
if (sStatus == -2)
printf("Scanner error-- %d", sStatus);
else
{ // Get configuration
sStatus = scnGetCodabarInfo(CDBconfig);
if (sStatus != 0)
printf("Scanner is disabled.");
else
{ // Set values
CDBconfig->uchEnable = SCN_ENABLE;
CDBconfig->uchLength1 = 0;
CDBconfig->uchLength2 = 0;
CDBconfig->uchEnableCLSIEdit = SCN_DISABLE;
CDBconfig->uchEnableNOTISEdit = SCN_DISABLE;
// Save values
sStatus = scnSetCodabarInfo(CDBconfig);
if (sStatus != 0)
printf("Error setting values-- ", sStatus);
else
{
; /* Scan Bar Codes */
}
}
}
sStatus = scnCloseScanner(); // Disable scanner
}
Page view 110
1 2 ... 106 107 108 109 110 111 112 113 114 115 116 ... 229 230

Comments to this Manuals

No comments