The text of a manual · part 30 of 36
Trakker Antares Application Development Tools System Manual: Part II - Trakker Antares Application Simulator User’s Manual, pages 277 to 286
Pages 277 to 286 of 340, from Trakker Antares Application Development Tools System Manual
The original document is the PDF (1.6 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.
Filed in the catalog under the Intermec 2420, Intermec 2425, Intermec 2435 and Intermec 2481
Page 277
Before You Begin
Global Services and Support Warranty Information
To understand the warranty for your Intermec product, visit the Intermec web site at http://www.intermec.com and click Service & Support. The Intermec Global Sales & Service page appears. From the Service & Support menu, move your pointer over Support, and then click Warranty. Disclaimer of warranties: The sample code included in this document is presented for reference only. The code does not necessarily represent complete, tested programs. The code is provided “as is with all faults.” All warranties are expressly disclaimed, including the implied warranties of merchantability and fitness for a particular purpose.
Web Support
Visit the Intermec web site at http://www.intermec.com to download our current documents as PDF files. To order printed versions of the Intermec manuals, contact your local Intermec representative or distributor. Visit the Intermec technical knowledge base (Knowledge Central) at http://intermec.custhelp.com to review technical information or to request technical support for your Intermec product.
Telephone Support
These services are available from Intermec Technologies Corporation. In the U.S.A. and Canada call 1-800-755-5505 and choose this option
Service
Description
Factory Repair and On-site Repair
Request a return authorization number for authorized service center repair, or request an onsite repair technician.
1
Technical Support
Get technical support on your Intermec product.
2
Service Contract Status
Inquire about an existing contract, renew a contract, or ask invoicing questions.
3
Schedule Site Surveys or Installations
Schedule a site survey, or request a product or system installation.
4
Ordering Products
Talk to sales administration, place an order, or check the status of your order.
5
Trakker Antares Application Simulator User's Manual xi
Page 278
Before You Begin
Outside the U.S.A. and Canada, contact your local Intermec representative. To search for your local representative, from the Intermec web site, click Contact.
Who Should Read This Document? This manual describes how to use the Trakker Antares® Application Simulator, which helps you create, test, and debug applications for Trakker Antares terminals with the Programmable Option. Use this manual in conjunction with Part I, Trakker Antares PSK Reference Manual, which describes the PSK library functions that the Application Simulator captures and simulates. This manual is intended for experienced PC programmers who already understand return values, know how to program in C, and know how to use the Microsoft® Visual C/C++ and Microsoft CodeView for DOS debugger. They have already read Part I, Trakker Antares PSK Reference Manual, so they understand how to create programs for Trakker Antares terminals. Note: Although this manual specifically references Microsoft C Visual C/C++, the Application Simulator also supports Borland® Turbo C++.
Related Documents The Intermec web site at http://www.intermec.com contains our current documents that you can download as PDF files. To order printed versions of the Intermec manuals, contact your local Intermec representative or distributor.
xii
Trakker Antares Application Simulator User's Manual
Page 279
1
Getting Started
This chapter introduces the Trakker Antares® Application Simulator, describes its installation, explains how to use the Simulator with other products as part of your development process, and ends with instructions for starting and exiting the TSR. This chapter covers these topics: • Introduction to the Application Simulator • Installing the Simulator • Using the Simulator with other products • Using the Simulator in the development process • Starting the Simulator • Exiting the Simulator
Trakker Antares Application Simulator User's Manual
1
Page 280
Chapter 1, Getting Started
Introduction to the Application Simulator The Trakker Antares Application Simulator helps you create, debug, test, and run on your PC any applications you create for Trakker Antares terminals. The Simulator lets you use Microsoft® Visual C/C++ and Microsoft Codeview for DOS to develop Trakker Antares applications. Note: You can also use the Application Simulator with Borland® Turbo C++ 4.5; however, this manual describes Microsoft Visual C/C++. Without the Simulator, you cannot run Trakker Antares applications on a PC because the applications contain PSK functions that are not PCcompatible. With the Simulator, however, you can run these applications on a PC. The Simulator captures the PSK functions and terminal-specific interrupts before they disrupt the PC.
ile F I IN
Sim r kke Tra ares n o t An licati g p sin p A ces Pro u lat o r T S R
TASS002.eps
Trakker Antares Application Simulator: This illustration shows how the Simulator operates.
2
Trakker Antares Application Simulator User's Manual
Page 281
Chapter 1, Getting Started
While a Trakker Antares application is processing on a PC, it issues a terminal-specific system interrupt. The Simulator terminate and stay resident (TSR) program captures the interrupt, uses values from the initialization (INI) file to assemble a response, and sends the response to the application. The application accepts the response and continues processing. For a detailed technical description, see “How the Simulator Works” on page 8.
Installing the Simulator The Application Simulator is installed automatically when you install the Trakker Antares Programmer’s Software Kit (PSK). For instructions, see Chapter 1 in Part I, Trakker Antares PSK Reference Manual. The installation creates and fills these directories on your PC: • C:\INTERMEC\IMT24\SIM • C:\INTERMEC\IMT24\LIB • C:\INTERMEC\IMT24\INCLUDE • C:\INTERMEC\IMT24\SAMPLES The installation creates a batch file in the WINDOWS or WIN95 directory called IMT24SIM.BAT that lets you use the IMT24SIM.EXE command from any directory. The installation also adds the IMT24SIM environment variable to AUTOEXEC.BAT. The environment variable points to the locations of the Simulator software. The installation creates a Trakker Antares Development Tools group on the Windows desktop. The group contains icons for the FileCopy utility, the Editor, the Editor’s online help system, and the README file. Read the README file before you use the Simulator. This file may contain information that was not available when the manual was printed. For help using the Editor, see Chapter 4, “Customizing INI Files With the Editor.” If Microsoft Visual C/C++ is already installed when you install the Application Simulator, the installation adds two commands to the Tools menu: Codeview for Trakker and Simulation for Trakker. You can choose Codeview for Trakker to load the Simulator TSR into memory and start Microsoft Codeview for DOS, or you can choose Simulation for Trakker to load the Simulator TSR into memory and run the application you are currently editing.
Trakker Antares Application Simulator User's Manual
3
Page 282
Chapter 1, Getting Started
Using the Simulator With Other Products The Application Simulator was designed to be used with the Microsoft Visual C/C++ Professional Edition (version 1.0 or 1.5x) application development software. You can use Microsoft Visual C/C++ and Microsoft Codeview for DOS to create and debug applications for your Trakker Antares terminals. Note: The Microsoft Visual C/C++ Professional Edition v4.X package includes a disk for v1.5. However, the Microsoft Visual C/C++ Professional Edition v5.0 and later does not contain the 16-bit version of C. You can install an Intermec wedge on your PC to simulate bar code input. For help configuring a wedge, see “Bar Code Input” on page 12. The Simulator TSR should not interfere with the normal operation of other software on your PC. Therefore, you can load the Simulator TSR into memory and leave it running if you have sufficient RAM available.
Using the Simulator in the Development Process The Application Simulator can be an integral part of your application development process. For example, if you installed Microsoft Visual C++ before you installed the Simulator, you can follow these steps: 1 Start Microsoft Visual C/C++. 2 Open your Trakker Antares project or create a new project. 3 Select Simulation for Trakker from the Tools menu to load the Simulator into memory. 4 Run and debug the application. 5 Exit the debugger. The Simulator is unloaded from memory and you are returned to Microsoft Visual C/C++. Note: If you are using Windows 95, you may receive a DOS informational message when you exit the debugger and terminate the Simulator. The message tells you to press Ctrl-C to exit the DOS session.
4
Trakker Antares Application Simulator User's Manual
Page 283
Chapter 1, Getting Started
Starting the Simulator The Application Simulator is a TSR program, which is a program that is loaded into DOS memory and runs in the background. Methods for Starting the Simulator Operating System Windows 95, 98, or NT
Windows 3.1
Method of Starting the Simulator Start the TSR from a DOS window while Windows is running.
How Long the Simulator Is Valid The TSR is valid only in that DOS window.
Choose Simulation for Trakker from the Tools menu of Microsoft Visual C/C++.
The TSR is valid until you exit the DOS session that is created.
Choose Codeview for Trakker from the Tools menu of Microsoft Visual C/C++.
The TSR is valid until you exit Codeview.
Start the TSR from DOS before you start Windows.
The TSR is valid until you shut down your PC, or you exit Windows and unload the TSR.
Start the TSR from your AUTOEXEC.BAT file.
The TSR is valid until you shut down your PC, or you exit Windows and unload the TSR.
Start the TSR from a DOS window while Windows is running.
The TSR is valid only in that DOS window.
Choose Simulation for Trakker from the Tools menu of Microsoft Visual C/C++.
The TSR is valid until you exit the DOS session that is created.
Choose Codeview for Trakker from the Tools menu of Microsoft Visual C/C++.
The TSR is valid until you exit Codeview.
Start the TSR from a DOS session created from Codeview.
The TSR is valid until you exit Codeview.
If you are using Windows 95, follow these guidelines: • Do not start Codeview, spawn a DOS session, and start the TSR because the TSR will remain valid only until you exit the spawned DOS session. It will not be valid when you return to Codeview. • Do not start the TSR from the AUTOEXEC.BAT file because it may crash your PC. Here are the commands for starting the Simulator. You can use these commands from the DOS prompt. To start the Simulator using default INI file • At the DOS prompt, type this command: imt24sim
When the software finishes loading, this message appears: Simulator has been loaded with:
Trakker Antares Application Simulator User's Manual
IMT24SIM.INI
5
Page 284
Chapter 1, Getting Started
You can now use your application development software to run and debug Trakker Antares applications. IMT24SIM.INI is the default INI file. To start the Simulator using a custom INI file • At the DOS prompt, type this command: imt24sim filename.ini
Where filename.ini is the name of your customized INI file. When the software finishes loading, this message appears: Simulator has been loaded with:
filename.ini
You can now use your application development software to run and debug Trakker Antares applications. Note: If you are using Windows 3.1, you can also include these commands in your AUTOEXEC.BAT file so the TSR is loaded automatically when you boot the PC.
Exiting the Simulator To unload the Application Simulator from memory, type this command at the DOS prompt: imt24sim /d
This message appears: Simulator has been unloaded.
6
Trakker Antares Application Simulator User's Manual
Page 285
2
Working With the Application Simulator
This chapter describes how the Simulator works and how it simulates various terminal features and PSK functions. This chapter covers these topics: • How the Simulator works • Understanding the limitations of the Simulator • Simulated features and functions
Trakker Antares Application Simulator User's Manual
7
Page 286
Chapter 2, Working With the Application Simulator
How the Simulator Works The Application Simulator consists of three parts: • Simulator. The Simulator terminate and stay resident (TSR) program runs in the background on your PC. The Simulator captures terminalspecific system interrupts and makes your PC mimic a Trakker Antares® terminal. • INI File. The initialization (INI) file specifies how the Simulator simulates terminal features such as communications. IMT24SIM.INI is the default INI file. To learn about the parameters in the INI file, see Chapter 3, “INI File Parameter Descriptions.” • Simulator Editor. The Simulator Editor is a Windows-based tool that you use to set the parameters that are stored in the IMT24SIM.INI file. For help using the Editor, see Chapter 4, “Customizing INI Files With the Editor.” The Simulator uses the parameters in the INI file to simulate some terminal features and PSK functions, as described in “Simulated Features and Functions” on page 10. For example, you can use INI parameters to test how the Trakker Antares application handles incoming serial communications.
Example: How to Simulate Incoming Serial Communications 1 In the INI file, set the serial_port_emulation parameter to 1 to indicate that you are simulating serial communications through an ASCII file. 2 In the INI file, set the port_read_file parameter to ORDERS.RCV to identify the ASCII file that contains the data to be input as if received on the terminal’s COM1 port. 3 Create the ORDERS.RCV file and fill it with data. The data will be input to the application as if received on the terminal’s COM1. For help formatting the data, see Step 1 in the “To simulate data input to the application through NET” procedure on page 13. 4 Start the Simulator and run your Trakker Antares application. When the application issues the im_receive_buffer PSK function, the Simulator reads from ORDERS.RCV to simulate incoming serial communications. 5 Test how the application responds to the incoming communication.
8
Trakker Antares Application Simulator User's Manual