Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Working in VB .NET...

After calling a read function and a process function in FSUIPC Shell, where is the read offset value stored?

I worked with the VB .NET example in the FSUIPC SDK last night. The app seemed to be talking properly with FSUIPC, but I couldn't figure out how to retreive the offset value after doing the read.

Also, what's the proper method for passing the offset variables to the read function? Example code is appreciated!

Thanks,

Pat Dotson

Posted

You have to call Process()...

            FSUIPCConnection.Open()
            Dim airSpeed As Offset(Of Integer) = New FSUIPC.Offset(Of Integer)(&H2BC)
            FSUIPCConnection.Process()
            Me.txtIAS.Text = airpeedKnots.ToString()
        FSUIPCConnection.Close()

Something to that effect...

Posted

I was able to do what I needed using FSUIPC and the FSUIPC VB .NET library created by Paul Henty.

Coding using the VB .NET library and example is a piece of cake. You can even download an "Express" version of Visual Studio VB from Microsoft for free! I was able to get FS9 talking to my motion control hardware within an hour or two. After about six hours of work total I had everything working satisfactorily.

Thanks Paul and Pete for all your work!

Pat Dotson

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.