HI, Pablo. At this time, support for the SFunction seems to be somewhat
limited. I am not familiar with this myself, so I cant help.
Jon
From: Pablo Antonio Morcillo Pallarés [mailto:pab...@ho...]
Sent: Wednesday, July 02, 2014 3:08 AM
To: jsb...@li...
Subject: [Jsbsim-matlab] Same problem
i have the same problem, anyone can solve?
_______________________
I am a new JSBSim and Matlab SFunction user. I am trying to run JSBSim in
Matlab/Simulink, which using the SFunction. I have downloaded the code in (
<http://jsbsim.sf.net/JSBSimSFunction.zip>
http://jsbsim.sf.net/JSBSimSFunction.zip)
I have also installed Visual Studio C++ 2008 Express Edition and the
aircraft models. I can start up the GUI and load a model. However, I cannot
initialize the model. I have tried on different computers (both 32,64-bit).
Since the JSBSim was build in 32-bit computer the following error is the
result from a 32-bit computer.
Error using JSBSimGUI>init_model_Callback (line 1850)
Error while obtaining sizes from MEX S-function 'JSBSim_SFunction' in
'jsbsimgui_test/JSBSim S-Function'.
Error in gui_mainfcn (line 96)
feval(varargin{:});
Error in JSBSimGUI (line 42)
gui_mainfcn(gui_State, varargin{:});
Error in
@(hObject,eventdata)JSBSimGUI('init_model_Callback',hObject,eventdata,guidat
a(hObject))
Caused by:
Error using JSBSimGUI>init_model_Callback (line 1850)
Invalid MEX-file
'C:\Users\Don\Documents\MATLAB\JSBSimSFunction\JSBSim_SFunction.mexw32':
C:\Users\Don\Documents\MATLAB\JSBSimSFunction\JSBSim_SFunction.mexw32
is not a
valid Win32 application.
Error while evaluating uicontrol Callback
I guess I did not correctly compile the mexw32 file. Can you please give me
some instruction to compile a SFunction?
Choi
|