As your build your model, there will be an executable created for the model. There are many ways to log your C code output.You can add To workspace or log the output(http://www.mathworks.com/access/helpdesk/help/toolbox/simulink/ug/f11-46877.html). If you had this setting and build the model, and run the executable in the matlab. Output will be logged in the mat file. You can compare the model output and output in the mat file obtained from the C code.
"Claudio " <email@example.com> wrote in message <firstname.lastname@example.org>... > Dear Sirs, > I am writing to you because I have a little problem about the testing of the C code generated from a block diagram built in Simulink. > In practice I would like to know how to "feed" my C code (built with a System Target file grt.tlc) with the correct inputs and so to let it generate the outputs. > I need this because I would compare the outputs of the Simulink block diagram with the outputs computed by the C code. > > Thanks to everybody!