Jump to content
The simFlight Network Forums

Recommended Posts

I've had a quick look at John's WASM C DLL and have successfully connected to it from my .net DLL.

Over the next few days I will add a proper module to my dll that will (hopefully) allow fast access to LVars and HVars.

The only potential problem is that I don't have MSFS so I can't test or debug anything here.

I'll post here again when a beta is ready for testing.


Link to post
Share on other sites

Hi Paul!

It looks promising! thanks!  but it's not working as intented or I'm doing something wrong:

WASM module is installed, executed John's client to test:


But after INIT inside .NET:




Link to post
Share on other sites

You need to call Start() sometime after Init(). Sorry, I completely left that out of the other post. I'll go and fix it now.

If you're using LVars as well then you'll also need to call RefreshData() periodically to get the latest values.


  • Thanks 1
Link to post
Share on other sites



With an Start and Reload just after INIT,  it didn't get Hvars, but I've put another Reload after a button click and it worked fine! so it must be some time after initialization . It's reload needed? maybe if preconfigured refresh rate time passed it's not.







Link to post
Share on other sites


John has confirmed that the delay between calling Reload() and the HVars being available is to be expected. It takes time for the WASM module to gather the data from the files and do it's housekeeping. A few seconds should be enough.

I'll update the documentation to make this clear.

By the way, Start() called Reload() internally so you shouldn't need to call it yourself.

Another point John raised is that there can also be a delay between writing a new LVar value and that value being set in the sim and read back by the WASM module. Because of this I'll need to change the value setting to be on a method (SetValue) instead of setting the value property.



Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • 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.