Sign in with
Sign up | Sign in
Your question

What programming language should I learned for interacting touch devic

Last response: in Applications
Share
October 18, 2012 7:03:13 PM

Hello Guys, Im 2nd year Electronics engg student, Im building a hardware setup that consist of a frame which can be hook up with any LCD,and when I touch any area of LCD screen, It would generate X and Y coordinates in digital format, But I dont know how I feed these inputs to PC, and how I program to control the mouse pointer . What programming should I learned. I only know little about C and java. If somebody help me, it would be appriciable. Thank u
October 18, 2012 7:54:39 PM

So are you building everything from scratch, or are you using some kind of touch screen kit? Because in the latter case, you'd probably be provided with an SDK that would make the decision for you.
m
0
l
October 19, 2012 3:41:10 PM

What platform are you working with?

Windows uses C++, so if you're planning on using said touch interface with a windows based platform, I believe it would be C++.

Linux is written in a few languages, but C would be a good place to start...

Regardless, you'll need more than a 30 minute programming crash course in programming to start writing drivers. You mentiond being an Electrical Engineering student? Get in touch with a few of the programming teachers at your school, talk to them about writing drivers for the device. And keep in mind that it will be platform specific. A Windows Driver will not work for a Linux or UNIX based OS, nor will it work on the Mac OS(s). Personally, I'd recommend going for windows based drivers, with all the hype about Win 8 being good for touchscreen, combined with the fact that to my knowledge, MS Windows OSs hold the largest market share worldwide (someone feel free to correct me if I'm wrong)

Good Luck! :D 
m
0
l
Related resources
October 20, 2012 10:54:30 AM

Thanks manicmike. :) 
your suggestion about programming is really encouraging,
Do you know any site which provide me a tutorial for writing drivers in windows???
If u know , then plz send me the link, it would e a really kind of u....... :ange: 
m
0
l
October 20, 2012 11:04:17 AM

cl-scott said:
So are you building everything from scratch, or are you using some kind of touch screen kit? Because in the latter case, you'd probably be provided with an SDK that would make the decision for you.


Sir, Im building every thing from scratch, Im using IR TX/Rx and digital X-Y co-ordinate data r created by an AVR microcontroller , I can fed these inputs to PC using USB , serial or parallel port, after this I dont knoww anything how to get the data and control the pointer.Sir i wanna tutorial for such programming in Windows platform, thanks
m
0
l
a b L Programming
October 20, 2012 11:10:02 AM

Given those choices, data received via the serial port is probably the easiest to handle. Here is a paper that describes the basics of accessing the serial port in a Windows environment: http://www.robbayer.com/files/serial-win.pdf . No doubt Google will show you more information.

You will need to use C for the programming. (It's possible to access the Windows API from other languages, but C is going to be easiest.)
m
0
l
October 20, 2012 2:32:03 PM

If you know Java, I suggest looking into MT4J (Multi-touch for Java). It's a framework that coincides with Java (obviously), I believe it's free and comes with a lot of documentation, and you can use an IDE like eclipse to program with it.

Hope that helps.
m
0
l
October 21, 2012 10:33:16 AM

Ijack said:
Given those choices, data received via the serial port is probably the easiest to handle. Here is a paper that describes the basics of accessing the serial port in a Windows environment: http://www.robbayer.com/files/serial-win.pdf . No doubt Google will show you more information.

You will need to use C for the programming. (It's possible to access the Windows API from other languages, but C is going to be easiest.)



Thanks for ur great link n suggestion. Now I've understood What I've to do...
Thanks again
m
0
l
!