The text of a manual · part 4 of 6
TRAKKER T2090 Application Simulator User's Manual, pages 31 to 40
Pages 31 to 40 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 31
INI File Parameter Descriptions
3
This chapter explains why you should customize your INI file, describes the parameters in the INI file, and explains which PSK library functions will receive the INI parameters as return values and out parameters.
Why and How You Customize INI Files The INI parameters control how the T2090 application simulates T2090 features (such as bar code input) when executing on a PC. You can customize the parameters to test your TRAKKER T2090 applications against specific conditions. Note: Customizing the INI file is optional. You do not have to customize the INI file if you are satisfied with the default values in IMT209SM.INI.
You can customize INI parameters using the Simulator Editor or any ASCII text editor: •
The Simulator Editor provides a graphic environment for changing your INI files. Instead of typing the settings, you select them from menus and dialog boxes. For help using the Simulator Editor, see Chapter 4.
•
If you create and edit INI files with an ASCII text editor, use a copy of the default INI file to make sure you conform to the formatting conventions.
Where to Store Customized INI Files The INI file for the TRAKKER T2090 Application Simulator must be named IMT209SM.INI. You cannot change the name to indicate that the file has been customized. But you can store different copies of the file in different directories. If you understand where a simulated application looks for the INI file, you can use the information to manage different versions of the INI file. The application first checks the working directory (which is the same directory where the simulated application is stored). If it does not find the file there, it checks Target_Directory\Tools. If it does not find the file there either, it uses the default INI settings. Here is one way to use location to manage different versions of the INI file: 1. Keep a master copy of IMT209SM.INI in the Tools directory. 2. Store each application in its own directory. If the application requires a customized INI file, copy the master file to the directory and edit it. 3. When you run an application on a PC, it may find a customized IMT209SM.INI file in the working directory. If it does not, it will use the master copy in the Tools directory.
3-3
Page 32
TRAKKER T2090 Application Simulator User’s Manual
Parameter Descriptions This section contains descriptions of the parameters in the INI file, in alphabetical order. The first description, sample, illustrates the type of information presented for each parameter and is not a valid parameter.
sample Purpose
The purpose of the parameter.
Default
The default value for the parameter.
Values
The values you can set for the parameter.
Function
Notes
The PSK library function that receives the parameter as a return value or out parameter. An out parameter specifies a value that is returned by the function. Some parameters do not have a PSK function associated with them. Optional information about the parameter.
label_preamble Purpose
Lets you add a user-defined string to the front of the label data. The userdefined string is specified in the label_preamble_string parameter.
Default
0 - disabled
Values
0 - disabled 1 - enabled
Function im_receive_field im_receive_input label_preamble_string
3-4
Purpose
Specifies the user-defined string to be added to the front of the label data if the label_preamble parameter is enabled.
Default blank
Values
Any ASCII text
Function im_receive_field im_receive_input
Page 33
INI File Parameter Descriptions
3 label_postamble Purpose
Lets you append a user-defined string to the end of the label data. The userdefined string is specified in the label_postamble_string parameter.
Default
0 - disabled
Values
0 - disabled 1 - enabled
Function im_receive_field im_receive_input label_postamble_string Purpose
Specifies the user-defined string that can be appended to the end of the label data if the label_postamble parameter is enabled.
Default blank
Values
Any ASCII text
Function im_receive_field im_receive_input
3-5
Page 34
TRAKKER T2090 Application Simulator User’s Manual label_symbology Purpose
Specifies the symbology of the last simulated scanned label.
Default
1 – Code 39
Values
0 - Unknown 1 - Code 39 2 - Code 93 3 - Code 49 4 - Interleaved 2 of 5 (I 2 of 5) 5 - Codabar 6 - UPC/EAN 7 - Code 128 8 - Code 16K 9 - Plessey 10 - Code 11 11 - MSI
Function Notes im_get_label_symbology im_receive_input The value of this INI parameter is returned to the application in the symbology parameter of the function calls that use this INI parameter. When testing an application, you can simulate the act of scanning a label by pressing Ctrl-G.
label_symbologyid Purpose
Specifies the AIM symbology ID of the simulated bar code input.
Default
]A1
Values
Enter up to 4 ASCII characters.
Function Notes
3-6 im_get_label_symbologyid The value of this INI parameter is returned to the application in the symbologyId parameter of the function calls that use this INI parameter.
Page 35
INI File Parameter Descriptions
3 serial_port_emulation Purpose
Specifies whether the serial port operations are simulated with the Serial Input Editor and the COMP1.TRX file.
Default
1 - enabled
Values
0 - disabled 1 - enabled
Function im_receive_buffer, im_receive_field, im_receive_input, im_transmit_buffer sim_directory Purpose
Specifies the directory (Target_Directory\IMT209\SIM) where the T2090 Application Simulator software is located.
Default
C:\INTERMEC\IMT209\SIM
Values
Enter the complete path name for the IMT209\SIM directory in this format: drive:\path\IMT209\SIM
Function Notes none This INI parameter and the IMT209SIM environment variable both point to the location of the Application Simulator software. When this parameter is set, it overrides the value of the environment variable. This parameter was created because some Microsoft NT configurations could not recognize the IMT209SIM environment variable. To disable this parameter, delete it from the INI file.
3-7
Page 36
Blank page
Page 37
4 Customizing INI Files With the Editor
Page 38
Blank page
Page 39
Customizing INI Files With the Editor
4
This chapter introduces the Simulator Editor and describes how to use it to customize the initialization (INI) file for the TRAKKER T2090 Application Simulator.
Introduction to the Simulator Editor The Simulator Editor is a Windows-based tool for viewing and setting the parameters stored in the IMT209SM.INI file. The INI file contains parameters that specify how certain features are simulated. For descriptions of the parameters, see Chapter 3, “INI File Parameter Descriptions.” Note: Because IMT209SM.INI is a text file, you can use any text editor to change the values of the parameters. You do not need to use the Simulator Editor.
The Editor can be used with Intermec’s two application simulators: •
TRAKKER Antares Application Simulator, which simulates applications for the TRAKKER Antares family of computers, including the T2425 hand-held terminal and the T248X stationary terminal.
•
TRAKKER T2090 Application Simulator, which simulates applications for the T2090 computer.
Starting the Simulator Editor Start the Simulator Editor from the TRAKKER T2090 Development Tools group on the Windows desktop or on the Start menu. The Editor window appears:
4-3
Page 40
TRAKKER T2090 Application Simulator User’s Manual
No INI File Found When you start the Editor, it attempts to open the IMT24SIM.INI file in the working directory. The IMT24SIM.INI file is the default INI file for the TRAKKER Antares Application Simulator. Because you are working with the TRAKKER T2090 Application Simulator and the IMT209SM.INI file, the Editor probably will not find the IMT24SIM.INI file. The Editor displays the message, No ini file found, in the title bar of the window. You can open the IMT209SM.INI file by choosing Open from the File menu. Or you can create a new IMT209SM.INI file by choosing New from the File menu and selecting T209x when prompted to specify the type of INI file.
Introduction to the User Interface This utility conforms to standard Microsoft Windows conventions, so it should be easy to familiarize yourself with the user interface.
Menu Bar The main menu bar contains the File, Edit, and Help commands: File Lets you open, create, and save INI files. Also lets you restore the parameters to their defaults, print INI files, and exit the Editor. Edit Lets you select a category of parameters (such as Communications and Labels), causing the corresponding tab section to become active in the Editor window. Help For details, see the “Online Help” section later in this chapter.
Tabs The parameters are divided into categories, and each category has its own tab in the Editor window. To view the parameters in each category, click the corresponding tab or choose the category name from the Edit menu. You set the value for each parameter by:
4-4
• selecting radio buttons.
• checking boxes.
• typing into the fields.
• choosing items from pull-down lists.