From: Pablo A. M. P. <pab...@ho...> - 2014-07-02 09:07:52
|
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) 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,guidata(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 |