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

VRC 4000 Software Driver Manual: Appendix C Using Multiple Touchscreens

Pages 161 to 166 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 161

Appendix C Using Multiple Touchscreens Contents Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-3 Matrix Touchscreens . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-5 Pad to Coordinate Mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-5 TBddemo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-5 Read Touches API Call . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-5

C-1

Page 162

VRC 4000 Software Driver Manual

C-2

Page 163

Appendix C: Using Multiple Touchscreens

Introduction Many video adapters are available which enable a PC to drive two or more monitors. In order to support multiple touchscreens, multiple copies of TBdriver can be loaded into memory, provided they each use a separate API interrupt vector and a separate calibration data file, and provided the touchscreens use separate port addresses. For touchscreens of the same type, a single copy of TBdriver on disk may be used, and the environment variables TBdint and TBdpath may be used to control the API vector and calibration data file directory. For touchscreens of different types, multiple copies of TBdriver must be installed in separate directories. Note that the calibration data file is always called TBcalib, so multiple copies must always be located in separate directories. TBdriver only refers to environment variable TBdpath when it loads, so changing it after loading does not affect the resident TBdriver. TBdpath may then be changed to control the TBcalib directory of another copy of TBdriver. Similarly, environment variable TBdint is only used when TBdriver loads or unloads, and so can be used to load and unload multiple drivers to and from different API vectors. Note that drivers must be unloaded on a last in first out basis. The supplied programs TBcal and TBddemo both use the environment variable TBdint to determine the software interrupt vector to use. Access to several resident TBdrivers can therefore be achieved by setting TBdint appropriately before running either program. In the same way, your application would access either driver simply by calling the appropriate software interrupt vector. For example, the following DOS commands would load two TBdrivers to drive two touchscreens of the same type. Touchscreen 1 could then be driven by making calls to interrupt 65, and touchscreen 2 by making calls to interrupt 66: • Set TBdpath=c:\driver1 • Set TBdint=65 • TBdriver 1 • Set TBdint=66

C-3

Page 164

VRC 4000 Software Driver Manual

• Set TBdpath=c:\driver2 • TBdriver 2

The following commands would be required to calibrate touchscreen 1: • Set TBdint=65 • TBcal

The following commands would be required to calibrate touchscreen 2: • Set TBdint=66 • TBcal

C-4

Page 165

Appendix C: Using Multiple Touchscreens

Matrix Touchscreens TBdriver is primarily designed to provide comprehensive support of analogue touchscreens, although matrix touchscreens are also supported where possible. Matrix touchscreens return pad identification numbers instead of coordinates, and in order to provide compatibility at the API, TBdriver maps these pad numbers to coordinates.

Pad to Coordinate Mapping The pad to coordinate mapping is held in file TBcalib and defined by program TBcal. TBcal behaves entirely differently for matrix touchscreens, displaying the following screen when invoked:

TBcal V4.07

(c) Touch-Base Ltd. 1989 - 1994

Pr e s s E n t er t o p r o ce e d to t he m a in c al i b r at i o n s c r ee n . Yo u m us t ca l i b ra t e e v e r y p a d o n th e sc r e e n, a s f o l lo w s : 1 ) T o uc h a nd r el e a s e a pa d t o s e le c t it .

T h e pa d ID w i ll f la s h .

2 ) M ov e th e p a d I D a r o un d th e s c r e en us i n g t h e c ur s o r k e ys , un t i l i t i s ro u g h ly i n t h e c e n tr e o f t h e p a d . T he i n se r t k e y t o gg l e s b e t we e n f a s t a n d s l o w m o v em e n t . 3 ) W he n yo u a r e s a t is f i ed w it h t h e p a d ’s p os i t io n , p r e ss En t e r . T h e p a d I D wi l l s t o p f l a sh i n g . 4 ) W h e n yo u h a ve c a l ib r a t ed e v er y p a d, p r e ss E s c ap e t o q ui t . m a y q u it a t a n y t i m e - t he f i le w il l a lw a y s b e up d a te d .

Y ou

TBddemo When TBddemo runs on matrix touchscreens, the options which are no longer relevant are displayed in low intensity. These options may still be used, although the resulting API calls are ignored by matrix versions of TBdriver.

Read Touches API Call For matrix touchscreens the read touches API call returns the TBdriver pad number in DX and the hardware pad number is returned in DI.

C-5

Page 166

VRC 4000 Software Driver Manual

C-6