Paxar Gold 6037EX User Manual Page 121

  • Download
  • Add to my manuals
  • Print
  • Page
    / 230
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 120
Function Reference 4-85
Example
#include <stdio.h>
#include "scan1223.h"
#include "mmsultra.h"
void main(void)
{
short sStatus = 0; // Command calls status
LPGENERALINFO GENconfig; // General data structure
sStatus = scnOpenScanner(); // Enable scanner
if (sStatus == -2)
printf("Scanner error-- %d", sStatus);
else
{ // Get config.
sStatus = scnGetGeneralInfo(GENconfig);
if (sStatus != 0)
printf("Scanner is disabled.");
else
{ // Set values
GENconfig->uchLaserOnTime = 40;
GENconfig->uchPowerMode = 1;
GENconfig->uchTriggerMode = 1;
GENconfig->uchSameSymbolTMO = 10;
GENconfig->uchLinearCodeSecur = 1;
GENconfig->uchBiDirRedun = SCN_DISABLE;
// Save values
sStatus = scnSetGeneralInfo(GENconfig);
if (sStatus != 0)
printf("Error setting values-- ", sStatus);
else
; /* Scan Bar Codes */
}
}
sStatus = scnCloseScanner(); // Disable scanner
}
Page view 120
1 2 ... 116 117 118 119 120 121 122 123 124 125 126 ... 229 230

Comments to this Manuals

No comments