Search the archive:
YaBB - Yet another Bulletin Board
 
   
 
Page Index Toggle Pages: 1
Send Topic Print
Visual Basic External Gauges with FSUIPC (repost) (Read 4091 times)
Oct 23rd, 2003 at 9:49pm

JBaymore   Offline
Global Moderator
Under the curse of the
hombuilt cockpit!

Gender: male
Posts: 10261
*****
 
This is a starting point for moving prior postings from the "Homebrew Cockpits Survey" thread. Messages will likely get out of the original sequence.
 

... ...Intel i7 960 quad 3.2G LGA 1366, Asus P6X58D Premium, 750W Corsair, 6 gig 1600 DDR3, Spinpoint 1TB 7200 HD, Caviar 500G 7200 HD, GTX275 1280M,  Logitec Z640, Win7 Pro 64b, CH Products yoke, pedals + throttle quad, simpit
IP Logged
 
Reply #1 - Oct 23rd, 2003 at 9:53pm

JBaymore   Offline
Global Moderator
Under the curse of the
hombuilt cockpit!

Gender: male
Posts: 10261
*****
 
Major Simulated Cockpit Programming Breakthrough Tonite

I plan on utilizing a bunch of "glass cockpit" features in my homebrew cockpit.  This basically means that you "hide" a monitor behind a wood or plastic panel and cut holes in the wood/plastic surface thru which you can see "gauges" that are actually on a monitor screen.  This cuts the cost of stand alone "instruments" and the associated I/O interface cards dramatically.

I am using a registered version of FSUIPC and WideFS to put the glass cockpit system onto a network that will "run" the cockpit.  I have also downloaded the FSUIPC SDK and have been looking at it with an eye toward developing some possible custom stuff.

There are a couple of well developed "freeware" glass cockpit setups out there that I have found so far.  Right at the moment I am "partial" to likely using FreeFD in my setup.  However...... while it certainly is GREAT as it sits....... there are some functions that I can envision that I want to implement that it does NOT (yet) have.  Since I am creating a "generic" cockpit...... I don't have to have exact Boeing or Airbus displays.

I also own the Visual Basic 6.0 professional development package....since I have written some very basic programs for my business.  In the FSUIPC SDK there is information about developing programs to interface with FS200X and FSUIPC in Visual Basic.  Great.

So I played around tonight to see if I could figure out how to get real time infomation out of FS2004 using FSUIPC and VBasic.  There is a great set of VB modules supplied in the SDK by Chris Brett that set the groundwork for accessing data.  That level of programming would take me a LOT of time to arrive at if I ever could have.  But it is there for you!

Making a not too long story even a bit shorter.......

I DID IT!


One example of a "glass cockpit "gauge" that I want to have available as a separate item was a square red "Stall Warning" light.  So I went in and using the docs.... found the hexadecimal address of the stall warning flag (1 byte at &H036C  with 0=OK  1=stall) in FSUIPC and wrote a short VB routine to definitively tell me that the plane is stalling.  It worked first try!  Smiley Cheesy Grin  The warning popped up in my little VB module just as the stick shaker started shaking and the stall warning light went off on the virtual aircraft panel.

This little test.........that took an amazingly little amount of time to actually figure out and write..... now shows me how relatively easy it will be to generate a lot of different types of glass cockpit gauges I might want.

I am NOT a highly skilled VB6.0 programmer.... if I can do it ........ most any "computer literate" person can learn to do this kind of stuff too.  The code by Chris Brett gets you pointed in the right direction.  (Thanks Chris!)

I'm pumped!


best,

....................john


PS:  You can download the FSUIPC SDK from Peter Dowson's site to take a "look see" for free........ even if you do not get a registered version of the FSUIPC program first.
 

... ...Intel i7 960 quad 3.2G LGA 1366, Asus P6X58D Premium, 750W Corsair, 6 gig 1600 DDR3, Spinpoint 1TB 7200 HD, Caviar 500G 7200 HD, GTX275 1280M,  Logitec Z640, Win7 Pro 64b, CH Products yoke, pedals + throttle quad, simpit
IP Logged
 
Reply #2 - Oct 14th, 2009 at 2:38pm

sboons   Offline
2nd Lieutenant
I Like Flight Simulation!

Posts: 1
**
 
Hi,

That sounds really great! I am planning to do exactly the same thing. I have a MIP and a screen behind it. At the point where my warninglights should be, there is only the background of my screen.

Would you mind sharing your code?

Thanks,
Steef
 
IP Logged
 
Reply #3 - Oct 17th, 2009 at 11:48am

JBaymore   Offline
Global Moderator
Under the curse of the
hombuilt cockpit!

Gender: male
Posts: 10261
*****
 
Steve,

Hi and welcome to both SimV and the Homebuilt Cockpits forum section.  Obviously you are reading thru the older threads for reference materials (October 2003 posting).

You know, I have changed to hardware long ago for that stuff (Phidgets) so I really don't even know where the code for that is anymore.  Likely it is in "bit heavenWink.

It didn't take me long to figure out how to withe that code.  So my advice would be to get the FSUIPC docs and dive in yourself.

best,

................john

 

... ...Intel i7 960 quad 3.2G LGA 1366, Asus P6X58D Premium, 750W Corsair, 6 gig 1600 DDR3, Spinpoint 1TB 7200 HD, Caviar 500G 7200 HD, GTX275 1280M,  Logitec Z640, Win7 Pro 64b, CH Products yoke, pedals + throttle quad, simpit
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print