LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DLL control of a touch screen monitor using UPDD driver

Hello. I have a Nexia touchscreen monitor that is being driven by the UPDD driver (http://www.touch-base.com/).

The company provides a SDK and API (http://www.touch-base.com/documentation/SDK.htm).

I am trying to impliment these by calling the DLL in labview (2012). A list of API functions can be found here: http://touch-base.com/documentation/API-Functions.htm

 

So far I can call simple ones such as   TBApiInit() and  TBApiOpen() as well as enable and disable the pointer interface with TBApiMousePortInterfaceEnable.

 

My issues begin when I try to use TBApiGetRelativeDevice (http://touch-base.com/documentation/apifunctions/tbapiGetRelativeDevice.htm).

I cannot figure out the structure or data types I need as keep crashing labview or getting errors.

From that site an example is given...

Visual C++ Declaration/example

 

HTBDEVICE TBAPI TBApiGetRelativeDevice(int o);

 

// Gets the first device on the system, you can use

HTBDEVICE device = TBApiGetRelativeDevice(0);

 

I have tried to make the HTBDEVICE a U32, string, as well as every other datatype and thus far none work.

Any help or suggestions would be appriciated.

 

JEFF

 

0 Kudos
Message 1 of 2
(2,638 Views)

Hey Jeff,

 

A screenshot of the error or an error code could be useful in this case. Can you please provide that?

 

Also maybe provide a screenshot of your code so we can see how you're calling into this API.

 

Nathan Murphy
0 Kudos
Message 2 of 2
(2,592 Views)