MagTek Device Drivers for Windows

POWER BUILDER EXAMPLE

The following example illustrates how to set up PowerBuilder (from Sybase) to read magnetic data from the IntelliPIN device. Since PowerBuilder does not interface to a serial port very easily, a third-party OCX is required. The first part of this application note shows how to load an ActiveX component. The main program script shows how to interface with the OCX, the MTD Windows Driver, and the MagTek device (in this case the IntelliPIN).

The following communication ActiveX components are available for use with PowerBuilder:

Product

Company

Web Site

Phone

IO ActiveX Control

Software Island

members.aol.com/easyio

N/A

Comm Library

EllTech

elltech.com

800-227-8047

COMM-DRV/LIB

WCSC

www.wcscnet.com

800-966-4832

In our example, we have chosen “IO ActiveX Control” from Software Island. Here is a method that can be used to install this component:

1.In a PowerBuilder application, open a new window.

2.From the “Controls” dropdown menu, select “OLE”.

3.From the “Create New” tab, select the intended OCX, for example, “IO Control”. (It is assumed that the OCX has already been registered by installing it according to the manufacturer’s directions.) Then click “OK”.

4.Left click anywhere on the open window and drop the component onto it.

5.Right click on the newly installed component and select “Properties”. Enter “mtd” into the “Name” text field. Enter “MTD OCX” into the “Display Name” and “Tag” text fields. Click “OK”.

6.Right click anywhere on the window outside the new component then select “Properties”. Enter “ole_io” into the “Title:” text field. Deselect the “Visible” check-off box so the window will not be shown then click “OK”.

7.Right click anywhere on the window outside the new component then select the “Script” option. Insert the following script into the “ole_io” window.

//////////////////////////////////////////////////////////

//

Window Script to

load OCX for Mag-Tek Driver.

//

//

This is the script for the invisible window that

//

//

contains the OLE

object.

//

//////////////////////////////////////////////////////////

integer result

result = mtd.object.Open("COM5:", "")

//COM5 is the virtual port name which was automatically

//assigned to IntelliPIN RS-232 Driver upon installation.

//It may be different for your installation.

if result < 1 then MessageBox("Open Read",result) return 0

END if

136

Page 139
Image 139
Elo TouchSystems 1525L manual Power Builder Example, 136

1525L specifications

The Elo TouchSystems 1525L is a highly regarded touch screen monitor that combines advanced technology with user-friendly design. Featuring a 15-inch display, this monitor is the ideal solution for a diverse range of applications, from retail point-of-sale systems to interactive kiosks and industrial control setups.

One of the standout features of the Elo 1525L is its intuitive touch technology. The monitor employs Elo's patented surface wave technology, which allows for precise touch response and true multi-touch capabilities. This ensures that users can interact with the screen effortlessly, whether they are using their fingers or a stylus. The result is a highly responsive and engaging user experience, making it an ideal choice for environments that require frequent user interaction.

The display offers a bright and vibrant LED-backlit screen with a resolution of 1024 x 768 pixels. The 5-wire resistive touchscreen provides excellent optical clarity and durability, making it perfect for high-traffic areas. Additionally, the anti-glare surface minimizes reflections and enhances visibility under various lighting conditions, ensuring that content remains clear and legible.

In terms of connectivity, the 1525L boasts considerable flexibility with a range of interfaces including USB, VGA, and HDMI options, allowing it to easily integrate with existing systems. This versatility makes it adaptable for a variety of applications, whether in retail, hospitality, or industrial settings.

Durability is a hallmark of the Elo 1525L, with a rugged design that includes a scratch-resistant surface and a robust casing. It is engineered to withstand the rigors of everyday use, prolonging its lifespan and ensuring reliability in demanding environments. The monitor also has a sealed design that protects against dust and spills, which is especially important in food service and industrial applications.

Furthermore, the Elo TouchSystems 1525L is designed with ergonomics in mind. It offers various mounting options that include VESA compatibility, enabling easy integration into different setups while ensuring comfort and ease of use for operators.

In conclusion, the Elo TouchSystems 1525L is a versatile, durable, and highly responsive touch screen monitor that serves a multitude of professional applications. With its advanced touch technology, robust build quality, and wide array of connectivity options, it stands out as a reliable choice for businesses looking to enhance interactivity and user engagement.