Replies: 2 comments 1 reply
-
@bcoconni I think that as we begin to support Matlab S-Functions in JSBSim, it's fine having the user to take care of mex file builds. As a matter of fact, the visual aids that Matlab offers nowadays to create apps and mex files are pretty advanced and streamlined. This is called Matlab deploytool. The work on the JSBSim side should be focused on having the best possible interface to Matlab, one which is general and simple enough to provide the basis for more complex projects. And I hope this will encourage more users to contribute. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your answer @agodemar. I have modified our Windows installer to install the files needed to build the Matlab S-Function. Note that the item Once the files are installed, the folder structure is as displayed below. I guess the file jsbsim/matlab/JSBSimSimulinkCompile.m Lines 1 to 10 in 4aaf5e5 |
Beta Was this translation helpful? Give feedback.
-
Since I am quite unfamiliar with the Matlab community, could someone enlighten me about the usual way of distributing open source S-Functions to the Matlab community ?
Now that the PR #445 is merged, we are providing the source code to build the S-Function for JSBSim which is great. However, at the moment a Matlab user that would want to use JSBSim S-Function needs to build everything from scratch using either CMake or Visual Studio. Not sure if this is very appealing to the average Matlab user ? Is there a means to distribute JSBSim S-Function that would reduce the burden of a Matlab user ?
While I browsed the internet, I saw that distributing compiled
mex
files seems not to be the way to go since you need to get an S-function which has been compiled for the very version of Matlab that you are using, under the same platform and most likely with the same compiler.Any opinion ?
Beta Was this translation helpful? Give feedback.
All reactions