Paxar Gold 6037EX manual MSI data struct

Models: Gold 6037EX

1 230
Download 230 pages 30.9 Kb
Page 125
Image 125

Example

#include <stdio.h> #include "scan1223.h" #include "mmsultra.h"

void main(void)

 

 

{

// Command calls status

short sStatus = 0;

LPMSIINFO MSIconfig;

// MSI data struct.

sStatus = scnOpenScanner();

// Enable scanner

if (sStatus == -2)

 

 

printf("Scanner error-- %d", sStatus);

 

else

 

 

{

 

 

sStatus = scnGetMSIInfo(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 = scnSetMSIInfo(MSIconfig); if (sStatus != 0)

printf(“Error setting values-- ”, sStatus); else

; /* Scan Bar Codes */

 

}

 

}

// Disable scanner

sStatus = scnCloseScanner();

}

Function Reference 4-89

Page 125
Image 125
Paxar Gold 6037EX manual MSI data struct