The text of a manual · part 2 of 6
TRAKKER T2090 Application Simulator User's Manual, pages 11 to 20
Pages 11 to 20 of 60
The original document is the PDF (341 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.
Filed in the catalog under the Intermec T2090
Page 11
1 Getting Started
Page 12
Blank page
Page 13
Getting Started
1
This chapter introduces the TRAKKER T2090 Application Simulator, describes its installation, explains how to use the Simulator with other products as part of your development process, and describes three ways to begin simulating applications.
Introduction to the Application Simulator The TRAKKER® T2090 Application Simulator helps you create, debug, test, and run on your PC most applications for TRAKKER T2090 computers. The Application Simulator also lets you use Microsoft Visual C/C++ and Microsoft Codeview for DOS to develop TRAKKER T2090 applications. You can also access the Application Simulator from Intermec’s EZBuilder application development tool or from the Microsoft Visual C/C++ toolbar. T2090 applications created with version 2.1 of the TRAKKER T2090 Programmer’s Software Kit (PSK) can be run on PCs. The functions that issue T2090-specific interrupts, which can disrupt or crash a PC, have been modified. When the T2090 application detects that it is running on a PC, the PSK functions operate in a way that will not disrupt the PC. For details, see “Overview of Modifications to PSK Functions” in Chapter 2. The Application Simulator also lets you customize the simulation by setting parameters in an initialization file. For details on the T2090 features that are simulated, see “Features That Are Simulated” in Chapter 2.
Installing the Application Simulator The TRAKKER T2090 Application Simulator is automatically installed when you install the TRAKKER T2090 PSK v2.1 or EZBuilder v2.1. The default location for the software is C:\INTERMEC, but you can select another drive and directory during installation. In this manual, the term Target_Directory is used to indicate the drive and path you selected. Any directory information appearing after Target_Directory is required. For example, Target_Directory \IMT209\SIM can refer to C:\INTERMEC\IMT209\SIM or F:\DEVELOPMENT\IMT209\SIM, depending on the location you selected during installation.
Important Directories The installation creates and fills these directories on your PC: •
Target_Directory\IMT209\DOC
•
Target_Directory\IMT209\DRIVER
•
Target_Directory\IMT209\EXAMPLES
•
Target_Directory\IMT209\EZBUILD
1-3
Page 14
TRAKKER T2090 Application Simulator User’s Manual
•
Target_Directory\IMT209\INCLUDE
•
Target_Directory\IMT209\LIB
•
Target_Directory\IMT209\REMDISK
•
Target_Directory\IMT209\SAMPLE
•
Target_Directory\IMT209\SIM
README.TXT File Read the README file. This file may contain information that was not available when this manual was printed.
IMT209SIM Environment Variable The installation adds the IMT209SIM environment variable to your AUTOEXEC.BAT file. This environment variable points to the location of the T2090 Application Simulator software, which is stored by default in the Target_Directory\IMT209\SIM directory.
Microsoft C/C++ Version Requirements Applications built for the T2090 require Microsoft Visual C/C++ Professional Edition v1.0 or v1.5x, which can create 16-bit DOS applications. If you are using a different version, you must also install either v1.0 or v1.5x. The Microsoft Visual C/C++ Professional Edition v4.x package includes a disk for v1.52. However, the Microsoft Visual C/C++ Professional Edition v5.0 does not contain the 16-bit version of C. You can order Microsoft Visual C/C++ Enterprise Edition v1.52 from Intermec (P/N 590224).
1-4
Microsoft Version
16-Bit Support v1.0
9 v1.5x
9 v4.x
9
Includes a disk for v1.52 v5.x
8
Order Microsoft Visual C/C++ Enterprise Edition v1.52 from Intermec (P/N 590224)
Page 15
Getting Started
1
Tips for Installing Microsoft Visual C/C++ If you installed Microsoft Visual C/C++ before you installed the Application Simulator on your PC, two commands were automatically added to the Tools menu of Microsoft Visual C/C++: Simulate T2090
Choose this command to simulate the T2090 application.
T2090 Serial Input Editor
Choose this command to start the Serial Input Editor.
If you installed Microsoft Visual C/C++ after you installed the Application Simulator, you can manually add the commands to the Tools menu. For instructions, see Appendix A, “Adding the Simulator to the Microsoft Visual C/C++ Tools Menu.”
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. Or you can use Intermec’s EZBuilder v2.1 application development tool to create T2090 applications and then run the Application Simulator to test the applications. You can use Microsoft Codeview for DOS to debug T2090 applications. You can install an Intermec Wedge on your PC to simulate bar code input. For help configuring a wedge, see “Bar Code Input” in Chapter 2.
Using the Simulator in the Development Process The Application Simulator can be an integral part of your application development process. For example, you can follow these steps: 1. Start Windows. 2. Start Microsoft Visual C/C++. 3. Open your T2090 project or create a new project. 4. Build the application. 5. Select Simulate T2090 from the Tools menu to simulate the application. Or select Codeview for MS-DOS to run and debug the application. 6. Exit the debugger or the simulated application.
1-5
Page 16
TRAKKER T2090 Application Simulator User’s Manual
How to Begin Simulating a T2090 Application You can simulate a T2090 application using one of these methods:
1-6
•
Choose TRAKKER Simulator from the Tools menu of EZBuilder.
•
Choose Microsoft Codeview for DOS from the Tools menu of EZBuilder.
•
Choose Simulate T2090 from the Tools menu of Microsoft Visual C/C++.
•
Choose Codeview for MS-DOS from the Tools menu of Microsoft Visual C/C++.
Page 17
2 Working With the Application Simulator
Page 18
Blank page
Page 19
Working With the Application Simulator
2
This chapter describes how the Simulator works and how various T2090 features and PSK functions are simulated.
How the Simulator Works When a T2090 application begins running, it checks the operating system to determine if it is running on a T2090 or being simulated on a PC. If the application is being simulated on a PC, it performs two additional tasks: •
The application attempts to read the INI file, which is defined in the next section. If the application cannot find the file in the working directory, it checks the Target_Directory\TOOLS directory. If it cannot find the file there, it uses the default INI settings.
•
Some PSK functions in the application change the way they execute so that they will not cause problems on the PC. For details, see “Overview of Modifications to PSK Functions” later in this chapter.
Three Parts of the Simulator The Application Simulator consists of three parts: Serial Input Editor The Serial Input Editor is a Windows-based tool for sending data into the T2090 application that is being simulated on your PC. For help using the Serial Input Editor, see “Starting the Serial Input Editor” and “Data Input Through COM1” later in this chapter. INI file The initialization (INI) file specifies how the T2090 application simulates T2090 features such as bar code label input. IMT209SM.INI is the default INI file. To learn about the parameters in the INI file, see Chapter 3. Simulator Editor The Simulator Editor is a Windows-based tool for setting the parameters stored in the IMT209SM.INI file. For help using the Simulator Editor, see Chapter 4.
Example of Simulating Incoming Serial Communications This example tests how the TRAKKER T2090 application handles incoming serial communications. 1. Create a TRAKKER T2090 application that receives data through COM1. 2. Enable the serial_port_emulation parameter in the IMT209SM.INI file. 3
Create a text file called ORDERS.TXT and fill it with several lines of data to be input to the application. Each line can be up to 1024 characters long and must terminate with a linefeed (LF) character.
2-3
Page 20
TRAKKER T2090 Application Simulator User’s Manual
4. Run the Serial Input Editor. Specify the complete path of the ORDERS.TXT file and click the Send File button. The contents of the file are copied into a buffer, from which the T2090 application can read the data one line at a time. 5. Begin simulating the TRAKKER T2090 application. When the application executes the im_receive_buffer PSK function, the function reads a line of data from the buffer. 6. Observe how the T2090 application responds to the incoming data.
Starting the Serial Input Editor You can start the Serial Input Editor using one of these methods: •
Choose T2090 Serial Input Editor from the Tools menu of EZBuilder.
•
Choose T2090 Serial Input Editor from the Tools menu of Microsoft Visual C/C++.
For help using the Serial Input Editor, click the Help button.
Features That Are Simulated This section describes the features of the TRAKKER T2090 computer’s performance that can be simulated: •
Text Display
•
Keypad Input
•
Bar Code Input
•
Data Input Through COM1
•
Data Output Through COM1
•
Reader Command Syntax Checking
Text Display A simulated application creates a display on your PC that mimics the screen on the T2090. The simulated application limits character echoing to the lines and columns based on the display size you specified by calling the im_set_display_mode function. Some display characteristics are represented on the PC in color, as shown in the next table.
2-4