Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Regards,

Maybe this topic has been addressed before; I would like to make a new FS internal Dll. I've seen that I have to use the library for FS Internal Users. Basically I need to create a loop where I'll read some FS data and I'll send this data over LAN every, I say, 10msec.

I've seen some spare code in C or C++ to implement a simple menu; was looking for an example to implement an Dll with a loop to repetitively read data and send this data over a media: RS-232, LAN, etc.

I guess is something similar to Pete's WideFS.

I don't know if this is the best way to do this, I mean, an internal Dll instead of an EXE file??

I've been thinking about how to implement this Dll, maybe creating a new thread or maybe a timer??

I guess using a new thread can degrade the performance??

I'm wondering how WideFS works??

Any ideas??

Thanks in advance for your time.

Posted
FS data and I'll send this data over LAN every, I say, 10msec.

100 times per second? I hope you have a fast processor, at least dual, and are good at programming multi-threaded.

I don't know if this is the best way to do this, I mean, an internal Dll instead of an EXE file??

It would be much easier for you as a separate process (i.e. EXE), as otherwise to have to be very careful to avoid impacting FS performance.

I'm wondering how WideFS works??

In several threads with different optimised priorities and hooks directly into FS for efficient, fast, data monitoring. And it only sends changes, not the same (mostly unchanging) information and certainly not every 10 mSec, but as it arises. (For FSX all this was integrated into FSUIPC, to avoid duplication).

Any ideas??

You might like to experiment first with the Lua plug-ins facilities in FSUIPC. Try the example provided which records data to a CSV file. Lua supports file I/O and therefore named pipes, so possibly you could use that technique for your networking.

Regards

Pete

Posted

Pete,

Thanks for your response; actually 10msec was an example, it will be more like 10 to 20 times per second.

Then, per your recommendations the best way is to write an EXE file instead of an dll; I think I could go the dll path, but I'll need a good understanding about the FS internal and performance in order to get something as good as your FSUIPC dll...it will take some time.

I'll take a look to the lua example.

Regards

Ernesto

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.