Paxar Gold 6037EX User Manual Page 125

  • Download
  • Add to my manuals
  • Print
  • Page
    / 230
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 124
Function Reference 4-89
Example
#include <stdio.h>
#include "scan1223.h"
#include "mmsultra.h"
void main(void)
{
short sStatus = 0; // Command calls status
LPMS
IINFO MSIconfig; // MSI data struct.
sStatus = scnOpenScanner(); // Enable scanner
if (sStatus == -2)
printf("Scanner error-- %d", sStatus);
else
{
sStatus = scnGetMS
IInfo(MSIconfig); // Get config.
if (sStatus != 0)
printf("Scanner is disabled.");
else
{ // Set values
MSIconfig->uchEnable = SCN_ENABLE;
MSIconfig->uchLength1 = 0;
MSIconfig->uchLength2 = 0;
MSIconfig->uchCheckDigits = 0;
MSIconfig->uchXmitCheckDigit = SCN_ENABLE;
MSIconfig->uchChkDgtAlgorithm = 0;
// Save values
sStatus = scnSetMS
IInfo(MSIconfig);
if (sStatus != 0)
printf(“Error setting values-- ”, sStatus);
else
; /* Scan Bar Codes */
}
}
sStatus = scnCloseScanner(); // Disable scanner
}
Page view 124
1 2 ... 120 121 122 123 124 125 126 127 128 129 130 ... 229 230

Comments to this Manuals

No comments