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 2 of 25

Application Builder for DuraTrax/LaserLite/LaserLite Pro/LaserLite Mx, for Windows Computers, pages 11 to 20

Pages 11 to 20 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 11

Chapter 1 Application Builder This chapter provides: • A description of the Application Builder program • A description of the contents of the Application Builder disks • A discussion about applications created with Application Builder • A quick-start that steps you through installing the Application Builder files, transferring a sample application to the data collector, using the application to enter data, and viewing the data file • A quick-start that steps you through using the New CRF command to build a cross-reference (CRF) file

Chapter 1 Application Builder

3

Page 12

Discussion Application Builder creates data collection applications and transfers them to your data collector. The primary purpose of an application is to collect data and create a text file of the collected data. What distinguishes one application from another is the way it collects data. When an application is running on the unit, there is a single record of the data file being constructed in the unit’s memory. This record is known as the current record. The application does its job by collecting data from the user and appending it to the end of the current record. When the current record is complete, it is added to the end of the data file and a new current record is started. When you create an application, you need to specify at least three things: 1. The type of input that is acceptable. 2. The portions of the input that are added to the current record. 3. What the data collector’s display should look like. As you create and define the application, you are actually describing the application’s path. The path for a security application might look like the application in Figure 1-1.

Figure 1-1 Security Application Each box in the window (Begin, Guard, Location, and Status) is a stop along the path. The boxes are called Input Handlers. The lines between the boxes indicate where the application is allowed to go. When creating an application program, there needs to be something unique about the bar codes or entry for each Input Handler; this allows

4

Chapter 1 Application Builder

Page 13

the data collector to know that the criterion has been met to advance to the next Input Handler. The application moves from one Input Handler to another in response to input from the user. Input may be in the form of a bar code scan, a button touch, or a keypad entry. There is always one Input Handler that is the “current” Handler. The “current” Handler defines what the display looks like, what type of data is acceptable, what data gets added to the current record, and so on. The “Begin” Input Handler (the first box on the left) is automatically placed as the first Input Handler whenever a new application is opened; it cannot be moved or deleted, but it can be renamed. The “Begin” Handler is always the “current” Handler when you start an application. When the user enters data, the application attempts to move to another Input Handler (that is, tries to make another Input Handler the “current” Handler). It generally tries to take one step to the right in response to user input. For example, in our security example, the application (Secure1.abd) 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. Scstat.crf is a cross-reference file in the Samples folder that contains five records (S91 = Locked, S92 = Unlocked, S93 = Called Police, S94 = Passed, S95 = Maintenance Required)

When the application starts, “Begin” is the “current” Handler. When the user makes an entry, the application steps to the right and asks the “Guard” Handler if it will accept the user input. If the user input matches the “Guard” Handler match criterion (starts with G followed by three digits), the entry is accepted and the “Guard” Handler becomes the “current” Handler.

Chapter 1 Application Builder

5

Page 14

When the next entry is made, the application again steps to the right and asks the “Location” Handler if it will accept the user input. If the user input matches the “Location” Handler criterion (starts with D), the “Location” Handler accepts the entry and becomes the “current” Handler. When the next entry is made, the application again steps to the right and asks the “Status” Handler if it will accept the user input. If the user input is acceptable (contained in Scstat.crf), the “Status” Handler accepts the entry and it becomes the “current” Handler. Now, when the “Status” Handler is the “current” Handler and another entry is made, the application can no longer step to the right, so it loops back a column and asks the “Location” Handler if it will accept the user input. If, for example, the entry were G234, the “Location” Handler would reject the entry. The application would then loop back another column and see if the “Guard” Handler would accept the entry. Since the entry matches the “Guard” Handler criterion, the “Guard” Handler accepts the entry and becomes the “current” Handler. Another security application might look like Figure 1-2.

Figure 1-2 Security Example In this application, suppose that “Guard” Handler is the “current” Handler, and the user scans the bar code B204. The application steps to the right and asks the “Room” Handler if it will accept the user’s input, B204. If the “Room” Handler rejects the input, the application then looks to see if there are any other Input Handlers in the same column. It locates the “Building” Handler and asks if it will accept the user input, B204. If the “Building” Handler accepts the input, then it becomes the “current” Handler. The application in Figure 1-2 would then require user input for the “Entry” Handler and then the “Status” Handler. 6

Chapter 1 Application Builder

Page 15

If the application cannot move to the right in response to user input, it attempts to loop back to the left. The basic idea behind looping is that the application steps back through the Input Handlers to see if any of them will accept the user input. In order for a loop to occur, the “current” Handler must be allowed to end a loop, and the Input Handler accepting the user input must be allowed to start a loop. In Figure 1-2, the Input Handlers “Guard,” “Room,” and “Building” can start a loop (indicated by a curved arrow on the left side) and the Input Handlers “Guard” and “Status” can end a loop (indicated by a curved arrow on the right side). It would be possible to loop back from “Status” to “Building,” “Room,” or “Guard.” It would also be possible to loop back from “Guard” to itself. When a loop occurs, the current record is complete, and it is committed to the data file. After the loop is finished, there is a new current record in memory ready to be constructed. If the loop did not go all the way back to Step 1, the new current record will already be partially constructed; it will contain the data previously entered up to the start of the loop. Following is a specific example using the application in Figure 1-2. Example Start State: Current Handler: Begin Current Record: empty User Enters: G101 Application Response: “Guard” Handler accepts the user input and writes the input, date, and time to the current record. State: Current Handler: Guard Current Record: “G101”, “06/26/96”, “4:01 PM” User Enters: B204 Application Response: Application steps to right and asks “Room” Handler if it will accept input; “Room” Handler refuses. The application looks for any other Input Handlers in the same column and asks the Chapter 1 Application Builder

7

Page 16

“Building” Handler if it will accept the user input. “Building” Handler accepts the input and writes it to the current record. State: Current Handler: Building Current Record: “G101”, “06/26/96”, “4:01 PM”, “B204” User Enters: E34 Application response: “Entry” Handler accepts the user input and writes the input to the current record. State: Current Handler: Entry Current Record: “G101”, “06/26/96”, “4:01 PM”, “B204”, “E34” User Enters: S91 Application Response: “Status” Handler accepts the user input and writes the input to the current record. State: Current Handler: Status Current Record: “G101”, “06/26/96”, “4:01 PM”, “B204”, “E34”, “S91” User Enters: R19 Application Response: Since it cannot step forward, the application tries to loop back. It first loops back to the Step 3 column to see if any Input Handlers in this column can start a loop. Since they cannot, the application loops back to the Step 2 column and looks for any Input Handlers that can start a loop. Both the “Room” and “Building” Handlers in this column can start a loop, but the application would ask the “Room” Handler first since it is at the top of the column. The “Room” Handler accepts the input and the application loops back to this Handler. When the application loops back to the left, the current record is committed to the data file and a new current record is begun. State: Current Handler: Room Current Record: “G101”, “06/26/96”, “4:01 PM”, “R19” Notice that when the application looped back, it assumed that the new current record should still have the same data as the previous record, up to the “Room” Handler (which started the loop).

8

Chapter 1 Application Builder

Page 17

Communication with the Computer DuraTrax, LaserLite, LaserLite Pro, and LaserLite Mx data collectors communicate with the computer by means of an IR link, utilizing IrDA® technology. The data collector’s IR link is the IR transmitter on the end cap. The computer’s IR link may be either a Videx Base Station, or an external IrDA transceiver attached to your computer’s serial port. The data collectors establish two-way communication with the host computer using these IR links. To communicate with the computer using a Base Station, insert the data collector into one of the Base Station’s slots (Figure 1-3). (Note: See your Hardware manual for information on connecting the Base Station to your computer. The Base Station should be placed at least three inches away from your computer and monitor to prevent high levels of electromagnetic interference from hindering communications.) The DuraTrax/LaserLite Base Station has two slots; you may use either slot. The LaserLite Pro/Mx Base Station has one slot. If you are using more than one data collector, refer to Appendix C for information on using multiple units.

Figure 1-3 Videx Base Stations

Chapter 1 Application Builder

9

Page 18

To communicate with a computer using an external IR station or a builtin IrDA transceiver, point the data collector’s IR transmitter (located in the end cap) towards the computer’s IR station. Space the data collector approximately four inches from the IR device during communication. (The optimum range for communication is approximately 3–12 inches. The range varies depending upon the type of IR station used and the ambient light conditions.) Use the Application Builder software or one of the download programs for communication.

10

Chapter 1 Application Builder

Page 19

Quick Start The following directions step you through: • Installing the files from the Application Builder CD to the computer. • Using Application Builder to transfer a sample application to the data collector. • Using the sample application to collect data with the data collector. • Transferring the data from the data collector to the computer. • Viewing the application program’s data file.

Install IR Device and Application Software 1. Shut down your computer and install an external IR station or a Base Station to your computer’s serial port. Consult the external IR station manual for instructions on installing an external IR station (Caution: If using a JetEye, do not install the JetEye drivers included with the JetEye). See your data collector’s hardware manual for instructions on installing a Base Station. 2. Restart your computer and insert the Application Builder CD into your computer’s CD drive. 3. The CD will automatically open; follow the on-screen instructions to transfer the files from the Application Builder CD to your computer.

Chapter 1 Application Builder

11

Page 20

Open an Application 4. Choose Programs> Videx> Videx Application Builder from the Windows Start menu or double-click the Appbuild.exe icon (Figure 1-4) in the Videx folder to run the Application Builder program.

Figure 1-4 Appbuild.exe Icon 5. The Application Builder menu titles and toolbar appear (Figure 1-5). The menu commands and toolbar buttons are described in detail in Chapter 2.

Figure 1-5 Application Builder Menu Titles and Toolbar 6. Choose Open from the File menu (Figure 1-6) or type Ctrl+O.

Figure 1-6 File Menu – Open Application

12

Chapter 1 Application Builder