Code covered by the BSD License  

Highlights from
External I/O and State Information Block

5.0

5.0 | 2 ratings Rate this file 7 Downloads (last 30 days) File Size: 10.98 KB File ID: #11736
image thumbnail

External I/O and State Information Block

by Roger Aarenstrup

 

19 Jul 2006 (Updated 10 Jul 2009)

This block generates an extra file during code generation containing external Inputs, outputs an

Editor's Notes:

This file was a File Exchange Pick of the Week

| Watch this File

File Information
Description

Some have asked how a list of inputs, outputs and states in a model can be generated. This is one way to do it. Just add the block to your simulink model and start the code generation. The block won't affect simulation or other generated files. You will get one additional file in the code generation process containing the list.

The list can be used to create a data dictionary, to verify the interface to other components and so on.

To install: Unpack the zip-file in a directory and add that directory to your MATLAB(R) path. When you start Simulink(R) the block library should be added automatically to your Simulink library browser.

Required Products Real-Time Workshop
MATLAB release MATLAB 7.2 (R2006a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
08 Nov 2006 Rick Ball

I noticed that for outputs, if no signal name is present the 'Name' field shows up as blank (but inputs pick up the inport block name). It would be nice if outputs could pick up the outport block name...

17 Dec 2007 Erik Stalberg

This is great!

Please login to add a comment or rating.
Updates
07 Aug 2006

Fixed some typos, in the text.

10 Jul 2009

Changed text

Tag Activity for this File
Tag Applied By Date/Time
realtime workshop Roger Aarenstrup 22 Oct 2008 08:32:56
embedded code Roger Aarenstrup 22 Oct 2008 08:32:56
verification Roger Aarenstrup 22 Oct 2008 08:32:56
simulink Roger Aarenstrup 22 Oct 2008 08:32:56
code generation Roger Aarenstrup 22 Oct 2008 08:32:56
state Roger Aarenstrup 22 Oct 2008 08:32:56
external Roger Aarenstrup 22 Oct 2008 08:32:56
input Roger Aarenstrup 22 Oct 2008 08:32:56
output Roger Aarenstrup 22 Oct 2008 08:32:56
list Roger Aarenstrup 22 Oct 2008 08:32:56

Contact us at files@mathworks.com