In my Simulink model, I declare some Simulink Objects and I define the Storage Class to be GetSet (Custom).
Also I declare the Set function to be NOP, but NOP is not declared in the Source files section from the Custom Code section of the Real-Time Workshop configuration.
Code genreation works fine but I get the following error :
Error UVO_Model0_sf.c: 128 found `int' expected a function Error UVO_Model0_sf.c: 131 found `int' expected a function Warning UVO_Model0_sf.c: 125 local `int i' is not referenced 2 errors, 1 warnings C:\MATLAB\R2009A\BIN\MEX.PL: Error: Compile of 'UVO_Model0_sf.c' failed. gmake: *** [../UVO_Model0_sf.mexw32] Error 9 ### Real-Time Workshop build procedure for model: 'UVO_Model0' aborted due to an error. ??? Subsystem build failed
Best Answer