Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 21 of 25

Application Builder for DuraTrax/LaserLite/LaserLite Pro/LaserLite Mx, for Windows Computers, pages 201 to 210

Pages 201 to 210 of 245

The original document is the PDF (2.4 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Videx DuraTrax, Videx LaserLite, Videx LaserLite Mx and Videx LaserLite Pro

Page 201

inputs often provides a convenient means of controlling the flow of an application. Pressing the F5 key is handled differently than the other four function keys. In Application Builder applications, pressing the F5 key invokes a routine which allows the user to delete the most recently scanned data. Repeated presses of the F5 key continues to delete data until the entire data file is cleared. It is possible to disable the F5 key by running a “plug-in” action on the “Begin” handler using the syntax: delete_flag% = false%. Advanced Application Building Strategies Application Builder supports four different levels of customization of an application. In order, from the simplest to the most complex, they are: 1) Generate the application within the Application Builder interface program, using the standard template (describe.src) and no plug-ins. This process is described in detail in Chapters 2 and 3 of this manual, and is suitable for the majority of end user applications. 2) Generate the application within the Application Builder interface program, using the standard template (describe.src) and plug-ins for enhanced functionality. Plug-ins are discussed in this chapter; effective use of plug-ins requires some familiarity with programming in BASIC. Most commonly, this level of customization is used when the application requires a data file format which is not supported directly through the Application Builder interface. 3) Generate the application within the Application Builder interface program, but use a customized template. Most commonly, this level of customization is used to modify the functionality of the scrolling, escape, or function keys on the data collector. Again, familiarity with programming in BASIC is required.

Chapter 4 Advanced Application Building

193

Page 202

4) Generate the application within the Application Builder interface program, and export the source code (refer to the Export Binary… command on page 40). Modify the source code using a text editor and recompile (refer to Chapter 5 of the Videx BASIC manual). This level provides the highest level of customization, but also requires programming skill. Exporting source code from Application Builder is a powerful shortcut compared to writing the source code for an application “from scratch.” Contact Videx Customer Service at 541-758-0521 if additional assistance is needed in creating applications for the data collector. Plug-In evt_data$ = expression gosub evt_input gosub ring print #0, expression running% = false% delete_flag% = false% sound frequency%, duration% option (259) = 1 variable$ = environ$(0) variable$ = environ$(1) variable$ = environ$(2) variable$ = environ$(3)

194

Function set input data to expression. (requires input device = software) (refer to audit.abd sample application) processes evt_data$ as if it had just been entered into the data collector (refer to audit.abd sample application) wand makes a ringing sound write expression to the data file. quit application (refer to inspect.abd sample application) disables the ability to delete the most recent scan. wand generates a sound at frequency% Hz for a duration of duration% millisec. frequency% must be between 50-8000. duration% must be between 1-2000. puts LaserLite Pro or LaserLite Mx into shift mode (to enable keypad entry of letters instead of numbers) place current battery voltage in variable$ place available RAM in variable$ place operating system version in variable$ place wand ID in variable$

Chapter 4 Advanced Application Building

Page 203

Guard ID Bar Codes located on Guard’s badge:

*G101*

*G102*

*G101*

*G102*

Location Bar Codes located on doors:

*D14*

*D17*

*D14*

*D17*

*D26*

*D34*

*D26*

*D34*

Status Bar Codes on Scanpad

*S91* Locked

*S92* Unlocked

*S93* Called Police *S94* Passed *S95* Maintenance Required *BATT*

*MEM*

Check Battery

*ID* Unit’s ID

Available Memory

*

*

Delete Last Scan

Chapter 4 Advanced Application Building

195

Page 204

Appendix A Sample Applications: Descriptions and Sample Bar Codes P. 196 Secure1.abd Application P. 200 Security Application Bar Codes

Inventory Applications P. 201 P. 209 P. 210 P. 211 P. 212

Audit.abd Application Audit.abd Application Bar Codes Inspect.abd Application Inventry.abd Application Inventry.abd Application Bar Codes

196

Appendix A Sample Applications

Page 205

Secure1.abd The sample security application is Secure1.abd. This application is a three-step security round application that asks for a Guard ID, location, and status of the location. This is the same application used in the Chapter 1 quick-start section and similar to the application built in Chapter 3.

Figure A-1 Secure1.abd Application The Secure1.abd application has Input Handlers for Guard, Location, and Status. The application is designed to expect the following types of entries to meet the match criteria of the Input Handlers: Guard:

Entry must start with a G followed by three digits

Location:

Entry must start with a D

Status:

Entry must be contained in the cross-reference file Scstat.crf (Figure A-2). Scstat.crf is a cross-reference file in the Samples folder that contains five records (S91 = Locked, S92 = Unlocked, S93 = Police, S94 = Passed, S95 = Maintenance Required)

Sample bar codes for the application are on page 200.

Appendix A Sample Applications

197

Page 206

Figure A-2 Scstat.crf Cross-Reference File Figures A-3 through A-6 show the Summary and Display windows for each of the Secure1.abd application’s Input Handlers. Figure A-3 shows the “Begin” Handler. Figure A-4 shows the “Guard” Handler. Figure A-5 shows the “Location” Handler. Figure A-6 shows the “Status” Handler.

Figure A-3 Secure1.abd Application - “Begin” Handler’s Display and Summary Windows

198

Appendix A Sample Applications

Page 207

Figure A-4 Secure1.abd Application - “Guard” Handler’s Display and Summary Windows

Figure A-5 Secure1.abd Application - “Location” Handler’s Display and Summary Windows

Appendix A Sample Applications

199

Page 208 read from a scan by OCR; it may hold reading errors

is Securel.abd |. |OF x} Step 1 Step 2 Step 3 Step 4 Ste =| oS} Ss os

Begin Guard Location kis . Looping | ends Status Si3 SJ Matching | CAF file "C:\VIDEX\Scstat. crf" Locatio Device | key, laser, contact, touch Symbology | all

Actions beep, add crf field, add time Detour no

Figure A-6 Securel.abd Application - “Status” Handler’s Display and Summary Windows

200 Appendix A Sample Applications

Page 209

Security Application Bar Codes Guard ID Bar Codes:

*G101*

*G102*

*G101*

*G102*

Location Bar Codes:

*D14*

*D17*

*D14*

*D17*

*D26*

*D34*

*D26*

*D34*

Status Bar Codes:

*S91* Locked

*S92* Unlocked

*S93* Called Police *S94* Passed *S95* Maintenance Required Delete Last Entry Bar Code for any Application (5 space bar code):

*

*

DELETE LAST ENTRY

Appendix A Sample Applications

201

Page 210

Audit.abd The Audit.abd application (Figure A-7) automatically steps through the Audit.CRF cross-reference file, displaying its contents on the screen and prompting the user for a quantity. This application simulates an inventory audit in which the auditor is told to go to a location and enter the quantity of the item listed on the display. The Audit.abd application has Input Handlers for Index#, Loc & Part#, Quantity, and Done.

Figure A-7 Audit.abd Application When you start the application, the “Begin” Handler runs a plug-in, setting a variable named counter% to 0. This variable is used by the application to step through the Audit.CRF cross-reference file (Figure A-8). The Audit.CRF Input column lists the numbers used by counter% to step through the file, Field 1 lists the locations of the parts being inventoried, and Field 2 lists the part numbers.

202

Appendix A Sample Applications