![]() However, an application developer can get management access to an RSM-ready scanner through the Zebra Scanner SDK. The OPOS driver does not support any direct I/O functions to the scanner. If unsuccessful, it returns an error code. After setting property values, check that the result code returns 0 (=OPOS_SUCCESS), indicating success. Otherwise it returns an error code, which indicates the reason for the error. When calling any method, check whether the return value is 0 (=OPOS_SUCCESS) to ensure the method is successful. Call Device Disable property, release and close methods to close the connection.When done, SetDeviceEnabled to FALSE, Release() and Close() the service.SetDataEventsEnable to TRUE to get scan data events.Add a variable (handle) for the scanner control added to the form/Dialog window.Drag and drop to the form/Dialog window.Select (check) OPOS Scanner Control from the COM Components tab.Select Choose Toolbox Items… from the Tools menu.Create a project in the desired Microsoft Visual Studio development environment.To create a custom OPOS sample application: However, Microsoft supported languages are recommended (e.g., Visual Basic, Visual C or C#). ![]() You may use any programming language to create a custom OPOS sample application. This updates the property with the new value.Ĭreating a Custom OPOS Sample Application To change the configurable property, change the value in the edit box and select Set Properties.The values 1 and 0 represent true and false, respectively. The current value of the OPOS driver appears in the edit box below the property selected in the list box.You can configure some properties (e.g., AutoDisable, FreezeEvents) other properties are read only (e.g., ServiceObjectVersion, DataCount). Select a configurable (setable) property in the Properties And Methods drop-down list.Select Ok to use the Zebra Scanner Service Object that the SDK Installshield loaded on the PC.Under folder \Program Files\Zebra Technologies\Barcode Scanners\Scanner SDK\OPOS\Scanner OPOS\Sample Applications\bin, enter the sub-folder appropriate to the host architecture (x86 or 圆4) and run Scanner-OPOS-Test.exe to launch the Scanner OPOS Test Utility.To get and set the OPOS properties of the Zebra Scanner OPOS Driver: This utility allows getting and setting the OPOS properties of the Zebra Scanner OPOS Driver via the Properties And Methods drop-down list. To perform a second test, scan another bar code.Select Clear Input to clear the data from the Scan Data Type and Scan Data Label boxes.The bar code data that the driver processed appears in the Scan Data Label and Scan Data Type boxes:įigure 2: Scanner OPOS Sample Application - Scan Data Select Data Events to view the scanned UPC-A bar code data. Select Ok to use the Zebra Scanner Service Object that the Scanner SDK Installshield setup program loaded on the PC.Under the folder \Program Files\Zebra Technologies\Barcode Scanners\Scanner SDK\OPOS\Scanner OPOS\Sample Applications\bin, enter the sub-folder appropriate to the host architecture (x86 or 圆4) and run Scanner-OPOS-Test.exe to launch the Scanner OPOS Test Utility.Scan the USB OPOS (Hand-held) bar code, SNAPI bar code or Wincor-Nixdorf RS-232 Mode B bar code on Scanner Configuration Bar Codes to configure the scanner for the correct communication protocol.To view bar code data using the Scanner OPOS Test Utility: ![]() Select the Direct IO command to be executed. Set the value of property to the given value. StrTemp.Format("GoodScanCount=%d",m_nGoodScanCount ) M_ctrlScanner.ResetStatistics("GoodScanCount") Refer to OPOS Scanner Sample Application source code provided with the SDK installation. Must enable data event to get data.Ĭheck box to automatically enable the scanner after a decode scan. ![]() Performs a more extensive test that may change the device. ![]() M_ctrlScanner.CheckHealth(OPOS_CH_INTERNAL) The device is tested by internal tests to the extent possible. Perform a Health check that does not physically change the device. Table 1: Scanner OPOS Test Utility Button/Field Functionality Button / Field / CheckboxĮnable the scanner. Figure 1: Scanner OPOS Sample Application ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |