Hi all,

Apologies in advanced as I'm just learning simconnect and VB.NET. I can read other information from FSX but not anything of type 'bool. I'm trying to get the GENERAL ENG FUEL PUMP ON but just get 0 even when the pump is 0 (zero)??? Any help would be great! Many thaks - Chris

' Set up all the SimConnect related data definitions and event handlers

AddHandler fsx_simconnect.OnRecvOpen, New Microsoft.FlightSimulator.SimConnect.SimConnect.RecvOpenEventHandler(AddressOf fsx_simconnect_OnRecvOpen)

AddHandler fsx_simconnect.OnRecvQuit, New Microsoft.FlightSimulator.SimConnect.SimConnect.RecvQuitEventHandler(AddressOf fsx_simconnect_OnRecvQuit)

REM listen to exceptions

AddHandler fsx_simconnect.OnRecvException, New Microsoft.FlightSimulator.SimConnect.SimConnect.RecvExceptionEventHandler(AddressOf fsx_simconnect_OnRecvException)

REM define a data structure, note the last parameter, datumID must be different for each item

StructureDefinitions.Struct1, "GENERAL ENG FUEL PUMP ON", "bool", Microsoft.FlightSimulator.SimConnect.SIMCONNECT_DATATYPE.FLOAT32, 0, 0)