go here: http://www.mathworks.com/cgi-bin/texis/webinator/search/search for 'simulink text output'maybe the first link is of use to you