09-19-2014 05:35 PM
Hi
I compiled by placing all obj files in folder as mentioned by you. Please see the attached log from command window.
09-22-2014 12:55 PM
Hi,
You will note in the error log of the specific cause to this issue. It appears that the sfunc_PMS.obj was built as a 64-bit binary rather than the 32-bit. Rebuild the s-functions using the Visual Studio 2008 32-bit (x86) Command Prompt. Try again. Note VeriStand strictly works with 32-bit binaries.
09-25-2014 03:07 AM
Hi
I am using 32 bit version of matlab and also I compiled all s-functions with 32-bit compilers. Now when I generate code from simulink model, I couldn't find motion.bat file. Am I missing some settings for code generation??
09-26-2014 02:31 PM
Hi LnT,
The batch file is always generated if the model's code generation process succeeded; its automated execution is however user-configurable. Confirm no error occured during the code generation procedure of your model. Particularly, confrim that the build procedure prints the following string on the MATLAB command window: "### Successful completion of Real-Time Workshop build". In addition, you should see the following string in the command window: "### Building motion: .\motion.bat". If you do not, then most likely you are simulating the model, and not building it - or an error message is somewhere within the generated command window text.
09-28-2014 03:12 AM
Hi
I have installed Veristand 2014 version now and using Visual Studio 2010. Please see the attched log of command window of Matlab code generation, and part of log of compilation using cmd
09-29-2014 12:51 PM
Hello LnT,
As reported in CmdWndwErrors.txt, the errors are due to insufficient code to properly link your object files, sfun_PMS.obj and sfun_thrust_allocation.obj. The error log states these objects are using variables declared in external source\objects, but the compiled source cannot be found at linkage. For example sfun_thrust_allocation.obj has a function declaring the variable _mxIsNume, but its definition cannot be found.
To successfully compile this code:
Model Configuration Parameters
Rebuild your model from within Simulink. You should see all dependencies listed in the generated motion.mk file.
10-24-2014 04:07 AM - edited 10-24-2014 04:22 AM
Hi
Thanks for reply, I tried to follow the steps but the error log is smae as earlier. Please see the attached make file and dependency file referred in make file (motion.mk). Is there any other to tackle this issue?
Also I have attached complete error log.