Simulink Code compilation error for NI Veristand tlc and Visual Studio 2008.
3 views (last 30 days)
Show older comments
Hi I am generating code of simulink model motion.slx with fixed time step Ode14x solver and NI veristand tlc. I am using Microsoft Visual C++ 2008 compiler to compile generated code. The error is as shown below.
motion.c(16845) : error C2231: '.power' : left operand points to 'struct', use '->'
motion.c(16850) : error C2231: '.power' : left operand points to 'struct', use '->'
motion.c(16856) : error C2231: '.power' : left operand points to 'struct', use '->'
motion.c(16861) : error C2231: '.alpha' : left operand points to 'struct', use '->'
motion.c(16866) : error C2231: '.f' : left operand points to 'struct', use '->'
motion.c(16871) : error C2231: '.ThrusterID' : left operand points to 'struct', use '->'
motion.c(16876) : error C2231: '.SwitchboardID' : left operand points to 'struct', use '->'
motion.c(16881) : error C2231: '.Connected' : left operand points to 'struct', use '->'
motion.c(16886) : error C2231: '.RatedPower' : left operand points to 'struct', use '->'
motion.c(16891) : error C2231: '.command_tau' : left operand points to 'struct', use '->'
motion.c(16897) : error C2231: '.power_available_tau' : left operand points to 'struct', use '->'
motion.c(16902) : error C2231: '.KP' : left operand points to 'struct', use '->'
motion.c(16907) : error C2231: '.KT' : left operand points to 'struct', use '->'
I am not able to figure out whether it's matlab simulink model problem or compiler problem.
0 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!