<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Bus Objects and Interface Specifications</title>
	<atom:link href="http://blogs.mathworks.com/seth/2008/04/18/bus-objects-and-interface-specifications/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.mathworks.com/seth/2008/04/18/bus-objects-and-interface-specifications/</link>
	<description>This blog is about Simulink.</description>
	<lastBuildDate>Mon, 13 Feb 2012 02:07:34 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Jane Case</title>
		<link>http://blogs.mathworks.com/seth/2008/04/18/bus-objects-and-interface-specifications/#comment-1103</link>
		<dc:creator>Jane Case</dc:creator>
		<pubDate>Wed, 09 Jun 2010 22:20:47 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2008/04/18/bus-objects-and-interface-specifications/#comment-1103</guid>
		<description>Hi Seth, 
i&#039;ve been paying close attention to your blogs on the using bus objects in simulink and we have made good use of these to clean up the simulation and force ICD compliance.  I do have a question however we use non-virtual bus signals output to the top level of the simulation s.t. when we generate code we can have other software use the structures that are created.  We are now trying to log the data output by generated executable and are wanting to use the built in data logging that Matlab provides.  However when i try to generate code and have a bus signal connected to an output while having signal logging enabled i get an error: &quot;Logging non build-in data type is not supported.  Cannot log outport &#039;simserver/Eng_SigOut_bus&#039; with data type Eng_SigOut; one solution is to disable data logging&quot;
Is there a way to be able to use the logging feature while bus signals are connected to out ports?  We know that we can log all signals if we split them out from the bus, but that defeats the purpose of using non-virtual buses...  Hope you can help.
Thanks!</description>
		<content:encoded><![CDATA[<p>Hi Seth,<br />
i&#8217;ve been paying close attention to your blogs on the using bus objects in simulink and we have made good use of these to clean up the simulation and force ICD compliance.  I do have a question however we use non-virtual bus signals output to the top level of the simulation s.t. when we generate code we can have other software use the structures that are created.  We are now trying to log the data output by generated executable and are wanting to use the built in data logging that Matlab provides.  However when i try to generate code and have a bus signal connected to an output while having signal logging enabled i get an error: &#8220;Logging non build-in data type is not supported.  Cannot log outport &#8216;simserver/Eng_SigOut_bus&#8217; with data type Eng_SigOut; one solution is to disable data logging&#8221;<br />
Is there a way to be able to use the logging feature while bus signals are connected to out ports?  We know that we can log all signals if we split them out from the bus, but that defeats the purpose of using non-virtual buses&#8230;  Hope you can help.<br />
Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: garla</title>
		<link>http://blogs.mathworks.com/seth/2008/04/18/bus-objects-and-interface-specifications/#comment-885</link>
		<dc:creator>garla</dc:creator>
		<pubDate>Thu, 05 Nov 2009 11:13:36 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2008/04/18/bus-objects-and-interface-specifications/#comment-885</guid>
		<description>what is advantage of exporting the bus object with the format as &quot;cell&quot; and &quot;object&quot;. what is the difference between them?</description>
		<content:encoded><![CDATA[<p>what is advantage of exporting the bus object with the format as &#8220;cell&#8221; and &#8220;object&#8221;. what is the difference between them?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tyler</title>
		<link>http://blogs.mathworks.com/seth/2008/04/18/bus-objects-and-interface-specifications/#comment-567</link>
		<dc:creator>Tyler</dc:creator>
		<pubDate>Fri, 26 Sep 2008 21:44:19 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2008/04/18/bus-objects-and-interface-specifications/#comment-567</guid>
		<description>Seth,
I find this discussion helpful, and I would like to ask for further elaboration on Doug&#039;s question about transformations between matlab structs and a non-virtual bus object.  I read your response regarding an instance versus a specification.  What I would like to be able to do is to avoid buses entirely and have structs be passed as outputs of embedded matlab blocks into other blocks that inherit the type.  This doesn&#039;t work, and so it seems that I am forced to make bus objects.  Unfortunately, I don&#039;t find an easy way to automatically generate bus objects from these structs (which I would like to edit inside the embedded matlab code).  Any clarification is welcome - thanks in advance. -Tyler</description>
		<content:encoded><![CDATA[<p>Seth,<br />
I find this discussion helpful, and I would like to ask for further elaboration on Doug&#8217;s question about transformations between matlab structs and a non-virtual bus object.  I read your response regarding an instance versus a specification.  What I would like to be able to do is to avoid buses entirely and have structs be passed as outputs of embedded matlab blocks into other blocks that inherit the type.  This doesn&#8217;t work, and so it seems that I am forced to make bus objects.  Unfortunately, I don&#8217;t find an easy way to automatically generate bus objects from these structs (which I would like to edit inside the embedded matlab code).  Any clarification is welcome &#8211; thanks in advance. -Tyler</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maarten</title>
		<link>http://blogs.mathworks.com/seth/2008/04/18/bus-objects-and-interface-specifications/#comment-508</link>
		<dc:creator>Maarten</dc:creator>
		<pubDate>Tue, 26 Aug 2008 10:13:10 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2008/04/18/bus-objects-and-interface-specifications/#comment-508</guid>
		<description>Seth,

As far as I can gather, it is not possible to stream data created using signal logging of a virtual bus to an Input port of another model. Could you comment on this?

I would like to avoid the non-virtual bus stuff since it sounds too much hassle for a medium sized project and I want to keep my diagrams clean (i.e. just press play)</description>
		<content:encoded><![CDATA[<p>Seth,</p>
<p>As far as I can gather, it is not possible to stream data created using signal logging of a virtual bus to an Input port of another model. Could you comment on this?</p>
<p>I would like to avoid the non-virtual bus stuff since it sounds too much hassle for a medium sized project and I want to keep my diagrams clean (i.e. just press play)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Seth</title>
		<link>http://blogs.mathworks.com/seth/2008/04/18/bus-objects-and-interface-specifications/#comment-429</link>
		<dc:creator>Seth</dc:creator>
		<pubDate>Fri, 18 Jul 2008 03:18:32 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2008/04/18/bus-objects-and-interface-specifications/#comment-429</guid>
		<description>@Doug - I have had many people ask about such a conversion tool.  The challenge comes from the variety of types and syntax requirements that C/C++ allow which do not easily map back to Bus Objects.  If you write such a tool, please share it on the File Exchange!

Regarding the MATLAB struct and the Bus Object, consider that there is a difference in what these two things are.  The Bus Object is a specification, and the struct is an instance.  They are similar, but Bus Objects have no values associated with their elements.  Simulink.Timeseries and Simulink.TSArray provide a method for specifying the value of a bus signal for inputs to a model.</description>
		<content:encoded><![CDATA[<p>@Doug &#8211; I have had many people ask about such a conversion tool.  The challenge comes from the variety of types and syntax requirements that C/C++ allow which do not easily map back to Bus Objects.  If you write such a tool, please share it on the File Exchange!</p>
<p>Regarding the MATLAB struct and the Bus Object, consider that there is a difference in what these two things are.  The Bus Object is a specification, and the struct is an instance.  They are similar, but Bus Objects have no values associated with their elements.  Simulink.Timeseries and Simulink.TSArray provide a method for specifying the value of a bus signal for inputs to a model.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug Forman</title>
		<link>http://blogs.mathworks.com/seth/2008/04/18/bus-objects-and-interface-specifications/#comment-366</link>
		<dc:creator>Doug Forman</dc:creator>
		<pubDate>Wed, 09 Jul 2008 22:20:59 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2008/04/18/bus-objects-and-interface-specifications/#comment-366</guid>
		<description>Also,
  Is there any relationship possible between a matlab struct and a non-virtual bus object?
Is there a simple  transformation between the matlab struct and a non-virtual bus object?</description>
		<content:encoded><![CDATA[<p>Also,<br />
  Is there any relationship possible between a matlab struct and a non-virtual bus object?<br />
Is there a simple  transformation between the matlab struct and a non-virtual bus object?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug Forman</title>
		<link>http://blogs.mathworks.com/seth/2008/04/18/bus-objects-and-interface-specifications/#comment-365</link>
		<dc:creator>Doug Forman</dc:creator>
		<pubDate>Wed, 09 Jul 2008 21:04:00 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2008/04/18/bus-objects-and-interface-specifications/#comment-365</guid>
		<description>Seth,
Have you heard of a script (perl or matlab) that can create a Matlab bus object from a C struct definition, (or C++ class definition)?
I am using legacy_code to import several different C functions that access (by reference) global data structures.
Each C function will become a separate S-Function and therefore can&#039;t see global variables declared by the other S-Functions. I am now wanting to convert the C data structures to matlab bus objects that can be accessed by the separate S-Functions.
Thanks ~ Doug</description>
		<content:encoded><![CDATA[<p>Seth,<br />
Have you heard of a script (perl or matlab) that can create a Matlab bus object from a C struct definition, (or C++ class definition)?<br />
I am using legacy_code to import several different C functions that access (by reference) global data structures.<br />
Each C function will become a separate S-Function and therefore can&#8217;t see global variables declared by the other S-Functions. I am now wanting to convert the C data structures to matlab bus objects that can be accessed by the separate S-Functions.<br />
Thanks ~ Doug</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Seth</title>
		<link>http://blogs.mathworks.com/seth/2008/04/18/bus-objects-and-interface-specifications/#comment-303</link>
		<dc:creator>Seth</dc:creator>
		<pubDate>Fri, 06 Jun 2008 23:38:43 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2008/04/18/bus-objects-and-interface-specifications/#comment-303</guid>
		<description>@Guilherme Dedecca - Excellent use of a bus for interface specification!  There is a technical support solution about &lt;a href=&quot;http://www.mathworks.com/support/solutions/data/1-2UDXQ5.html&quot; rel=&quot;nofollow&quot;&gt;how to create a Simulink.TsArray&lt;/a&gt;.  It contains a simple example.

There is also a nice &lt;a href=&quot;http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=15852&quot; rel=&quot;nofollow&quot;&gt;file exchange submission&lt;/a&gt; from &lt;a href=&quot;http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do?objectType=author&amp;objectId=1094530&quot; rel=&quot;nofollow&quot;&gt;Robyn Jackey&lt;/a&gt; that demonstrates how this is done with a nested bus.  The helper functions in that file really simplify the process of creating the Simulink TS Arrays.</description>
		<content:encoded><![CDATA[<p>@Guilherme Dedecca &#8211; Excellent use of a bus for interface specification!  There is a technical support solution about <a href="http://www.mathworks.com/support/solutions/data/1-2UDXQ5.html" rel="nofollow">how to create a Simulink.TsArray</a>.  It contains a simple example.</p>
<p>There is also a nice <a href="http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=15852" rel="nofollow">file exchange submission</a> from <a href="http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do?objectType=author&#038;objectId=1094530" rel="nofollow">Robyn Jackey</a> that demonstrates how this is done with a nested bus.  The helper functions in that file really simplify the process of creating the Simulink TS Arrays.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guilherme Dedecca</title>
		<link>http://blogs.mathworks.com/seth/2008/04/18/bus-objects-and-interface-specifications/#comment-302</link>
		<dc:creator>Guilherme Dedecca</dc:creator>
		<pubDate>Fri, 06 Jun 2008 21:15:53 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2008/04/18/bus-objects-and-interface-specifications/#comment-302</guid>
		<description>Hello Seth!

I&#039;ve been developing a model and I started using Bus Objects at the root-level inputs to specify the signals they are expected to receive. By doing this, I could propagate the expected signals at root-level Inputs to the rest of the model and use them at Bus Selectors, for exemple.

The time has come to simulate the model, and I wanted to use the Data Import/Export feature to apply several test cases to the inputs of the model. But, as far as I could find, the only way to import data to Inports that use Bus Objects is if the data is packed into an Simulink.TSArray object. The problem is that I didn&#039;t find another way to create an Simulink.TSArray object other than to log the signals from a previous simulation and import this logged data back into the model through Data Import/Export.

Is there another way to import Data to Inports that use Bus Objects?

Thank you!</description>
		<content:encoded><![CDATA[<p>Hello Seth!</p>
<p>I&#8217;ve been developing a model and I started using Bus Objects at the root-level inputs to specify the signals they are expected to receive. By doing this, I could propagate the expected signals at root-level Inputs to the rest of the model and use them at Bus Selectors, for exemple.</p>
<p>The time has come to simulate the model, and I wanted to use the Data Import/Export feature to apply several test cases to the inputs of the model. But, as far as I could find, the only way to import data to Inports that use Bus Objects is if the data is packed into an Simulink.TSArray object. The problem is that I didn&#8217;t find another way to create an Simulink.TSArray object other than to log the signals from a previous simulation and import this logged data back into the model through Data Import/Export.</p>
<p>Is there another way to import Data to Inports that use Bus Objects?</p>
<p>Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin Mellor</title>
		<link>http://blogs.mathworks.com/seth/2008/04/18/bus-objects-and-interface-specifications/#comment-211</link>
		<dc:creator>Justin Mellor</dc:creator>
		<pubDate>Thu, 08 May 2008 10:20:58 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2008/04/18/bus-objects-and-interface-specifications/#comment-211</guid>
		<description>Seth,
I have just &#039;tuned in&#039; to this discussion about bus signals. As I am in the process of integrating a large mode using Model References for all the major components of the system, this is highly relevant. I definitely need to lock down the interfaces to the different components - these are being developed across multiple sites in accordance with an Interface Control Document that we have produced.
I have a question:
The interconnects between our components are a mixture of busses and individual signal lines. I can use Simulink.Signal objects to define the characteristics of these individual signals, creating them using the Model Explorer, however, I don&#039;t know how to save these signals as M-files (there does not appear to be an equivalent to Simulink.Bus.save for signal objects). Saving the objects as M-files rather than MAT-files gives us the option to look at the files and edit them.

Regards

Justin Mellor</description>
		<content:encoded><![CDATA[<p>Seth,<br />
I have just &#8216;tuned in&#8217; to this discussion about bus signals. As I am in the process of integrating a large mode using Model References for all the major components of the system, this is highly relevant. I definitely need to lock down the interfaces to the different components &#8211; these are being developed across multiple sites in accordance with an Interface Control Document that we have produced.<br />
I have a question:<br />
The interconnects between our components are a mixture of busses and individual signal lines. I can use Simulink.Signal objects to define the characteristics of these individual signals, creating them using the Model Explorer, however, I don&#8217;t know how to save these signals as M-files (there does not appear to be an equivalent to Simulink.Bus.save for signal objects). Saving the objects as M-files rather than MAT-files gives us the option to look at the files and edit them.</p>
<p>Regards</p>
<p>Justin Mellor</p>
]]></content:encoded>
	</item>
</channel>
</rss>

