MATLAB: Do I get an error while generating code and using Code generation options in Real-Time Workshop 7.3 (R2009a)

simulink coder

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

In order to specify the Get function and the Set function of Custom attributes for the Storage Class GetSet (custom), the name that you specify in the fields must be declared as a function in the Header file or in the Source files included in the Custom Code section of the Real-Time Workshop pane in the Configuration Parameters user interface.
Please find more informations in the documentation on our website :
<http://www.mathworks.com/access/helpdesk/help/toolbox/ecoder/ug/f29488.html>