> Computers > Programming
Various Topics Home | Disclaimer | Report Adult Posts

Various Topics on Programming



Programming - "interface" in Computers


Old 06-17-2007   #1
..usep..
 
Default interface

For Interface Electronic device with computer (serial, parallel, usb ports)
what is better programming language?

begi


 
Old 06-17-2007   #2
..lk.. ..abs..
 
Default Re: interface

giuseppe <begi2010@gmail.com> schrieb:
> For Interface Electronic device with computer (serial, parallel, usb ports)
> what is better programming language?


For low level communication C is a good choice, but for other
languages you'll find suitable libararies, too.

It depends more on what your application should do. If you're
having a lot of number crunching, or a lot of 3D rendering, Ocaml
might be a good choice. If you need a really good GUI, Python
(with pyGTK) will save you a lot of work. For a CGI web interface,
any language will be suitable.

But as always, there are many, many possibilities. Don't make
your choice depending on that small part of the program which
communicates to your device. Look at the whole application and
decide for that.

Maybe it is a good idea to tell us something about your whole
project. Otherwise, any advise will be no more than a guess.


Greets,

Volker

--
Volker Grabsch
---<<(())>>---
Administrator
NotJustHosting GbR
 
Old 06-17-2007   #3
....
 
Default Re: interface

Thanks for your immediately reply.
what do you think of C++ as language for speak with electronics device?
I would like create software with visual c++ for read and write electronics
board (medical instruments).

begi

"Volker Grabsch" <volker_grabsch@v.notjusthosting.com> ha scritto nel
messaggio news:slrnf7af2h.o33.volker_grabsch@localhost.local net...
> giuseppe <begi2010@gmail.com> schrieb:
>> For Interface Electronic device with computer (serial, parallel, usb
>> ports)
>> what is better programming language?

>
> For low level communication C is a good choice, but for other
> languages you'll find suitable libararies, too.
>
> It depends more on what your application should do. If you're
> having a lot of number crunching, or a lot of 3D rendering, Ocaml
> might be a good choice. If you need a really good GUI, Python
> (with pyGTK) will save you a lot of work. For a CGI web interface,
> any language will be suitable.
>
> But as always, there are many, many possibilities. Don't make
> your choice depending on that small part of the program which
> communicates to your device. Look at the whole application and
> decide for that.
>
> Maybe it is a good idea to tell us something about your whole
> project. Otherwise, any advise will be no more than a guess.
>
>
> Greets,
>
> Volker
>
> --
> Volker Grabsch
> ---<<(())>>---
> Administrator
> NotJustHosting GbR



 
Old 06-18-2007   #4
..lk.. ..abs..
 
Default Re: interface

begi <begi2010@gmail.com> schrieb:
> Thanks for your immediately reply.
> what do you think of C++ as language for speak with electronics device?


That's also a good choice.

> I would like create software with visual c++ for read and write electronics
> board (medical instruments).


I strongly recommend using a free compiler (e.g. GCC) and developing
under a unix-like environment. Otherwise you won't be able to write
portable code. Even when you are developing under Windows, you might
want to take a look at MSYS/DevC++ or Cygwin. It's also generally a
good idea to use a portable GUI-toolkit such as GTK, Qt or wxWidgets.
Don't mess around with the Windows API.

For communicating with an external device it's also usually a good
idea to split your program into a command line tool which does most
of the work, and a GUI that uses this tool.

Otherwise you'll write yet another windows-only GUI+logic-mangled
hard-to-test absolute-positioned-GUI application that will satisfy
its initial purpose but won't be usable for any other application
or any other operating system. Don't give up that freedom just
because you only know Visual C++. Learn more. The restrictions
you are setting up now will hurt you in the future.


Greets,

Volker

--
Volker Grabsch
---<<(())>>---
Administrator
NotJustHosting GbR
 

Thread Tools
Display Modes





Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0