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 45 of 70

Model 200 Controller System Manual, pages 441 to 450

Pages 441 to 450 of 695

The original document is the PDF (3.9 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 Intermec 0200

Page 441

Using Screen Mapping

11

The top part of the Model 200 Controller View Results window displays the result of the script checker. You may see some errors and warnings. Your script file should still run with warnings, but you must resolve all errors.

Verifying the Script File Logic To test the logic of the script file, you must set up a test environment and start data collection on the Model 200 Controller. Then, you must use the Send Transaction feature to send every transaction to the script file and verify that the script file handles the transaction correctly. When you test script files, you should provide many different sets of data and you should test as many scenarios as possible. Note: When testing VT script files, watch for timing problems.

11-71

Page 442

Model 200 Controller User’s Manual

(Part 1) To verify the logic of a script file 1. Set up your test environment. a. Add a screen mapping session for the script file. Select all the transactions that the script expects. Enable the Visible when data collection started? check box. Note: If you already have started a host terminal session, make sure that the host terminal session is at the logon screen. b. Add a peer-to-peer destination. This destination will be the source of the transaction when you send transactions to the screen mapping session. It will also be the destination that receives output transactions from the screen mapping sessions. 2. From the main menu sidebar buttons, choose Save and Activate. 3. From the main menu sidebar, choose Start Data Collection. Note: If you stop data collection because the script fails, clear the Hot Standby file for the screen mapping session you are testing and make sure that the host terminal session is at the logon prompt before you restart data collection. Verify that • the host terminal session opens. • the logon sequence happens correctly. • the main host screen appears and waits for a transaction.

11-72

Problem

Solution

The host terminal session does not appear.

Make sure that you checked the Visible when data collection started? check box in the Screen Mapping Session Definition dialog box. View the error log.

The main host screen does not appear.

Make sure that the keystrokes that you captured for the logon sequence are correct. For help, see “Creating a Logon Sequence” earlier in this chapter.

(VT only)

The logon sequence may have been sent before the sign on screen appears. Add logic to the script file so that it waits for the sign on screen before it sends the logon sequence. For example, see VTDEMO.SCR in the USERDATA\SCRIPTS directory on the controller.

Page 443

Using Screen Mapping

11

(Part 2) To verify the logic of a script file 1. Open testing and viewing tools. a. From the System Maintenance dialog box, open the Send Transaction dialog box. b. From the System Maintenance dialog box, open the Receive Transactions dialog box. In the Application List dialog box in the Application name field, enter the peer-to-peer destination name that you defined earlier. Choose Add. c. From the System Diagnostics dialog box, open the Trace Utility and configure a screen mapping trace. d. From the System Reporting dialog box, open the Model 200 Controller Status Monitor window (View Status Monitor command). 2. Test all successful transactions in the script file one at a time. a. In the Send Transaction dialog box in the Source ID field, enter the peer-to-peer destination name that you defined earlier. b. In the Transaction ID field, enter the transaction ID of the transaction you want to test. c. In the (D)ata or (S)ystem field, enter D. d. In the Data field, enter the data that the transaction needs to be successful. If the transaction contains data for multiple host screen fields, separate each field with a comma and make sure that the field order matches what you have defined in the script file. Verify that • the transaction data maps correctly to the host screen fields. • if you use more than one host screen, when the transaction data is processed, you return to the main host screen. • if you defined a message to send when the transaction is processed, the message appears in the Receive Transactions dialog box. • (VT only) you do not have a timing problem. Send multiple transactions as fast as you can. If you send transactions faster than the response time of the host, the script file should wait for the host to be ready to receive data. The script file should always check to see if the host screen is ready before it maps data to it.

11-73

Page 444

Model 200 Controller User’s Manual

Problem

Solution

The script file is stuck in a host screen and cannot finish processing the transaction data.

Make sure that the keystrokes that you captured that move you from one host screen to the next screen are correct.

Nothing happens on the host screen

Make sure that you entered the correct transaction ID in the Send Transactions dialog box. Make sure that the transaction ID you entered is listed in the Selected list box in the Screen Mapping Session Definition dialog box. View the Status Monitor window.

(VT only)

View the Status Monitor window. If you see the statement, “EMCOMM ERROR - A bad position was specified - cannot write data,” the script file does not handle timing properly. The error log also tells you what field caused the error. The script file should always check to see if the host screen is ready before mapping data to it.

(Part 3) To verify the logic of a script file • Test all failed transactions in the script file, one at a time. You need to make sure that the script file handles error conditions caused by bad transaction data. a. For each transaction, note all the regions that you have defined. b. For each region, use the Send Transaction dialog box to send a transaction that causes erroneous data to appear. Verify that • the script file handles the error properly. Usually, the script file clears the error condition, sends a message to notify the source that the transaction has failed, and then returns to the main host screen to wait for the next transaction.

11-74

Page 445

Using Screen Mapping

11

Problem

Solution

The script file is stuck in a host screen.

View the logic that you defined for the region. If you defined a message to send when the region appears, check the Receive Transactions dialog box to see if the message was received. If the message exists, the script has caught the region. Verify that the keystrokes you captured that move from one host screen to the next screen are correct.

The message received is not what you expect.

If you define a region for a specific error and you also define a region for general errors and their locations overlap, make sure that the script checks the specific error before the general error. Define both regions in the same group and then use the Screen Event Ordering dialog box to adjust the region order.

(VT only) The script file does not catch the region even though you can see it on the host screen.

Due to the timing problem that occurs when the script file is executed faster than the host response time, the script file might check the region before the host sends the error message to the terminal screen. In the script file, add a PAUSE statement before the IF_REGION so the script file will pause for a certain amount of time before it checks the region.

(Part 4) To verify the logic of a script file • Debug the script. a. Add some LOG_ERROR statements to your script file. b. View the Status Monitor window. c. Check the error messages that appear as the script is running.

Conclusion When you have verified the logic of the script file on the controller, you can try downloading the template to the terminal template application and then running it. Verify the template as much as possible before you use it with the script file. The most common errors occur when the template expects to receive a response after it sends a transaction. Make sure that the script file only sends one message per transaction to the terminal; otherwise, messages are queued in the Hot Standby file and your terminal template application will get out of sync messages.

11-75

Page 446

Model 200 Controller User’s Manual

Setting Up Screen Mapping Sessions When you define a screen mapping session, you define specific transactions to be sent to a specific host terminal session using a specific script file. Screen mapping sessions allow multiple terminal sessions on the controller to simultaneously communicate with multiple terminal emulator sessions running on different hosts. Before you proceed, make sure you have performed these tasks: • Defined each host terminal session you want to connect to a screen mapping session. One screen mapping session connects to one host terminal session. • Named each script you want to use. Each script may use many transactions. To send transactions to a different host using the same script file, you define another screen mapping session that connects to the appropriate host session. • Defined the transactions you want to route to each host terminal session using the script file. To set up a screen mapping session 1. From the main menu, choose Screen Mapping. 2. Choose Sessions. The Screen Mapping Session List dialog box appears. 3. The Sessions list box lists all the sessions that are defined for screen mapping. From this dialog box you can add new sessions, or you can edit or delete existing sessions. For help, see “Adding a Screen Mapping Session” later in this chapter. 4. Choose Close to close the dialog box and return to the main menu.

11-76

Page 447

Using Screen Mapping

11

Adding a Screen Mapping Session Visible when data collection started? check box You may want to view the host terminal session when you develop and debug your screen mapping applications. However, you should not use this feature when you actually run your application because it will affect the controller performance. If you check this check box, the host terminal session opens when you start data collection. Then, you can watch your host screen fields being filled in as they receive transactions from the controller. Start session at data collection start check box You may want to immediately run your screen mapping application when you choose Start Data Collection. If you check this check box, the controller starts the screen mapping session and is ready to accept transactions from data collection devices.

11-77

Page 448

Model 200 Controller User’s Manual

Field

Description

Value

Default

Name

A meaningful name that identifies this screen mapping session.

1 to 8 alphanumeric characters

None

Visible when data collection started?

This check box determines if the screen mapping application automatically opens the host terminal session when you start data collection.

Check, Clear

Clear

Start session at data collection start

This check box determines if the screen mapping application automatically starts when you start data collection.

Check, Clear

Check

Hot Standby timeout

The number of seconds the Model 200 Controller waits for a response from the data collection device before it places the device in Hot Standby mode.

1 to 9999

20

Script File

The name of the script file that this screen mapping session uses.

Predefined

None

Host Terminal Session

The long session ID of the terminal session that this screen mapping session uses.

Predefined

None

Selected

This list box contains the transactions that send data to the selected host terminal session using the selected script file.

None

None

Available

This list box contains all the available transactions that you can use.

Predefined

None

To add a screen mapping session 1. From the Screen Mapping Session List dialog box, choose Add. The Screen Mapping Session Definition dialog box appears. 2. In the Name field, enter a meaningful name for this screen mapping session. 3. Check the Visible when data collection started? check box if you want a host terminal session to start when you start data collection. Use this check box when you are debugging your script file.

11-78

Page 449

Using Screen Mapping

11

4. Check the Start session at data collection start check box if you want your screen mapping application to automatically start when you start data collection. 5. In the Hot Standby timeout field, enter the number of seconds the controller waits for a response. 6. In the Script File box, click the down arrow on the right side of the field. A list of script files appears. Choose the script file associated with this screen mapping session. Note: Intermec highly recommends that you use the Script Builder Tool for creating and editing script files. If you choose Create or Edit in this dialog box and then you save your changes, the Script Builder Tool will not recognize the script file. In other words, you will not be able to open this script file using the Script Builder Tool. 7. In the Host Terminal Session box, click the down arrow on the right side of the field. A list of terminal sessions you have configured appears. Select a host terminal session for your screen mapping session. 8. Add all transactions that you want to route to this screen mapping session to the Selected list box. a. From the Available list box, select a transaction to be added to the Selected list box. b. Choose Select. 9. Remove any transactions from the Selected list box that you do not want to route to this screen mapping session. a. From the Selected list box, select a transaction to be removed. b. Choose Remove. 10. Add, edit, or delete any transactions that are listed in the Selected list box. For help, see “Adding a Transaction” in Chapter 9. 11. (Optional) Map transactions fields to screen fields. For help, see “Mapping Transaction Fields” in the next section. 12. Choose OK to save your changes and return to the Screen Mapping Session List dialog box.

11-79

Page 450

Model 200 Controller User’s Manual

Mapping Transaction Fields If your script does not contain explicit transaction mapping information, you need to map the transaction fields to the host screen fields. You only need to map the transaction fields if you are using the PUT_MAPPED_TRANS command in your script file. The Script Builder uses the command PUT_TRANS_FIELD, which explicitly maps a transaction field to a host screen field. If you use the Script Builder to generate your script files, you usually do not need to map transaction fields. Intermec highly recommends that you use the Script Builder Tool to generate your script files. For VT screen mapping, when using the PUT_TRANS_FIELD command, the script executes an implied WAIT_FOR_LABEL_POS command for the field specified in the PUT_TRANS_FIELD. The WAIT_FOR_LABEL_POS command waits for the cursor to be at the field before the PUT_TRANS_FIELD command maps the field. The WAIT_FOR_LABEL_POS timeout period is the same as the VT_WAIT timeout period. Note: If you insert the WAIT_FOR_LABEL_POS command as a user block, you must specify the wait period. To map transaction fields to screen fields 1. From the Screen Mapping Session Definition dialog box, select the transaction whose fields you want to map to screen fields. 2. Choose Map. The Screen Mapping Field List dialog box appears.

11-80