Sample Applications: Default Batch Example
Sample Applications: Default Batch Example
There are several sample applications included with the installation CD to illustrate some of the
basic and extended functionality that the Optimus units contain. There are several examples of
batch applications, where the data is stored on the unit and then transmitted back to the host. All
samples are included in the “Sample Optimizer Applications” folder installed by default at
“C:\Program Files\Metrologic Instruments\Optimus”.
This program illustrates how to collect bar code data and assign a quantity to it, which is useful
for creating an inventory file. This is the sample program that ships by default on the Optimus
batch units. Below are the steps to open the program, load it to the Optimus, collect data, and
upload the data back to the host system.
15. Select a directory and a file name to save your data into.
16. Choose the correct option for your download type:
a. If you are going through a cradle, you should download via “Cradle-IR”.
b. If you are directly connected, you should download via “RS232 or IrDA”.
17. Make sure the COM port number matches the port number into which your cradle or unit is
plugged.
18. Make sure the Baud rate matches the baud rate of the unit. Press OK and uploading will
commence.
19. After upload is complete, you will be asked if you would like to view your data. Select “Yes”
and a text file will appear with the data you have collected in the following format: bar code,
quantity.
This program expands upon the functionality of the default batch example and illustrates how a
lookup file can be used to return specific information about data entered, like description of the
item and existing quantity in stock. This is useful for updating inventory files. Below are the steps
to open the program, load it to the Optimus, load a lookup file to the Optimus, collect data and
update the lookup file, and upload the data back to the host system.
12. Browse to the file “Lookup for Extended Example.txt” located in the same directory as the
sample program.
13. Choose the correct option for your download type:
a. If you are going through a cradle, you should download via “Cradle-IR”.
b. If you are directly connected, you should download via “RS232 or IrDA”.
14. Make sure the COM port number matches the port number into which your cradle or unit is
plugged.
15. Make sure the Baud rate matches the baud rate of the unit. Press OK and downloading will
commence.
16. After download is complete, choose the “Run Program” option on your Optimus. A screen
will come up with “Item:”, “Desc:”, and “Qty:” displayed. You can now begin collecting data.
Note: Since this is a lookup example, the bar codes must match the lookup information in
order to retrieve details of an item. Therefore, you must print out the “Bar Codes for Batch
with Lookup Examples.pdf” file that is included in the same directory as the lookup file and
scan the bar codes on this page to achieve proper functionality.
17. After you are finished, press “ESC” on the Optimus until you get to the main menu. Choose
the “Utilities” option, then “Transfer Files”, and finally “Send Data”. Confirm the unit’s baud
rate and method of communication. Place the unit in its cradle, or if the unit has the ability for
direct connection, connect the communication cable to the unit.
18. From the Optimizer program, choose the “Tools” menu item, then “Communication”, and
finally “Receive Data”. The upload window will open (see Figure 3).
19. Select a directory and a file name to save your data into.
20. Choose the correct option for your download type:
a. If you are going through a cradle, you should download via “Cradle-IR”.
b. If you are directly connected, you should download via “RS232 or IrDA”.
21. Make sure the COM port number matches the port number into which your cradle or unit is
plugged.
22. Make sure the Baud rate matches the baud rate of the unit. Press OK and uploading will
commence.
After upload is complete, you will be asked if you would like to view your data. Select “Yes” and a
text file will appear with the data you have collected in the following format: bar code, description,
quantity.