Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Program Announcements / Brzdy - software

Author
Message
wh1sp3r
20
Years of Service
User Offline
Joined: 28th Sep 2003
Location: Czech republic
Posted: 24th Oct 2008 13:51 Edited at: 24th Oct 2008 20:27
Hello
This is not game, but Its program made by DarkBasic pro.


Image in JPG has strange colors

Its diagnostic software for measuring pressures in breaking system of trucks and trailers. It calculates all important values like differential pressures, maximal pressures, and lots of others.

I would like to say THANK YOU this way to:
zog (DarkInk - for printing graphs with parameters)
Cattleruster (SERIAL PORT support - for communicating with my module)
and Rob K for Blue GUI

Paul.

EDIT: title name is in czech language, in english, it means "Breaks - software"

PS: Real programmers aren't afraid of math!.

AMD 64x 3500+, 6GB RAM, GeForce 8800 GTS 320MB, HD 500GB, X-fi xtreme audio

Attachments

Login to view attachments
Satchmo
18
Years of Service
User Offline
Joined: 29th May 2005
Location:
Posted: 24th Oct 2008 15:53 Edited at: 24th Oct 2008 15:54
Looks very professional. First kind of program like this I've seen in Dbpro.

wh1sp3r
20
Years of Service
User Offline
Joined: 28th Sep 2003
Location: Czech republic
Posted: 24th Oct 2008 16:01
Satchmo: Thank you !

Yes, Actually, dark basic pro is really easy to make similar applications, I like basic language. I choosed DBPRO, because, I can quickly make program like this. I was choosing between dbpro, purebasic and c++.

I have seen few people on this forum, they are using DBPRO for 3D simulation of robot or other elektronic systems, which are communicating over serial port or USB.

PS: Real programmers aren't afraid of math!.

AMD 64x 3500+, 6GB RAM, GeForce 8800 GTS 320MB, HD 500GB, X-fi xtreme audio
tiresius
21
Years of Service
User Offline
Joined: 13th Nov 2002
Location: MA USA
Posted: 24th Oct 2008 18:43
That's cool. Is the graph a DirectX surface or are you using the Canvas gadget from BlueGUI?

I'm not a real programmer but I play one with DBPro!
wh1sp3r
20
Years of Service
User Offline
Joined: 28th Sep 2003
Location: Czech republic
Posted: 24th Oct 2008 20:15
tiresius: I am using Canvas gadget from blugui

PS: Real programmers aren't afraid of math!.

AMD 64x 3500+, 6GB RAM, GeForce 8800 GTS 320MB, HD 500GB, X-fi xtreme audio
wildbill
18
Years of Service
User Offline
Joined: 14th Apr 2006
Location:
Posted: 25th Oct 2008 17:54
Thats really good. A friend of mine has seen a program I was making in DBPro to communicate with a processor for a ROV. He asked me if I could do something similar to your program to measure fuel and oxygen sensors for cars. So he could get the right mixture. So we are actually starting next week.

I have all the programs you mentioned and was going to use Blue or Purebasic to do it. Can you give some tips on the making of your graph with the canvas gadget?
wh1sp3r
20
Years of Service
User Offline
Joined: 28th Sep 2003
Location: Czech republic
Posted: 25th Oct 2008 18:49
wildbill:

so,
1. draw ruler

You know the size of canvas, you know, how many division lines you need, so Its simple to calculate, where you must draw a lines.

width of canvas = 500
we need 100 division lines.

500/100 = 5 .. so, space between lines is 5 pixels.

for a = 0 to 100 step 5
line 0+a, y position, 0+a, y position+5
next a

is it clear ?

2. you must convert your values, because, 0,0 point is on left top of canvas but we need it left down again, simple mathematics.

0,0 is at 10,400
where is 10,10 ? at 20, 390, so ? x axis is ok, but Y axis must be recalculated. 400 - 10 = 390


3. and last thing, I am using multi array .. for example GRAPH(1000).something, so you can save value every 10 ms.

drawing graph is simple too, you can use for-next and draw every data in an array.

for me, the most hard part of this was programming with matices yes, i have used matices for some calculations, horrible, terrible

PS: Real programmers aren't afraid of math!.

AMD 64x 3500+, 6GB RAM, GeForce 8800 GTS 320MB, HD 500GB, X-fi xtreme audio
wildbill
18
Years of Service
User Offline
Joined: 14th Apr 2006
Location:
Posted: 25th Oct 2008 18:56
Thanks for the info. I'll put it to good use.
I know about the inverted X axis, I have had to do that with 3d to 2d calculations for a radar I made.
wh1sp3r
20
Years of Service
User Offline
Joined: 28th Sep 2003
Location: Czech republic
Posted: 25th Oct 2008 18:59
wildbill: when you finish your project let's show me, what you have

PS: Real programmers aren't afraid of math!.

AMD 64x 3500+, 6GB RAM, GeForce 8800 GTS 320MB, HD 500GB, X-fi xtreme audio

Login to post a reply

Server time is: 2024-04-26 05:01:54
Your offset time is: 2024-04-26 05:01:54