PDA

View Full Version : Newbie question - Simconnect Stall Warning in VB



FlightSimJJL
06-01-2012, 09:45 PM
I am ready to admit that I don't know enough about programing and therefore I am begging for help.
I cant seam to be able to extract stall warning state from FSX
Or anything with a Boolean value for that matter.
Is my code correct?

fsx_simconnect.AddToDataDefinition(DEFINITIONS.Struct1, "Stall Warning", "Bool", SIMCONNECT_DATATYPE.FLOAT32, 1, 11)

Please help !!!!!!

Jim NZ
06-01-2012, 11:10 PM
Have a look at the various "demo" source code examples in ,,,
http://www.jimspage.co.nz/fsxfs9inouts.htm
The VB.net one has a bool in it.

Also do a google using,,
FSX simconnect "source code"
Happy reading.


Note:
As this thread has nothing to do with what we chat about in here, it will be deleted shortly.
Jim NZ

FlightSimJJL
06-02-2012, 10:22 AM
Thank you
I figured it out today, It wasn't the code but the airplane.
It worked on Cessna but not on LJ45.....