locked
calibration program RRS feed

  • Question

  • Hi,

     

    I am working in C# for Windows CE and i want to begin making a calibration screen.

    i was thinking maby there is something prepared, a program that i can run that will load the results to the registry or to file that i can read from another program later. 

     

    if not i would be happy for some pointers for doing it the best way

     

    Thx in Advanced

    Ran.

    • Moved by Leo Liu - MSFT Tuesday, February 15, 2011 7:43 AM Off-topic, moved for better support. (From:Visual C# General)
    Sunday, February 13, 2011 3:18 PM

Answers

  • you can simply invoke the following API from your application, it will calibrate your touch sreen and store it on registry

    TouchCalibrate()

    http://msdn.microsoft.com/en-us/library/ee481922.aspx

    The calibration values are stored in the following registry settings

    [HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\TOUCH]
    "CalibrationData"="504,507 753,258 749,755 223,755 268,258 "


    Vinoth.R http://vinoth-vinothblog.blogspot.com http://www.e-consystems.com
    • Marked as answer by Jesse Jiang Wednesday, February 23, 2011 9:43 AM
    Tuesday, February 15, 2011 9:19 AM

All replies

  • I think you need to be less vague.

    What are you calibrating?

    What information do you want to save/load?

    What file format are you going to be saving to?

     

    Sunday, February 13, 2011 3:53 PM
  • First of All you Query is not understandable to me.

    Second For you Kind Info there is no Pointer in c#


    Microsoft Community Contributor 2011
    Sunday, February 13, 2011 6:36 PM
  • techmania, I think by "pointers" he means advice not pointers in the programming sense
    Sunday, February 13, 2011 7:17 PM
  • LOL by pointers i mean advice

     

    i am only vague because the subject is a little vague

     

    i am translating RS232 into touch screen taps, it is working quite well but i need to calibrate the points. that means that if RS232 gives x = 30, y=200

     

    i would need to use a calibration formula that goes something like:

    X = (x-X1)*X2

    Y = (y-y1)*Y2

    when X1,X2,Y1, Y2 are given by the calibration process

     

    i guess i can make my own calibration screen but i am also guessing there is already something prepaired. 

    my thoughts on the subject is that there is already a touch-screen calibration screen that i can adopt that might place the results on the registery that i can then use

    Monday, February 14, 2011 1:14 PM
  • you can simply invoke the following API from your application, it will calibrate your touch sreen and store it on registry

    TouchCalibrate()

    http://msdn.microsoft.com/en-us/library/ee481922.aspx

    The calibration values are stored in the following registry settings

    [HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\TOUCH]
    "CalibrationData"="504,507 753,258 749,755 223,755 268,258 "


    Vinoth.R http://vinoth-vinothblog.blogspot.com http://www.e-consystems.com
    • Marked as answer by Jesse Jiang Wednesday, February 23, 2011 9:43 AM
    Tuesday, February 15, 2011 9:19 AM
  •  

    Hi Prog,

     

    I'm very interested in hearing more about your issue, did you solve your problem?

    If so please share the solution with us and mark the right answers.

    If not please let me know and I will tray to help you find further solutions.

     

    Have a nice day!

    Jesse


    Jesse Jiang [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Thursday, February 17, 2011 6:22 AM