The project has progressed quite a bit since I last updated this file posting. I recommend you download the latest project snapshot from this link (if I am allowed to do that): http://dl.dropbox.com/u/5284957/JSBSim_MATLAB_release.zip This download has everything you need to get it working. Sometime soon (time allowing) I plan to post this new version here on the Mathworks site.
I have tried to do some testing to duplicate your problem and it looks like it may be some issue with the mex file (on your system.) It surprised me that a mex file error would occurr when you initialized the model.
Let me recompile the mex file and have you try it. I can email it to you.
So the error occurrs when you "push" the "Initialize Model Parameters" button? If that is the case, then it is not the mex function. If the error throws when you try to run the model, then perhaps it could be the mex. Could you clarify for me?
BTW, your path(s) look correct.
Sorry that you are having trouble with it. Please be patient and I will try my best to get you up and running.
1) The "no models (not yet working)" message in the AC model selection pane is because that function has not yet been completed. You can however type in the model names in the "AC _Name" text box.
2) You must download JSBSim seperately as in my instructions and place the JSBSim folder in exactly the location specified, otherwise, you will not have any aircraft files to load (AC model files are in the JSBSim download.)
Please first confirm that you have downloaded JSBSim and placed its folder in the JSBSimSFunction_GUI folder (the one that is populated with files) and then test and let me know the results. I compiled this version slightly differently (to run a bit faster,) so I am hoping that it is not the cause of the "Invalid MEX-file." Other users have successfully run my previously compiled versions with R2009a.
The project has progressed quite a bit since I last updated this file posting. I recommend you download the latest project snapshot from this link (if I am allowed to do that): http://dl.dropbox.com/u/5284957/JSBSim_MATLAB_release.zip This download has everything you need to get it working. Sometime soon (time allowing) I plan to post this new version here on the Mathworks site.
Hi im having trouble running the JSBsim s function program from my computer. I type jsbsimgui_start into my command window. I load the test file and initialize the GUI and i get several errors.
1) In JSBSimGUI>load_model_Callback at 115
2) In gui_mainfcn at 96
3) In JSBSimGUI at 42
Does anyone have any suggestions on how to fix this ...thank you
Hi Brian,
First thanks for uploading what seems to be a great program. Unfortunatly I ve been having issues using the software. I downloaded the JSBSim S functionGui 0.3 straight from this website and then extracted it. I then downloaded the JSBSim -1.0-rc2.tar.gz from the website given in the READ ME file. I extracted that renamed the JSBSIM-1.0 file to JSBSim and replaced the empty JSBSim folder in the S function folder with it. I then opened the JSBSimGui.fig and tried running it but it is giving me multiple errors in the matlab command window. It says error in gui_mainfcn at 96 and error in JSBSimGUI at 42. It also states that the errors are cuased by Error using ==>JSBSimGUI>init_model_Callback at 1777 Invalid MEX-file 'C:\Documents and Settings\td26704\Desktop\JSBSimGUI_SFunction\JSBSim_SFunction.mexw32' and
Error while obtaining sizes from MEX S-function 'JSBSim_SFunction' in 'jsbsimgui_test/JSBSim S-Function'
Do you have any suggestions on what my problem might be...
Thankyou
Daniel
I have tried to use your s-function but seem to be running into the same problem Gernot was referring to. I also tried to recompile the mex file but i am having a few problems with generating the JSBSimLib.lib and also with fdmExec->GetPropertyCatalog().
Hi,
The project has progressed quite a bit since I last updated this file posting. I recommend you download the latest project snapshot from this link (if I am allowed to do that): http://dl.dropbox.com/u/5284957/JSBSim_MATLAB_release.zip
This download has everything you need to get it working. Sometime soon (time allowing) I plan to post this new version here on the Mathworks site.
Comment only
09 Nov 2010
JSBSim S-Function GUI 0.3
S-Function version of JSBSim 1.0 release candidate. Non-linear flight model for Simulink.
Hi im having trouble running the JSBsim s function program from my computer. I type jsbsimgui_start into my command window. I load the test file and initialize the GUI and i get several errors.
1) In JSBSimGUI>load_model_Callback at 115
2) In gui_mainfcn at 96
3) In JSBSimGUI at 42
Does anyone have any suggestions on how to fix this ...thank you
Comment only
09 Nov 2010
JSBSim S-Function GUI 0.3
S-Function version of JSBSim 1.0 release candidate. Non-linear flight model for Simulink.
Hi Brian,
First thanks for uploading what seems to be a great program. Unfortunatly I ve been having issues using the software. I downloaded the JSBSim S functionGui 0.3 straight from this website and then extracted it. I then downloaded the JSBSim -1.0-rc2.tar.gz from the website given in the READ ME file. I extracted that renamed the JSBSIM-1.0 file to JSBSim and replaced the empty JSBSim folder in the S function folder with it. I then opened the JSBSimGui.fig and tried running it but it is giving me multiple errors in the matlab command window. It says error in gui_mainfcn at 96 and error in JSBSimGUI at 42. It also states that the errors are cuased by Error using ==>JSBSimGUI>init_model_Callback at 1777 Invalid MEX-file 'C:\Documents and Settings\td26704\Desktop\JSBSimGUI_SFunction\JSBSim_SFunction.mexw32' and
Error while obtaining sizes from MEX S-function 'JSBSim_SFunction' in 'jsbsimgui_test/JSBSim S-Function'
Do you have any suggestions on what my problem might be...
Thankyou
Daniel
Comment only
21 Jan 2010
JSBSim S-Function GUI 0.3
S-Function version of JSBSim 1.0 release candidate. Non-linear flight model for Simulink.
1) The problem seems to vanish as soon as Visual C is installed. This is only my suspicion and not confirmed by Brian - just try it.
2) a simulink-block is missing (before a scope); I just removed it; afterwards, the model should run
Gernot
Comment only
30 Dec 2009
JSBSim S-Function GUI 0.3
S-Function version of JSBSim 1.0 release candidate. Non-linear flight model for Simulink.
Dear Brian,
I have tried to use your s-function but seem to be running into the same problem Gernot was referring to. I also tried to recompile the mex file but i am having a few problems with generating the JSBSimLib.lib and also with fdmExec->GetPropertyCatalog().
Do you have a work around for Gernot's problem?
Thanks
Andrew
Comment only