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 4 of 23

VRC 4000 Software Driver Manual: Chapter 1 TWDriver Touchscreen Driver for Windows, pages 27 to 34

Pages 27 to 34 of 206, from VRC 4000 Software Driver Manual

The original document is the PDF (1.2 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 Symbol VRC-4000

Page 27

Chapter 1: TWDriver Touchscreen Driver for Windows

Touch Offset Normally, the cursor is directly underneath your finger, which is desirable in most circumstances, but inconvenient in others. With Touch Offset On, the cursor is offset directly above your finger by 10% of the height of the screen, except at the top and bottom, where it converges with your finger as you approach the edge. This can be very useful in applications where you need to be able to see the precise position of the cursor clearly.

Button Normally, the left button is simulated, although a configuration option allows the right button, or both buttons at once, to be simulated instead.

ClickTime ClickTime is a time interval which TWdriver uses for a number of purposes. It is defined as a number of system clock ticks, there being 18.2 ticks to each second. The default value of ClickTime is 9, which corresponds to about half a second. Smaller values correspond to a shorter time, and larger values correspond to a longer time. ClickTime has three functions: A Time touch event is generated by holding your finger stationary in contact with the screen for ClickTime. So in Button Mode 2 (Time mode), for example, ClickTime controls the length of time you need to hold your finger stationary for to generate a button press. A Tap touch event is defined as a finger lift and re-touch within ClickTime. So in mode 4 (Tap mode), for example, ClickTime defines the length of time within which you must re-touch the screen after lifting off in order to generate a button press.

1-17

Page 28

VRC 4000 Software Driver Manual

ClickTime is also used to distinguish between first, second, and subsequent clicks, allowing each to be assigned to different types of touch event. For example, after the first click has been generated in Button Mode 3 (Time/Tap mode), TWdriver is expecting a tap event to generate a second click, but only if it occurs within ClickTime. After ClickTime, a tap will be ignored since TWdriver will then be expecting a first press again, and will only respond to a time event. Similarly, after a second click and within ClickTime, TWdriver will be expecting the event defined for a subsequent button press, if any. After ClickTime, it will again start looking for the event defined for a first button press. Note that second button presses - the second click of a double click, are forced by TWdriver to occur at exactly the same location as the first click. This has an interesting, and sometimes confusing, implication in Button Mode 1 (Touchdown mode). In an application such as the Windows calculator, Touchdown mode is ideal for simulating the buttons of a real calculator. However, two successive clicks on two different buttons within ClickTime would be treated by TWdriver as a double click on the first button, which is incorrect in this situation. The solution here is to reduce ClickTime to, say, 1, since it serves no purpose in this case.

DoubleClickSpeed This option actually belongs to the Windows mouse control panel, but is duplicated here for convenience. It changes the speed at which Windows will register a double click. For touchscreens, this normally needs to be set to the high end of the scale.

Sensitivity The Sensitivity option specifies the time interval required to register a finger lift, and uses the same units as the ClickTime option. The default varies depending on the touchscreen model, but is the smallest value required to make the touchscreen usable, typically 1, 2, or 3. In some cases you may wish to increase this time, so that any momentary loss of contact when sliding around is ignored.

1-18

Page 29

Chapter 1: TWDriver Touchscreen Driver for Windows

Stabilization The Stabilization option sets the number of touch coordinates from the hardware which are averaged to produce stabilized values. The default varies depending on the touchscreen model, but is commonly 0, ie no stabilization, 2, or 3. This value may be increased if the cursor appears jittery. Specifying a higher than necessary value causes the cursor to be unnecessarily delayed in following your finger around the screen.

Sound The Sound on/off option enables or disables the beep which accompanies simulated button presses.

1-19

Page 30

VRC 4000 Software Driver Manual

Hardware Configuration Selecting the 'Hardware Controls' option of TWsetup displays the Hardware Controls screen:

These options control the configuration of the software to work with the touchscreen hardware, and must be set correctly for your hardware configuration or the touchscreen will not work.

1-20

Page 31

Chapter 1: TWDriver Touchscreen Driver for Windows

Standard COM Port Configurations In most cases, the touchscreen will be connected to either a standard COM1 port or a standard COM2 port. In these cases, all that is required is to select the appropriate port. The correct port address and IRQ will be assigned automatically.

Non-Standard COM Port Configurations The default port addresses and IRQs assumed for the COM ports are: Table 1-1. Com Port Addresses and IRQs

ComPort

Address

IRQ

1

3F8

4

2

2F8

3

3

3E8

5

4

2E8

2

Other configurations can also be configured by specifying the port address and IRQ explicitly. IRQ 2 cannot be used in Enhanced mode, since Windows uses it for vertical retrace handling, and interrupts do not reach the touchscreen driver. The port address is specified in hexadecimal. In order for COM ports to work properly in 386 enhanced mode, the Windows Virtual COM Driver (VCD) must also know the configuration of the COM ports. Windows takes the COM port configuration from the [386enh] section of the SYSTEM.INI file, and assumes the following defaults:

1-21

Page 32

VRC 4000 Software Driver Manual

COM1base=3F8 COM1irq=4 COM2base=2F8 COM2irq=3 COM3base=2E8 COM3irq=4 COM4base=2E0 COM4irq=3 The defaults for COM1 and COM2 do not normally require overriding, but the defaults for COM3 and COM4 usually do. When you use TWsetup to select a non-standard COM port configuration, TWsetup updates SYSTEM.INI for you. However, in order to handle the port correctly in 386 enhanced mode, Windows also needs to find the port address listed in the BIOS COM port table. In many cases, non-standard COM ports will not be detected by the system BIOS at boot time, so the port address will not be automatically listed in the BIOS COM port table. A small DOS utility, TBbios, is provided with TWdriver, to force port addresses into the BIOS COM port table, and this should be run in your AUTOEXEC.BAT file. For example, “TBbios 3 3E8” will force the port address 3E8 into the entry for COM3 in the BIOS COM port table. TWsetup does not amend your AUTOEXEC.BAT file for you.

1-22

Page 33

Chapter 1: TWDriver Touchscreen Driver for Windows

Automatic Re-initialization Some touchscreen controllers require a software initialization sequence to set them into the required operating mode, and TWdriver always performs this when Windows loads. When the controller is serially connected and external to the PC, there is always the possibility that the user will power the touchscreen controller off and on, particularly if the controller is located inside the monitor. The controller will then power up uninitialized and will not work. TWdriver attempts to detect this situation and automatically re-initialize the controller when required. Automatic re-initialization is triggered by a positive going change in the state of the CTS signal on the RS232 interface. Note, however, that if the CTS connection is omitted from the RS232 cable the touchscreen will still work, but the automatic re-initialization function can not, and in some cases will be falsely triggered by the floating CTS. While TWdriver is attempting to re-initialize the touchscreen, it can cause the computer to slow down considerably. Automatic re-initialized can be disabled here if required.

Communications Parameters TWdriver chooses defaults for Baud Rate, Parity, Databits and Stopbits which are either the only ones supported by the touchscreen, or which will be automatically recognized by the touchscreen, or which can be used with the switch settings defined in the ’Switch Settings and Hardware Notes’ section. You may wish to change the communications parameters to support different switch settings, or to reduce the communications overhead.

Shared IRQ's and Global Rearming For serial touchscreens only, TWdriver supports the ability for more than one COM port to share the same IRQ. For hardware reasons, this only works when the hardware is designed to support IRQ sharing, for example on multiport serial adapter cards. IRQ sharing cannot be made to work by simply switching two ordinary COM ports to the same IRQ. The Global Rearm IRQ-sharing mechanism found on an increasing number of machines is also supported.

1-23

Page 34

VRC 4000 Software Driver Manual

Bus Touchscreens A different Hardware Controls screen is displayed for touchscreen controllers which plug directly into the PC bus. In these cases, only the port address and IRQ need be specified if the jumper or switch settings do not match the defaults given in the ’Switch Settings and Hardware Notes’ section.

Activating the New Configuration Press 'OK' to save the changes and exit, or 'Cancel' to cancel your changes and exit. Changes to the hardware configuration cannot be activated immediately. You must restart Windows for them to take effect.

WIN.INI All the TWdriver configuration options are stored in the Windows configuration file WIN.INI, and you may alter the TWdriver configuration by editing this file using a text editor. The syntax of the entries follows. All entries are shown with their default values, followed by the valid range of values: [Touch-Base] ButtonMode=3 ButtonDown1=0 ButtonUp1=0 ButtonDown2=0 ButtonUp2=0 ButtonDown3=0 ButtonUp3=0 ClickTime=9 Sensitivity=1 Stabilisation=0 Offset=Off Button=Left Sound=On ComPort=1 Address=3F8 Interrupt=4 Baud=9600 Parity=N

1-24

0-6 0,1,2,4,8,16,32,64 0,1,2,4,8,16,32,64 0,1,2,4,8,16,32,64 0,1,2,4,8,16,32,64 0,1,2,4,8,16,32,64 0,1,2,4,8,16,32,64 1 - 20 1 - 20 0 - 20 On, Off Left, Right, Both On, Off 1, 2, 3, 4 0 - FFFF 1 - 15 1200,2400,4800,9600 N, O, E