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 23

DuraTrax/LaserLite, LaserLite Pro/LaserLite Mx Developer's Reference, pages 11 to 20

Pages 11 to 20 of 229

The original document is the PDF (797 KB). 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 Communications Programs This chapter contains information on: •= The communications programs for the DuraTrax, LaserLite, LaserLite Pro, and LaserLite Mx. •= Vxcom for Windows communications program for DuraTrax, LaserLite, LaserLite Pro, and LaserLite Mx. •= Download for DOS communications program for DuraTrax, LaserLite, LaserLite Pro, and LaserLite Mx. •= Videx Download for Macintosh communications program for DuraTrax, LaserLite, and LaserLite Pro. •= Transferring files between the data collector and the computer.

Chapter 1 Communications Programs

3

Page 12

Communications Programs Overview The communications programs, Vxcom (Windows), Download (DOS), and Videx Download (Macintosh), provide communication between the data collectors and a computer. These programs allow you to transfer files between the DuraTrax, LaserLite, LaserLite Pro, and LaserLite Mx data collectors and the computer. (Note: The LaserLite Mx is not Macintosh compatible.) The communications programs interact with several programs or files used by the DuraTrax, LaserLite, LaserLite Pro, and LaserLite Mx system; including the monitor program, operating system, commands file, application and cross-reference files, and data files. The following two diagrams show how these components interact for the DuraTrax, LaserLite, LaserLite Pro and the LaserLite Mx.

4

Chapter 1 Communications Programs

Page 13

The following diagram illustrates how these components interact for the DuraTrax, LaserLite, and LaserLite Pro. Data File

Data Collector Memory

· Text file containing transferred data. · Default: DATA.TXT

Communications Programs

Unit's ID · Alphanumeric ID (up to 10 characters). · Default: 0000000000 · Set in the commands file. · Multiple unit installations require each unit to have a unique ID other than 0000000000.

VxComxxx.EXE for Windows Download.EXE for DOS Videx Downloader for Mac

Data File

· Transfers data from unit to computer via YModem and writes the data file to disk. · Sets unit's ID from information stored in file.

Application Program · Controls prompt and scan sequence. · Enables validation of data. · Default: DEFAULT.S.

· Combines application code with indexed crossreference file to create loadable application module, COMBINED.APP.

Combined Application Code and Cross-Reference Files

· Loads operating system into RAM of DuraTrax, LaserLite, LaserLite Pro, and LaserLite Mx. · Combines operating system with application, cross-reference (if LaserLite Pro), and ID to create FLASH.IMG file to load into flash memory on the LaserLite Pro or LaserLite Mx.

Cross-Reference File(s) · Lookup tables to validate data or other programming needs.

Operating System

Operating System · Controls unit's basic functions including storing data, processing key and scan events, and interpreting application code.

Commands File List of instructions to the communications program that direct its actions.

· Actions may be controlled by instructions stored in a "commands" (text) file.

Monitor Program · Controls loading the flash memory in the LaserLite Pro or LaserLite Mx. · Provides direct access to system memory.

Figure 1-1 Communications Programs and DuraTrax, LaserLite, and LaserLite Pro Interactions with Programs and Files

Chapter 1 Communications Programs

5

Page 14

The following diagram illustrates how these components interact for the LaserLite Mx. Data File

SmartMedia Memory Card (SSFDC)

· Text file containing downloaded data. · Default: DATA.TXT

Communications Programs

Unit's ID · Alphanumeric ID (up to 10 characters). · Default: 0000000000 · Set in the commands file. · Multiple reader installations requires each unit to have a unique ID other than 0000000000.

· Stores and manages up to 60 files and 5 file types for crossreference and data collection. · Communicates to the PC via commands and responses passed through the OS.

VxComxxx.EXE for Windows Download.EXE for DOS · Transfers data from reader's memory card to the computer via pass through commands to the memory card processor and writes the data file to disk.

Data Collector Memory

· Sets unit ID from information stored in file.

Application Program · Controls prompt and scan sequence. · Enables validation of data. · Default: MX-DEMO.S

· Creates a loadable application module, COMBINED.APP.

Application Code

Cross-Reference File(s) · Lookup tables for data validation or other programming needs.

· Loads operating system into RAM of LaserLite Mx. · Combines operating system with application and ID to create FLASH.IMG file to load into 128K flash memory on the LaserLite Mx.

Operating System · Controls reader's basic functions including storing data, processing key and scan events, and interpreting application code.

Operating System · Actions may be controlled by instructions stored in a "commands" (text) file.

Monitor Program Commands File · List of instructions to the communications program that direct its actions.

· Controls loading the flash memory in the LaserLite Mx. · Determines whether to boot from the memory card. · Provides direct access to system memory.

Figure 1-2 Communications Programs and LaserLite Mx Interactions with Programs and Files

6

Chapter 1 Communications Programs

Page 15

The following paragraphs summarize the purpose of each program and file. Monitor Program: The monitor program is the boot program that resides in processor memory. It is the lowest level of software in the DuraTrax, LaserLite, LaserLite Pro, and LaserLite Mx system that presents an RS-232 interface. It provides direct access to system memory and controls loading an initial system executable program. The monitor program is described in Chapter 2. Operating System: The operating system (OS) controls the data collector’s basic functions including storing data, processing keypresses and scan events, and interpreting application code. The operating system software filename always ends with a .OS extension. The operating system software is described in Chapter 3. Commands File: A commands file is a list of instructions to the communications program. You may create a commands file from a text editor or generate it from a custom application program. Commands file details are discussed on pages 25–42. ID: By default, the ID of each data collector is 0000000000. You may assign a unique name or number (up to 10 characters) to a data collector. The ID is stored by the operating system. A unique ID enables the communications program to isolate and control a single data collector from others connected to the same serial port on a computer, thus enabling communications with multiple data collectors. The ID is created and sent to the computer via the commands file. Application Program: An application program controls the data collection process, including prompting, validation of data, and the data file format. An application program is created with Application Builder, compiled from the generated BASIC source code, then stored on the computer as a *.S file. Applications compiled for DuraTrax, LaserLite, and LaserLite Pros, but loaded into a LaserLite Mx along with a LaserLite Pro operating system (*.OS), will cause the LaserLite Mx to behave exactly like a LaserLite Pro. (Note: The asterisk * represents the application filename.) See the Application Builder Manual for more information on Application Builder.

Chapter 1 Communications Programs

7

Page 16

Cross-reference File: A cross-reference file is a lookup table used by an application for data validation, configuration, or other needs. An application may refer to one or more cross-reference files. This manual will refer to two types of cross-reference files: *.CRF cross-reference files and text cross-reference files.

*.CRF cross reference files (DuraTrax, LaserLite & LaserLite Pro) Cross-reference files for the DuraTrax, LaserLite, LaserLite Pro must have a .CRF extension. They may be created using Application Builder or by converting an existing cross-reference text file using either the Vxcrf.exe or Vxcrfw.exe utility programs (refer to Chapter 7). Up to 31 cross-reference files of this type can be called from an application. Vxcom or Download communications programs automatically merge *.CRF cross-reference files with the application code prior to loading into a DuraTrax, LaserLite, or LaserLite Pro so that the application can access them during runtime.

Text cross-reference files (LaserLite Mx) Cross-reference files intended for the LaserLite Mx memory card must be text files with tab-delimited fields and no quotes. Vxcom or Download, based on instructions in a commands file, send these files to the LaserLite Mx one record at a time. The LaserLite Mx then indexes each record it receives to a hash table to enable fast lookups on the key field. The LaserLite Mx operating system also supports *.CRF files but they must be merged and transferred with the application (*.S) file the same as DuraTrax, LaserLite, and LaserLite Pro. Since the LaserLite Mx data management system provides more comprehensive file handling capabilities, this manual presumes that all cross-reference files for the LaserLite Mx will be directed to its memory card.

8

Chapter 1 Communications Programs

Page 17

Image File: (LaserLite Pro and LaserLite Mx only) An image file is an exact copy of the merged operating system, application, unit ID, and any *.CRF cross-reference files that reside in the RAM of the LaserLite Pro and LaserLite Mx. An image file can be created by Vxcom or Download and transferred to the 128K flash memory of the LaserLite Pro or LaserLite Mx. Once the image file is in the flash memory, it serves as a backup copy of the operating system and application should the copy in RAM be lost or damaged. In that event, the contents of the flash memory may then be copied to RAM. The image file can also serve as a system boot file when it is loaded onto the LaserLite Mx memory card using the MXFORMAT utility. Vxcom and Download use the -f and -k arguments to create and control the image file. The -k1 and -k2 arguments enable you to build the image file from the applicable files listed on the command line and save it to disk. See the -f and -k arguments on pages 15–16 for more information. Data File: A data file is the collection of all data collected by the data collector since the last data transfer. The communications program extracts the collected data from the data collector and writes it to the computer in the form of an ASCII text file. Data file structure and options are described in Chapter 6 of this manual. The name of the data file is defined by the application. Videx uses DATA.TXT as the default data filename. The data filename can be changed by modifying the application’s BASIC source code.

Chapter 1 Communications Programs

9

Page 18

Communications Programs for Windows, DOS, and Macintosh The communications program for DOS is Download and the communications program for Windows 95/98/NT is Vxcom; these two programs can be used with a DuraTrax, LaserLite, LaserLite Pro, or a LaserLite Mx. The communications program for Macintosh is Videx Download; it can be used with a DuraTrax, LaserLite, LaserLite Pro, or a LaserLite Mx with a LaserLite Pro application and operating system. The LaserLite Mx operating systems and applications are not Macintosh compatible. The following sections describe the three communications programs.

Download for DOS The communications program for DOS computers is Download.exe; it can be used with a DuraTrax, LaserLite, and LaserLite Pro. LaserLite Mx requires Download.exe version 2.0.0 or later. Download.exe executes a series of commands from a commands file. The syntax for the Download.exe command line is: DOWNLOAD [app.s] [REF.CRF] [sys.os] [cmd.txt] {arguments} or

DOWNLOAD [image.img] [cmd.txt] {arguments} The parameters are listed on one program line and may be listed in any order. The parameters and defaults are identical to the ones used in the Vxcom program; they are described on pages 13–19.

10

Chapter 1 Communications Programs

Page 19

Vxcom for Windows The communications program for Windows 95/98/NT is Vxcom; it can be used with a DuraTrax, LaserLite, and LaserLite Pro. LaserLite Mx requires Vxcom version 2.00 or later. The original Vxcom filename was Vxcomm.exe; newer versions of Vxcom have names in the form Vxcomxxx.exe, where xxx corresponds to the version number (for example, Vxcom200.exe). These files are accompanied by a DLL with a name in the form Vxcomxxx.dll. Most recently, Vxcomm.dll version 2.1 was created that provides the enhancements in Vxcom200 and also supports the Application Builder program. If you have previously used the Application Builder software, you may have used Vxcom to transfer the data file to the computer. Vxcom also transfers files from the computer to the data collector. The Run command is used from the Windows Start menu to pass parameters to Vxcom. The parameters and defaults are listed on pages 13–19. Alternatively, you may start the Vxcom program by doubleclicking its icon or by dragging and dropping a combination of the commands file, application file, CRF file, and operating system file icons onto the Vxcom icon. Vxcom displays a progress bar window (Figure 1-3) to report the status of the file transfer.

Figure 1-3 Vxcom Progress Window

Chapter 1 Communications Programs

11

Page 20

Vxcom executes a series of commands from a commands file. See the Commands File section beginning on page 25 for more information on the commands file. The syntax for the Vxcom command line is: Vxcomxxx [app.s] [REF.CRF] [sys.os] [cmd.txt] {arguments} or

Vxcomxxx [image.img] [cmd.txt] {arguments} The parameters are listed on one line and they may be listed in any order. If the files listed on the command line are not in the same folder as Vxcom, you must also include the file path.

12

Chapter 1 Communications Programs