Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Could someone please post the code for writing the ICAO to the Offset C800 and reading back the Metar.

I can read the metar using mine, but it always the aircraft location, never the ICAOs.

Attempting to set the offsets:

Dim weatherICAO As Offset(Of String) = New FSUIPC.Offset(Of String)("WeatherGet", &HC800, 8)
Dim weatherfsx As Offset(Of String) = New FSUIPC.Offset(Of String)("Weatherfsx", &HB800)

Attempting to write and read (the read works, but always returns Aircraft location Metar):

Dim weather As String
        weatherICAO.Value = txtDepICAO.Text
        FSUIPCConnection.Process("WeatherGet")
        FSUIPCConnection.Process("Weatherfsx")
        weather = weatherfsx.Value
        MessageBox.Show(weather)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.