Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Mar 9th, 2006, 11:50 AM   #1
GuinnessGuy74
Newbie
 
Join Date: Mar 2006
Posts: 3
Rep Power: 0 GuinnessGuy74 is on a distinguished road
Can Python.....

I am looking for advice on a language. Before you think this is a general noob question, let me finish. I am not looking for advice on "which" language to learn. Just general capabilities......

I have finished building a AD-AHRS. An Air/Data- Altitude Heading Reference System, which is a device used to measure changes in Altitude and heading by using accelerometers, gyros, and interfaced GPS.

I am looking to learn a language which can implement this into a Graphical Display (HUD), by interfacing with the hardware and outputing the graphics to a screen. The Graphics can be very very simple or more advanced using OpenGL (3D terrain mapping, etc).

I am in no rush here so I am not looking at learning a language in 1 month to implement my design. I have been looking at Python and it seems like a very simple language to learn.

I am just wondering about the abilities of the language and whether or not Python would be a good fit for this or not. I only mention my project because after reading a hundred forums, everyone always asks about which language to learn. Afterwhich most everybody replies "it depend on what you want to do...."

Would I be better with a compiled language or will an interpreted language be fine. Again, this isn't a very advanced display, just simple dipslays on the screen showing the data output from the AD-AHRS.

I appreciate all of your input. Thanks for the help!

Jim
GuinnessGuy74 is offline   Reply With Quote
Old Mar 9th, 2006, 12:18 PM   #2
MBirchmeier
Hobbyist Programmer
 
Join Date: Oct 2005
Posts: 211
Rep Power: 3 MBirchmeier is on a distinguished road
The main graphical libraries I've tried to use with Python were WxWidgets. I tried using them and got rather frustrated, and decided to go with a different interface, but perhaps you'll have better luck with them. That's about all I can offer on that subject.

-MBirchmeier
MBirchmeier is offline   Reply With Quote
Old Mar 9th, 2006, 12:27 PM   #3
Cerulean
Professional Programmer
 
Cerulean's Avatar
 
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4 Cerulean is on a distinguished road
Depends on how the hardware is being interfaced with. Not sure if Python would be low-level enough to be considered a good choice for hooking up to hardware (without an extension in C/C++, that is).
Cerulean is offline   Reply With Quote
Old Mar 9th, 2006, 1:02 PM   #4
GuinnessGuy74
Newbie
 
Join Date: Mar 2006
Posts: 3
Rep Power: 0 GuinnessGuy74 is on a distinguished road
Thanks......

Thanks for the advice. I have no idea about Hardware-Software interfacing, therefore I would have to use what ever the language supported. From the sound of your reply, it looks like maybe I should stick to a language like C or C++. Although they dont appear to be as easy to learn as Python, I am not, as I said before, in any kind of rush. This is purely a hobby project so I can take the time to learn what I need.

Any more advice is greatly appreciated. Thanks a ton....

Jim
GuinnessGuy74 is offline   Reply With Quote
Old Mar 9th, 2006, 1:05 PM   #5
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
I think some more information about the hardware would be needed before any useful advice could be given. Ideally, it would be nice to know:

1. What system is the AD-AHRS interfacing with (a desktop PC? A handheld? Some custom system?)
2. What the operating system is (Linux? Unix? Windows? Something else?)
3. By what method the AD-AHRS is interfacing with the system (USB? Serial? Morse Code?).
Arevos is offline   Reply With Quote
Old Mar 9th, 2006, 1:31 PM   #6
GuinnessGuy74
Newbie
 
Join Date: Mar 2006
Posts: 3
Rep Power: 0 GuinnessGuy74 is on a distinguished road
Great point Arevos.....thanks for the reply.

I will using a miniture form PC to interface (to keep it small enough). Most likely a Linux OS (most likely on a flash drive or Disk-OnChip) to eliminate overhead and for fast performance (i.e. bootup). I was thinking about using PC 104 for the interface, but Ethernet is a possiblity. There are a number of data aquisition boards out there, so I am really open as to how I interface.


Thanks again, and if you need any more info please let me know!

Jim
GuinnessGuy74 is offline   Reply With Quote
Old Mar 9th, 2006, 3:14 PM   #7
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
It seems to me that the majority of your programming work is going to be developing the interface between the AD-AHRS and your system, and this would indicate that most of the work would be fairly low-level. It seems as if you'd be better off with C or C++.

There's always the possibility of splitting the workload between Python and C, with Python handling the higher level control structure and C handling the low level interfaces. Tools like SWiG make it rather simple to integrate the two languages.

That all said, there's no point in using a circular saw just because you have one lying around. Python may not be suited for any part of this project.

I suggest researching what open source libraries are available to communicate over PC 104, and in what languages they are in. The tools that you require will likely shape what language you will end up using. Start by building up a general interface to the AD-AHRS and once that is done, evaluate your options for displaying the data the AD-AHRS returns.

Both Python and C/C++ have plenty of graphics libraries, so you shouldn't want for tools on that end, at least.
Arevos is offline   Reply With Quote
Old Mar 9th, 2006, 3:57 PM   #8
Silvanus
Hobbyist Programmer
 
Silvanus's Avatar
 
Join Date: Aug 2005
Location: Hiding from... them...
Posts: 110
Rep Power: 4 Silvanus is on a distinguished road
In addition to what Arevos said, it sounds like you have something of a space/memory constraint. The higher level your language choice, the more will be used.
__________________
:wq
Silvanus is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 9:48 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC