All Forums
 Microsoft Windows CE
 CE Drivers
 Initiating tp calibration programmatically
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Author Topic  

KnowledgeBase

296 Posts

Posted - 26 Feb 2002 :  15:21:43  Show Profile  Email Poster
Q: How can I initiate a touch panel calibration through software?

See the update below for current recommendations.
There are several ways to do this. For portability of your application across ADS builds of CE, we recommend that you call \windows\ForceCal.exe.

For further reading about touch panels on ADS products, see the touch panel topic index.

------------------
ADS Knowledge Base

Edited 27-dec-2002 by akidder: Update \windows\calibrate.exe to \windows\ForceCal.exe. Remove requirement that "CalibrationData" registry key from [HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\TOUCH] be deleted.
Edited 7-Dec-2006 by akidder: Strike ForceCal information and refer to link below.

Susan

123 Posts

Posted - 11 Sep 2003 :  07:53:47  Show Profile  Email Poster
BitsyX 4.10.23, 1.07

Changed all CreateProcess calls from \windows\calibrate.exe to \windows\ForceCal.exe. CreateProcess returns error code 0x2 - ERROR_FILE_NOT_FOUND
Go to Top of Page

ctacke

877 Posts

Posted - 11 Sep 2003 :  09:57:18  Show Profile  Email Poster
#TouchCalibrate

Update: TouchCalibrate() API

Instead of calling ForceCal.exe, it is often simpler to just call the system TouchCalibrate() API, which will present the calibration screen. TouchCalibrate is exported by coredll.dll and can be easily added to your code like this:


// declaration
extern "C" BOOL TouchCalibrate(void);

...

//use
TouchCalibrate();

Go to Top of Page

pacsciinst

15 Posts

Posted - 02 Sep 2005 :  15:19:22  Show Profile  Email Poster
Hello:

When using TouchCalibrate(), does it automatically persist the new registry settings for the touchscreen, or should one programatically flush the registry?

Thanks
Go to Top of Page

akidder

1519 Posts

Posted - 06 Sep 2005 :  14:19:48  Show Profile  Email Poster
Persistence is automatic. Older systems save to adsload.reg; newer CE builds will save calibration to the hive-based registry.
Go to Top of Page

jeffyech

22 Posts

Posted - 13 Feb 2008 :  12:21:23  Show Profile  Email Poster
How would I force a new calibration through adsload.reg?
Go to Top of Page

ljoy

22 Posts

Posted - 13 Feb 2008 :  16:58:40  Show Profile  Email Poster
Calibration data was stored in ADSLOAD.REG only in older systems. In your newer system, a new calibration can't be forced from ADSLOAD.REG. To force a new calibration, put an application into one of the \Startup folders. Sample code can be found at Topic 1004.
Go to Top of Page

Susan

123 Posts

Posted - 14 Feb 2008 :  06:02:38  Show Profile  Email Poster
Linda,

Please define 'newer system'. Where is the cutoff point? Which systems/boards? I'm not only concerned with the boards that we are currently using, but also any to which we may consider migrating.

Thank you.
Go to Top of Page

ljoy

22 Posts

Posted - 14 Feb 2008 :  10:50:07  Show Profile  Email Poster
The switchover from RAM-based to Hive-based registries occurred during 2005. See Topic 1469 for general details. You can also look at the CE files page for specific devices of interest.
Go to Top of Page

beitman

63 Posts

Posted - 14 Feb 2008 :  13:09:27  Show Profile  Email Poster
To clarify you can look at your system to determine if it is using HIVE registry.

If your system has the "FlashFX Disk\Documents and Settings\" folder, then it includes HIVE registry and would fall under the 'newer system' for this discussion.
Go to Top of Page
  Topic  
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Jump To:
Eurotech Support Forums © Eurotech Inc. Go To Top Of Page
This page was generated in 0.03 seconds. Snitz Forums 2000