<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://conceptcar.iese.de:80/ConceptCar1/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://conceptcar.iese.de:80/ConceptCar1/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Raphael</id>
		<title>ConceptCar - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://conceptcar.iese.de:80/ConceptCar1/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Raphael"/>
		<link rel="alternate" type="text/html" href="https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Special:Contributions/Raphael"/>
		<updated>2026-05-04T10:34:23Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.23.2</generator>

	<entry>
		<id>https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7</id>
		<title>Simulink2ARM7</title>
		<link rel="alternate" type="text/html" href="https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7"/>
				<updated>2009-04-15T14:56:35Z</updated>
		
		<summary type="html">&lt;p&gt;Raphael: /* Optionally compile the generated code */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Overview==&lt;br /&gt;
&lt;br /&gt;
This page describes the user interaction with the SimulinkTarget tool. Every step needed in order to get from Simulink Model to the Executable file is described in this page. The first step before getting the model to run in the ARM7 Board is to generate the code that implements the Simulink Model. This process is described here [[Simulink settings for generating code]].&lt;br /&gt;
&lt;br /&gt;
==Create (or load) a project configuration file==&lt;br /&gt;
&lt;br /&gt;
The SimulinkTarget tool creates a configuration file where all the decisions made during the conversion process are saved. Doing so enables the user to load the configuration file and avoids the overhead of going through all of the steps every time new code is generated. The first step is to either load or create a configuration file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget01.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After loading/creating a configuration file, new tabs are enabled and the user may proceed to the next steps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget02.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As the user can easily note, the tab Simulink Model has been enabled and is intuitively the next step to be taken.&lt;br /&gt;
&lt;br /&gt;
==Load the simulink model==&lt;br /&gt;
&lt;br /&gt;
The tool needs to load a Simulink Model in order to obtain model specific information, such as port names, model name, etc. After parsing the model necessary information is collected and the tool can go further. The first image shows the select model screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget03.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user then selects the MDL file that contains the model that will be executed on the ARM7 platform.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget04.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once again after completing the required steps inside the tab, new tabs are enabled and the user can continue to enter information required to achieve the final executable file.&lt;br /&gt;
&lt;br /&gt;
==Load the RTW generated code==&lt;br /&gt;
&lt;br /&gt;
In order to complete this step, the user must first execute the [[Simulink settings for generating code]] and generate code with the Matlab Simulink Real-Time Workshop.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget05.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After the folder containing the RTW generated code is specified, the tool will merge the model code together with the base system code. The base system code is selected in the next step.&lt;br /&gt;
&lt;br /&gt;
==Select the base stub code used==&lt;br /&gt;
&lt;br /&gt;
The stub code contains both the base system functionality and the main system loop. The main system loop is responsible for the execution of the model. The main loop execution is described in [[Simulink Execution on the ARM7 target]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget06.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The screenshot above presents the user two options. One of them is to use the code provided with the SimulinkTarget tool. In this case the code used is related to a specific SVN release and will contain a version number. The user must be sure to use compatible combinations of software, that is, bootloader version should be the same as the stub code used with the SimulinkTarget.&lt;br /&gt;
&lt;br /&gt;
In case the user has a copy of a newer code that either does not match the version provided by the tool or that is not yet a release, it is possible to select the second option. If this option is chosen, the user must provide the address of the folder containing the stub code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget07.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After selecting one of the two options two tabs are enabled. The user can thereafter walk through the final steps in the process of setting up the configuration for generating a binary executable. The figure below differs from the above regarding the status of the configuration file. After clicking the &amp;#039;&amp;#039;&amp;#039;Save&amp;#039;&amp;#039;&amp;#039; button the tool removes the asterisks from the tittle bar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget08.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The base stub code provided by the tool or the user will be used together with the RTW generated code to compose the final source code, which will then be compiled into an application loaded by the ARM7 board bootloader.&lt;br /&gt;
&lt;br /&gt;
==Define CAN binding and marshaling==&lt;br /&gt;
&lt;br /&gt;
This part of the work flow defines the CAN port binding. Since in the Concept Car there is a CAN bus responsible for supplying a communication means to all of the boards in the network, all data is transmitted through it. When modeling functionality in a Simulink Data-Flow model, there is only reference to IN ports and OUT ports. The model does not describe how data is input and output to the ports. They are an open link to the environment where the model executes.&lt;br /&gt;
&lt;br /&gt;
For this reason the user must provide a binding of the ports from the model to the Car&amp;#039;s communication mechanism, which is a CAN bus. This is done by assigning CAN ids to can messages that will carry the data to and from the model (more specifically, to/from the model ports).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget09.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user is able to define an ID, which will be automatically converted to a Hexadecimal value by the tool. A gradient, which is used to transform the value that the message carries (e.g. to transform a floating point number into an integer number). And a y-intercept parameter used to determine a scaling factor for the message value. These three fields are user configurable and the last two are optional. The optional fields are enabled by the checkboxes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget10.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After defining the configurable fields for all ports the user can move on to the next step where the code will be generated. The information entered here by the user will be used during code generation. When the generator writes the code to get the value from the model (accessing the structure defined by the RTW generated code) it will then use the ID defined by the user to call the base CAN code to send the message on the bus.&lt;br /&gt;
&lt;br /&gt;
The code generator figures the port variable names based on information from the Model and creates code to access them. After that, code is generated to send the values of the variables through the CAN bus using the IDs defined by the user.&lt;br /&gt;
&lt;br /&gt;
==Define output folder and generate code==&lt;br /&gt;
&lt;br /&gt;
At this point every information related to the code generation (merge between the RTW code and the base system code) is already setup. The next step is to select the destination folder and the code is generated. The SimulinkTarget creates a folder named CODEGEN_yy-mm-dd_hh-mm-ss inside the selected destination folder.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget11.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The tool generates a header file that is used by the main execution loop. This header contains definitions about the name of the step function generated by RTW, information about the periodicity of the steps, etc. The user can check what kind of information is generated by opening the file &amp;quot;&amp;#039;&amp;#039;&amp;#039;main.h&amp;#039;&amp;#039;&amp;#039;&amp;quot; inside the folder &amp;quot;&amp;#039;&amp;#039;&amp;#039;include/usr&amp;#039;&amp;#039;&amp;#039;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==Optionally compile the generated code==&lt;br /&gt;
&lt;br /&gt;
This is the last step in the work flow. Here the user can decide to compile the application within the tool. This step is optional because there is a makefile available for later compilation of the application. Nevertheless the user is able to select parameters for the compilation (such as debug information) and to deploy a binary executable through the SimulinkTarget tool.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget12.jpg]]&lt;/div&gt;</summary>
		<author><name>Raphael</name></author>	</entry>

	<entry>
		<id>https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7</id>
		<title>Simulink2ARM7</title>
		<link rel="alternate" type="text/html" href="https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7"/>
				<updated>2009-04-15T14:39:40Z</updated>
		
		<summary type="html">&lt;p&gt;Raphael: /* Define output folder and generate code */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Overview==&lt;br /&gt;
&lt;br /&gt;
This page describes the user interaction with the SimulinkTarget tool. Every step needed in order to get from Simulink Model to the Executable file is described in this page. The first step before getting the model to run in the ARM7 Board is to generate the code that implements the Simulink Model. This process is described here [[Simulink settings for generating code]].&lt;br /&gt;
&lt;br /&gt;
==Create (or load) a project configuration file==&lt;br /&gt;
&lt;br /&gt;
The SimulinkTarget tool creates a configuration file where all the decisions made during the conversion process are saved. Doing so enables the user to load the configuration file and avoids the overhead of going through all of the steps every time new code is generated. The first step is to either load or create a configuration file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget01.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After loading/creating a configuration file, new tabs are enabled and the user may proceed to the next steps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget02.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As the user can easily note, the tab Simulink Model has been enabled and is intuitively the next step to be taken.&lt;br /&gt;
&lt;br /&gt;
==Load the simulink model==&lt;br /&gt;
&lt;br /&gt;
The tool needs to load a Simulink Model in order to obtain model specific information, such as port names, model name, etc. After parsing the model necessary information is collected and the tool can go further. The first image shows the select model screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget03.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user then selects the MDL file that contains the model that will be executed on the ARM7 platform.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget04.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once again after completing the required steps inside the tab, new tabs are enabled and the user can continue to enter information required to achieve the final executable file.&lt;br /&gt;
&lt;br /&gt;
==Load the RTW generated code==&lt;br /&gt;
&lt;br /&gt;
In order to complete this step, the user must first execute the [[Simulink settings for generating code]] and generate code with the Matlab Simulink Real-Time Workshop.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget05.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After the folder containing the RTW generated code is specified, the tool will merge the model code together with the base system code. The base system code is selected in the next step.&lt;br /&gt;
&lt;br /&gt;
==Select the base stub code used==&lt;br /&gt;
&lt;br /&gt;
The stub code contains both the base system functionality and the main system loop. The main system loop is responsible for the execution of the model. The main loop execution is described in [[Simulink Execution on the ARM7 target]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget06.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The screenshot above presents the user two options. One of them is to use the code provided with the SimulinkTarget tool. In this case the code used is related to a specific SVN release and will contain a version number. The user must be sure to use compatible combinations of software, that is, bootloader version should be the same as the stub code used with the SimulinkTarget.&lt;br /&gt;
&lt;br /&gt;
In case the user has a copy of a newer code that either does not match the version provided by the tool or that is not yet a release, it is possible to select the second option. If this option is chosen, the user must provide the address of the folder containing the stub code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget07.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After selecting one of the two options two tabs are enabled. The user can thereafter walk through the final steps in the process of setting up the configuration for generating a binary executable. The figure below differs from the above regarding the status of the configuration file. After clicking the &amp;#039;&amp;#039;&amp;#039;Save&amp;#039;&amp;#039;&amp;#039; button the tool removes the asterisks from the tittle bar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget08.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The base stub code provided by the tool or the user will be used together with the RTW generated code to compose the final source code, which will then be compiled into an application loaded by the ARM7 board bootloader.&lt;br /&gt;
&lt;br /&gt;
==Define CAN binding and marshaling==&lt;br /&gt;
&lt;br /&gt;
This part of the work flow defines the CAN port binding. Since in the Concept Car there is a CAN bus responsible for supplying a communication means to all of the boards in the network, all data is transmitted through it. When modeling functionality in a Simulink Data-Flow model, there is only reference to IN ports and OUT ports. The model does not describe how data is input and output to the ports. They are an open link to the environment where the model executes.&lt;br /&gt;
&lt;br /&gt;
For this reason the user must provide a binding of the ports from the model to the Car&amp;#039;s communication mechanism, which is a CAN bus. This is done by assigning CAN ids to can messages that will carry the data to and from the model (more specifically, to/from the model ports).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget09.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user is able to define an ID, which will be automatically converted to a Hexadecimal value by the tool. A gradient, which is used to transform the value that the message carries (e.g. to transform a floating point number into an integer number). And a y-intercept parameter used to determine a scaling factor for the message value. These three fields are user configurable and the last two are optional. The optional fields are enabled by the checkboxes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget10.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After defining the configurable fields for all ports the user can move on to the next step where the code will be generated. The information entered here by the user will be used during code generation. When the generator writes the code to get the value from the model (accessing the structure defined by the RTW generated code) it will then use the ID defined by the user to call the base CAN code to send the message on the bus.&lt;br /&gt;
&lt;br /&gt;
The code generator figures the port variable names based on information from the Model and creates code to access them. After that, code is generated to send the values of the variables through the CAN bus using the IDs defined by the user.&lt;br /&gt;
&lt;br /&gt;
==Define output folder and generate code==&lt;br /&gt;
&lt;br /&gt;
At this point every information related to the code generation (merge between the RTW code and the base system code) is already setup. The next step is to select the destination folder and the code is generated. The SimulinkTarget creates a folder named CODEGEN_yy-mm-dd_hh-mm-ss inside the selected destination folder.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget11.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The tool generates a header file that is used by the main execution loop. This header contains definitions about the name of the step function generated by RTW, information about the periodicity of the steps, etc. The user can check what kind of information is generated by opening the file &amp;quot;&amp;#039;&amp;#039;&amp;#039;main.h&amp;#039;&amp;#039;&amp;#039;&amp;quot; inside the folder &amp;quot;&amp;#039;&amp;#039;&amp;#039;include/usr&amp;#039;&amp;#039;&amp;#039;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==Optionally compile the generated code==&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget12.jpg]]&lt;/div&gt;</summary>
		<author><name>Raphael</name></author>	</entry>

	<entry>
		<id>https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7</id>
		<title>Simulink2ARM7</title>
		<link rel="alternate" type="text/html" href="https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7"/>
				<updated>2009-04-15T14:38:58Z</updated>
		
		<summary type="html">&lt;p&gt;Raphael: /* Define output folder and generate code */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Overview==&lt;br /&gt;
&lt;br /&gt;
This page describes the user interaction with the SimulinkTarget tool. Every step needed in order to get from Simulink Model to the Executable file is described in this page. The first step before getting the model to run in the ARM7 Board is to generate the code that implements the Simulink Model. This process is described here [[Simulink settings for generating code]].&lt;br /&gt;
&lt;br /&gt;
==Create (or load) a project configuration file==&lt;br /&gt;
&lt;br /&gt;
The SimulinkTarget tool creates a configuration file where all the decisions made during the conversion process are saved. Doing so enables the user to load the configuration file and avoids the overhead of going through all of the steps every time new code is generated. The first step is to either load or create a configuration file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget01.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After loading/creating a configuration file, new tabs are enabled and the user may proceed to the next steps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget02.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As the user can easily note, the tab Simulink Model has been enabled and is intuitively the next step to be taken.&lt;br /&gt;
&lt;br /&gt;
==Load the simulink model==&lt;br /&gt;
&lt;br /&gt;
The tool needs to load a Simulink Model in order to obtain model specific information, such as port names, model name, etc. After parsing the model necessary information is collected and the tool can go further. The first image shows the select model screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget03.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user then selects the MDL file that contains the model that will be executed on the ARM7 platform.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget04.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once again after completing the required steps inside the tab, new tabs are enabled and the user can continue to enter information required to achieve the final executable file.&lt;br /&gt;
&lt;br /&gt;
==Load the RTW generated code==&lt;br /&gt;
&lt;br /&gt;
In order to complete this step, the user must first execute the [[Simulink settings for generating code]] and generate code with the Matlab Simulink Real-Time Workshop.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget05.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After the folder containing the RTW generated code is specified, the tool will merge the model code together with the base system code. The base system code is selected in the next step.&lt;br /&gt;
&lt;br /&gt;
==Select the base stub code used==&lt;br /&gt;
&lt;br /&gt;
The stub code contains both the base system functionality and the main system loop. The main system loop is responsible for the execution of the model. The main loop execution is described in [[Simulink Execution on the ARM7 target]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget06.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The screenshot above presents the user two options. One of them is to use the code provided with the SimulinkTarget tool. In this case the code used is related to a specific SVN release and will contain a version number. The user must be sure to use compatible combinations of software, that is, bootloader version should be the same as the stub code used with the SimulinkTarget.&lt;br /&gt;
&lt;br /&gt;
In case the user has a copy of a newer code that either does not match the version provided by the tool or that is not yet a release, it is possible to select the second option. If this option is chosen, the user must provide the address of the folder containing the stub code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget07.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After selecting one of the two options two tabs are enabled. The user can thereafter walk through the final steps in the process of setting up the configuration for generating a binary executable. The figure below differs from the above regarding the status of the configuration file. After clicking the &amp;#039;&amp;#039;&amp;#039;Save&amp;#039;&amp;#039;&amp;#039; button the tool removes the asterisks from the tittle bar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget08.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The base stub code provided by the tool or the user will be used together with the RTW generated code to compose the final source code, which will then be compiled into an application loaded by the ARM7 board bootloader.&lt;br /&gt;
&lt;br /&gt;
==Define CAN binding and marshaling==&lt;br /&gt;
&lt;br /&gt;
This part of the work flow defines the CAN port binding. Since in the Concept Car there is a CAN bus responsible for supplying a communication means to all of the boards in the network, all data is transmitted through it. When modeling functionality in a Simulink Data-Flow model, there is only reference to IN ports and OUT ports. The model does not describe how data is input and output to the ports. They are an open link to the environment where the model executes.&lt;br /&gt;
&lt;br /&gt;
For this reason the user must provide a binding of the ports from the model to the Car&amp;#039;s communication mechanism, which is a CAN bus. This is done by assigning CAN ids to can messages that will carry the data to and from the model (more specifically, to/from the model ports).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget09.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user is able to define an ID, which will be automatically converted to a Hexadecimal value by the tool. A gradient, which is used to transform the value that the message carries (e.g. to transform a floating point number into an integer number). And a y-intercept parameter used to determine a scaling factor for the message value. These three fields are user configurable and the last two are optional. The optional fields are enabled by the checkboxes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget10.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After defining the configurable fields for all ports the user can move on to the next step where the code will be generated. The information entered here by the user will be used during code generation. When the generator writes the code to get the value from the model (accessing the structure defined by the RTW generated code) it will then use the ID defined by the user to call the base CAN code to send the message on the bus.&lt;br /&gt;
&lt;br /&gt;
The code generator figures the port variable names based on information from the Model and creates code to access them. After that, code is generated to send the values of the variables through the CAN bus using the IDs defined by the user.&lt;br /&gt;
&lt;br /&gt;
==Define output folder and generate code==&lt;br /&gt;
&lt;br /&gt;
At this point every information related to the code generation (merge between the RTW code and the base system code) is already setup. The next step is to select the destination folder and the code is generated. The SimulinkTarget creates a folder named CODEGEN_yy-mm-dd_hh-mm-ss inside the selected destination folder.&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget11.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The tool generates a header file that is used by the main execution loop. This header contains definitions about the name of the step function generated by RTW, information about the periodicity of the steps, etc. The user can check what kind of information is generated by opening the file &amp;quot;&amp;#039;&amp;#039;&amp;#039;main.h&amp;#039;&amp;#039;&amp;#039;&amp;quot; inside the folder &amp;quot;&amp;#039;&amp;#039;&amp;#039;include/usr&amp;#039;&amp;#039;&amp;#039;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==Optionally compile the generated code==&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget12.jpg]]&lt;/div&gt;</summary>
		<author><name>Raphael</name></author>	</entry>

	<entry>
		<id>https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7</id>
		<title>Simulink2ARM7</title>
		<link rel="alternate" type="text/html" href="https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7"/>
				<updated>2009-04-15T14:22:48Z</updated>
		
		<summary type="html">&lt;p&gt;Raphael: /* Define CAN binding and marshaling */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Overview==&lt;br /&gt;
&lt;br /&gt;
This page describes the user interaction with the SimulinkTarget tool. Every step needed in order to get from Simulink Model to the Executable file is described in this page. The first step before getting the model to run in the ARM7 Board is to generate the code that implements the Simulink Model. This process is described here [[Simulink settings for generating code]].&lt;br /&gt;
&lt;br /&gt;
==Create (or load) a project configuration file==&lt;br /&gt;
&lt;br /&gt;
The SimulinkTarget tool creates a configuration file where all the decisions made during the conversion process are saved. Doing so enables the user to load the configuration file and avoids the overhead of going through all of the steps every time new code is generated. The first step is to either load or create a configuration file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget01.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After loading/creating a configuration file, new tabs are enabled and the user may proceed to the next steps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget02.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As the user can easily note, the tab Simulink Model has been enabled and is intuitively the next step to be taken.&lt;br /&gt;
&lt;br /&gt;
==Load the simulink model==&lt;br /&gt;
&lt;br /&gt;
The tool needs to load a Simulink Model in order to obtain model specific information, such as port names, model name, etc. After parsing the model necessary information is collected and the tool can go further. The first image shows the select model screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget03.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user then selects the MDL file that contains the model that will be executed on the ARM7 platform.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget04.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once again after completing the required steps inside the tab, new tabs are enabled and the user can continue to enter information required to achieve the final executable file.&lt;br /&gt;
&lt;br /&gt;
==Load the RTW generated code==&lt;br /&gt;
&lt;br /&gt;
In order to complete this step, the user must first execute the [[Simulink settings for generating code]] and generate code with the Matlab Simulink Real-Time Workshop.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget05.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After the folder containing the RTW generated code is specified, the tool will merge the model code together with the base system code. The base system code is selected in the next step.&lt;br /&gt;
&lt;br /&gt;
==Select the base stub code used==&lt;br /&gt;
&lt;br /&gt;
The stub code contains both the base system functionality and the main system loop. The main system loop is responsible for the execution of the model. The main loop execution is described in [[Simulink Execution on the ARM7 target]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget06.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The screenshot above presents the user two options. One of them is to use the code provided with the SimulinkTarget tool. In this case the code used is related to a specific SVN release and will contain a version number. The user must be sure to use compatible combinations of software, that is, bootloader version should be the same as the stub code used with the SimulinkTarget.&lt;br /&gt;
&lt;br /&gt;
In case the user has a copy of a newer code that either does not match the version provided by the tool or that is not yet a release, it is possible to select the second option. If this option is chosen, the user must provide the address of the folder containing the stub code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget07.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After selecting one of the two options two tabs are enabled. The user can thereafter walk through the final steps in the process of setting up the configuration for generating a binary executable. The figure below differs from the above regarding the status of the configuration file. After clicking the &amp;#039;&amp;#039;&amp;#039;Save&amp;#039;&amp;#039;&amp;#039; button the tool removes the asterisks from the tittle bar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget08.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The base stub code provided by the tool or the user will be used together with the RTW generated code to compose the final source code, which will then be compiled into an application loaded by the ARM7 board bootloader.&lt;br /&gt;
&lt;br /&gt;
==Define CAN binding and marshaling==&lt;br /&gt;
&lt;br /&gt;
This part of the work flow defines the CAN port binding. Since in the Concept Car there is a CAN bus responsible for supplying a communication means to all of the boards in the network, all data is transmitted through it. When modeling functionality in a Simulink Data-Flow model, there is only reference to IN ports and OUT ports. The model does not describe how data is input and output to the ports. They are an open link to the environment where the model executes.&lt;br /&gt;
&lt;br /&gt;
For this reason the user must provide a binding of the ports from the model to the Car&amp;#039;s communication mechanism, which is a CAN bus. This is done by assigning CAN ids to can messages that will carry the data to and from the model (more specifically, to/from the model ports).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget09.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user is able to define an ID, which will be automatically converted to a Hexadecimal value by the tool. A gradient, which is used to transform the value that the message carries (e.g. to transform a floating point number into an integer number). And a y-intercept parameter used to determine a scaling factor for the message value. These three fields are user configurable and the last two are optional. The optional fields are enabled by the checkboxes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget10.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After defining the configurable fields for all ports the user can move on to the next step where the code will be generated. The information entered here by the user will be used during code generation. When the generator writes the code to get the value from the model (accessing the structure defined by the RTW generated code) it will then use the ID defined by the user to call the base CAN code to send the message on the bus.&lt;br /&gt;
&lt;br /&gt;
The code generator figures the port variable names based on information from the Model and creates code to access them. After that, code is generated to send the values of the variables through the CAN bus using the IDs defined by the user.&lt;br /&gt;
&lt;br /&gt;
==Define output folder and generate code==&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget11.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Optionally compile the generated code==&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget12.jpg]]&lt;/div&gt;</summary>
		<author><name>Raphael</name></author>	</entry>

	<entry>
		<id>https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7</id>
		<title>Simulink2ARM7</title>
		<link rel="alternate" type="text/html" href="https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7"/>
				<updated>2009-04-15T14:08:24Z</updated>
		
		<summary type="html">&lt;p&gt;Raphael: /* Define CAN binding and marshaling */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Overview==&lt;br /&gt;
&lt;br /&gt;
This page describes the user interaction with the SimulinkTarget tool. Every step needed in order to get from Simulink Model to the Executable file is described in this page. The first step before getting the model to run in the ARM7 Board is to generate the code that implements the Simulink Model. This process is described here [[Simulink settings for generating code]].&lt;br /&gt;
&lt;br /&gt;
==Create (or load) a project configuration file==&lt;br /&gt;
&lt;br /&gt;
The SimulinkTarget tool creates a configuration file where all the decisions made during the conversion process are saved. Doing so enables the user to load the configuration file and avoids the overhead of going through all of the steps every time new code is generated. The first step is to either load or create a configuration file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget01.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After loading/creating a configuration file, new tabs are enabled and the user may proceed to the next steps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget02.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As the user can easily note, the tab Simulink Model has been enabled and is intuitively the next step to be taken.&lt;br /&gt;
&lt;br /&gt;
==Load the simulink model==&lt;br /&gt;
&lt;br /&gt;
The tool needs to load a Simulink Model in order to obtain model specific information, such as port names, model name, etc. After parsing the model necessary information is collected and the tool can go further. The first image shows the select model screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget03.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user then selects the MDL file that contains the model that will be executed on the ARM7 platform.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget04.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once again after completing the required steps inside the tab, new tabs are enabled and the user can continue to enter information required to achieve the final executable file.&lt;br /&gt;
&lt;br /&gt;
==Load the RTW generated code==&lt;br /&gt;
&lt;br /&gt;
In order to complete this step, the user must first execute the [[Simulink settings for generating code]] and generate code with the Matlab Simulink Real-Time Workshop.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget05.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After the folder containing the RTW generated code is specified, the tool will merge the model code together with the base system code. The base system code is selected in the next step.&lt;br /&gt;
&lt;br /&gt;
==Select the base stub code used==&lt;br /&gt;
&lt;br /&gt;
The stub code contains both the base system functionality and the main system loop. The main system loop is responsible for the execution of the model. The main loop execution is described in [[Simulink Execution on the ARM7 target]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget06.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The screenshot above presents the user two options. One of them is to use the code provided with the SimulinkTarget tool. In this case the code used is related to a specific SVN release and will contain a version number. The user must be sure to use compatible combinations of software, that is, bootloader version should be the same as the stub code used with the SimulinkTarget.&lt;br /&gt;
&lt;br /&gt;
In case the user has a copy of a newer code that either does not match the version provided by the tool or that is not yet a release, it is possible to select the second option. If this option is chosen, the user must provide the address of the folder containing the stub code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget07.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After selecting one of the two options two tabs are enabled. The user can thereafter walk through the final steps in the process of setting up the configuration for generating a binary executable. The figure below differs from the above regarding the status of the configuration file. After clicking the &amp;#039;&amp;#039;&amp;#039;Save&amp;#039;&amp;#039;&amp;#039; button the tool removes the asterisks from the tittle bar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget08.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The base stub code provided by the tool or the user will be used together with the RTW generated code to compose the final source code, which will then be compiled into an application loaded by the ARM7 board bootloader.&lt;br /&gt;
&lt;br /&gt;
==Define CAN binding and marshaling==&lt;br /&gt;
&lt;br /&gt;
This part of the work flow defines the CAN port binding. Since in the Concept Car there is a CAN bus responsible for supplying a communication means to all of the boards in the network, all data is transmitted through it. When modeling functionality in a Simulink Data-Flow model, there is only reference to IN ports and OUT ports. The model does not describe how data is input and output to the ports. They are an open link to the environment where the model executes.&lt;br /&gt;
&lt;br /&gt;
For this reason the user must provide a binding of the ports from the model to the Car&amp;#039;s communication mechanism, which is a CAN bus. This is done by assigning CAN ids to can messages that will carry the data to and from the model (more specifically, to/from the model ports).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget09.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user is able to define an ID, which will be automatically converted to a Hexadecimal value by the tool. A gradient, which is used to transform the value that the message carries (e.g. to transform a floating point number into an integer number). And a y-intercept parameter used to determine a scaling factor for the message value. These three fields are user configurable and the last two are optional. The optional fields are enabled by the checkboxes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget10.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Define output folder and generate code==&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget11.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Optionally compile the generated code==&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget12.jpg]]&lt;/div&gt;</summary>
		<author><name>Raphael</name></author>	</entry>

	<entry>
		<id>https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7</id>
		<title>Simulink2ARM7</title>
		<link rel="alternate" type="text/html" href="https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7"/>
				<updated>2009-04-15T14:07:30Z</updated>
		
		<summary type="html">&lt;p&gt;Raphael: /* Define CAN binding and marshaling */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Overview==&lt;br /&gt;
&lt;br /&gt;
This page describes the user interaction with the SimulinkTarget tool. Every step needed in order to get from Simulink Model to the Executable file is described in this page. The first step before getting the model to run in the ARM7 Board is to generate the code that implements the Simulink Model. This process is described here [[Simulink settings for generating code]].&lt;br /&gt;
&lt;br /&gt;
==Create (or load) a project configuration file==&lt;br /&gt;
&lt;br /&gt;
The SimulinkTarget tool creates a configuration file where all the decisions made during the conversion process are saved. Doing so enables the user to load the configuration file and avoids the overhead of going through all of the steps every time new code is generated. The first step is to either load or create a configuration file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget01.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After loading/creating a configuration file, new tabs are enabled and the user may proceed to the next steps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget02.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As the user can easily note, the tab Simulink Model has been enabled and is intuitively the next step to be taken.&lt;br /&gt;
&lt;br /&gt;
==Load the simulink model==&lt;br /&gt;
&lt;br /&gt;
The tool needs to load a Simulink Model in order to obtain model specific information, such as port names, model name, etc. After parsing the model necessary information is collected and the tool can go further. The first image shows the select model screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget03.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user then selects the MDL file that contains the model that will be executed on the ARM7 platform.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget04.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once again after completing the required steps inside the tab, new tabs are enabled and the user can continue to enter information required to achieve the final executable file.&lt;br /&gt;
&lt;br /&gt;
==Load the RTW generated code==&lt;br /&gt;
&lt;br /&gt;
In order to complete this step, the user must first execute the [[Simulink settings for generating code]] and generate code with the Matlab Simulink Real-Time Workshop.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget05.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After the folder containing the RTW generated code is specified, the tool will merge the model code together with the base system code. The base system code is selected in the next step.&lt;br /&gt;
&lt;br /&gt;
==Select the base stub code used==&lt;br /&gt;
&lt;br /&gt;
The stub code contains both the base system functionality and the main system loop. The main system loop is responsible for the execution of the model. The main loop execution is described in [[Simulink Execution on the ARM7 target]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget06.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The screenshot above presents the user two options. One of them is to use the code provided with the SimulinkTarget tool. In this case the code used is related to a specific SVN release and will contain a version number. The user must be sure to use compatible combinations of software, that is, bootloader version should be the same as the stub code used with the SimulinkTarget.&lt;br /&gt;
&lt;br /&gt;
In case the user has a copy of a newer code that either does not match the version provided by the tool or that is not yet a release, it is possible to select the second option. If this option is chosen, the user must provide the address of the folder containing the stub code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget07.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After selecting one of the two options two tabs are enabled. The user can thereafter walk through the final steps in the process of setting up the configuration for generating a binary executable. The figure below differs from the above regarding the status of the configuration file. After clicking the &amp;#039;&amp;#039;&amp;#039;Save&amp;#039;&amp;#039;&amp;#039; button the tool removes the asterisks from the tittle bar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget08.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The base stub code provided by the tool or the user will be used together with the RTW generated code to compose the final source code, which will then be compiled into an application loaded by the ARM7 board bootloader.&lt;br /&gt;
&lt;br /&gt;
==Define CAN binding and marshaling==&lt;br /&gt;
&lt;br /&gt;
This part of the work flow defines the CAN port binding. Since in the Concept Car there is a CAN bus responsible for supplying a communication means to all of the boards in the network, all data is transmitted through it. When modeling functionality in a Simulink Data-Flow model, there is only reference to IN ports and OUT ports. The model does not describe how data is input and output to the ports. They are an open link to the environment where the model executes.&lt;br /&gt;
&lt;br /&gt;
For this reason the user must provide a binding of the ports from the model to the Car&amp;#039;s communication mechanism, which is a CAN bus. This is done by assigning CAN ids to can messages that will carry the data to and from the model (more specifically, to/from the model ports).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget09.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user is able to define an ID, which will be automatically converted to a Hexadecimal value by the tool. A gradient, which is used to transform the value that the message carries (e.g. to transform a floating point number into an integer number). And a y-intersect parameter used to determine a scaling factor for the message value. These three fields are user configurable and the last two are optional. The optional fields are enabled by the checkboxes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget10.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Define output folder and generate code==&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget11.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Optionally compile the generated code==&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget12.jpg]]&lt;/div&gt;</summary>
		<author><name>Raphael</name></author>	</entry>

	<entry>
		<id>https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7</id>
		<title>Simulink2ARM7</title>
		<link rel="alternate" type="text/html" href="https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7"/>
				<updated>2009-04-15T13:47:46Z</updated>
		
		<summary type="html">&lt;p&gt;Raphael: /* Define CAN binding and marshaling */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Overview==&lt;br /&gt;
&lt;br /&gt;
This page describes the user interaction with the SimulinkTarget tool. Every step needed in order to get from Simulink Model to the Executable file is described in this page. The first step before getting the model to run in the ARM7 Board is to generate the code that implements the Simulink Model. This process is described here [[Simulink settings for generating code]].&lt;br /&gt;
&lt;br /&gt;
==Create (or load) a project configuration file==&lt;br /&gt;
&lt;br /&gt;
The SimulinkTarget tool creates a configuration file where all the decisions made during the conversion process are saved. Doing so enables the user to load the configuration file and avoids the overhead of going through all of the steps every time new code is generated. The first step is to either load or create a configuration file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget01.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After loading/creating a configuration file, new tabs are enabled and the user may proceed to the next steps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget02.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As the user can easily note, the tab Simulink Model has been enabled and is intuitively the next step to be taken.&lt;br /&gt;
&lt;br /&gt;
==Load the simulink model==&lt;br /&gt;
&lt;br /&gt;
The tool needs to load a Simulink Model in order to obtain model specific information, such as port names, model name, etc. After parsing the model necessary information is collected and the tool can go further. The first image shows the select model screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget03.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user then selects the MDL file that contains the model that will be executed on the ARM7 platform.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget04.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once again after completing the required steps inside the tab, new tabs are enabled and the user can continue to enter information required to achieve the final executable file.&lt;br /&gt;
&lt;br /&gt;
==Load the RTW generated code==&lt;br /&gt;
&lt;br /&gt;
In order to complete this step, the user must first execute the [[Simulink settings for generating code]] and generate code with the Matlab Simulink Real-Time Workshop.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget05.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After the folder containing the RTW generated code is specified, the tool will merge the model code together with the base system code. The base system code is selected in the next step.&lt;br /&gt;
&lt;br /&gt;
==Select the base stub code used==&lt;br /&gt;
&lt;br /&gt;
The stub code contains both the base system functionality and the main system loop. The main system loop is responsible for the execution of the model. The main loop execution is described in [[Simulink Execution on the ARM7 target]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget06.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The screenshot above presents the user two options. One of them is to use the code provided with the SimulinkTarget tool. In this case the code used is related to a specific SVN release and will contain a version number. The user must be sure to use compatible combinations of software, that is, bootloader version should be the same as the stub code used with the SimulinkTarget.&lt;br /&gt;
&lt;br /&gt;
In case the user has a copy of a newer code that either does not match the version provided by the tool or that is not yet a release, it is possible to select the second option. If this option is chosen, the user must provide the address of the folder containing the stub code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget07.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After selecting one of the two options two tabs are enabled. The user can thereafter walk through the final steps in the process of setting up the configuration for generating a binary executable. The figure below differs from the above regarding the status of the configuration file. After clicking the &amp;#039;&amp;#039;&amp;#039;Save&amp;#039;&amp;#039;&amp;#039; button the tool removes the asterisks from the tittle bar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget08.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The base stub code provided by the tool or the user will be used together with the RTW generated code to compose the final source code, which will then be compiled into an application loaded by the ARM7 board bootloader.&lt;br /&gt;
&lt;br /&gt;
==Define CAN binding and marshaling==&lt;br /&gt;
&lt;br /&gt;
This part of the work flow defines the CAN port binding. Since in the Concept Car there is a CAN bus responsible for supplying a communication means to all of the boards in the network, all data is transmitted through it. When modeling functionality in a Simulink Data-Flow model, there is only reference to IN ports and OUT ports. The model does not describe how data is input and output to the ports. They are an open link to the environment where the model executes.&lt;br /&gt;
&lt;br /&gt;
For this reason the user must provide a binding of the ports from the model to the Car&amp;#039;s communication mechanism, which is a CAN bus. This is done by assigning CAN ids to can messages that will carry the data to and from the model (more specifically, to/from the model ports).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget09.jpg]]&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget10.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Define output folder and generate code==&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget11.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Optionally compile the generated code==&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget12.jpg]]&lt;/div&gt;</summary>
		<author><name>Raphael</name></author>	</entry>

	<entry>
		<id>https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7</id>
		<title>Simulink2ARM7</title>
		<link rel="alternate" type="text/html" href="https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7"/>
				<updated>2009-04-15T13:47:40Z</updated>
		
		<summary type="html">&lt;p&gt;Raphael: /* Define CAN binding and marshaling */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Overview==&lt;br /&gt;
&lt;br /&gt;
This page describes the user interaction with the SimulinkTarget tool. Every step needed in order to get from Simulink Model to the Executable file is described in this page. The first step before getting the model to run in the ARM7 Board is to generate the code that implements the Simulink Model. This process is described here [[Simulink settings for generating code]].&lt;br /&gt;
&lt;br /&gt;
==Create (or load) a project configuration file==&lt;br /&gt;
&lt;br /&gt;
The SimulinkTarget tool creates a configuration file where all the decisions made during the conversion process are saved. Doing so enables the user to load the configuration file and avoids the overhead of going through all of the steps every time new code is generated. The first step is to either load or create a configuration file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget01.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After loading/creating a configuration file, new tabs are enabled and the user may proceed to the next steps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget02.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As the user can easily note, the tab Simulink Model has been enabled and is intuitively the next step to be taken.&lt;br /&gt;
&lt;br /&gt;
==Load the simulink model==&lt;br /&gt;
&lt;br /&gt;
The tool needs to load a Simulink Model in order to obtain model specific information, such as port names, model name, etc. After parsing the model necessary information is collected and the tool can go further. The first image shows the select model screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget03.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user then selects the MDL file that contains the model that will be executed on the ARM7 platform.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget04.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once again after completing the required steps inside the tab, new tabs are enabled and the user can continue to enter information required to achieve the final executable file.&lt;br /&gt;
&lt;br /&gt;
==Load the RTW generated code==&lt;br /&gt;
&lt;br /&gt;
In order to complete this step, the user must first execute the [[Simulink settings for generating code]] and generate code with the Matlab Simulink Real-Time Workshop.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget05.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After the folder containing the RTW generated code is specified, the tool will merge the model code together with the base system code. The base system code is selected in the next step.&lt;br /&gt;
&lt;br /&gt;
==Select the base stub code used==&lt;br /&gt;
&lt;br /&gt;
The stub code contains both the base system functionality and the main system loop. The main system loop is responsible for the execution of the model. The main loop execution is described in [[Simulink Execution on the ARM7 target]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget06.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The screenshot above presents the user two options. One of them is to use the code provided with the SimulinkTarget tool. In this case the code used is related to a specific SVN release and will contain a version number. The user must be sure to use compatible combinations of software, that is, bootloader version should be the same as the stub code used with the SimulinkTarget.&lt;br /&gt;
&lt;br /&gt;
In case the user has a copy of a newer code that either does not match the version provided by the tool or that is not yet a release, it is possible to select the second option. If this option is chosen, the user must provide the address of the folder containing the stub code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget07.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After selecting one of the two options two tabs are enabled. The user can thereafter walk through the final steps in the process of setting up the configuration for generating a binary executable. The figure below differs from the above regarding the status of the configuration file. After clicking the &amp;#039;&amp;#039;&amp;#039;Save&amp;#039;&amp;#039;&amp;#039; button the tool removes the asterisks from the tittle bar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget08.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The base stub code provided by the tool or the user will be used together with the RTW generated code to compose the final source code, which will then be compiled into an application loaded by the ARM7 board bootloader.&lt;br /&gt;
&lt;br /&gt;
==Define CAN binding and marshaling==&lt;br /&gt;
&lt;br /&gt;
This part of the work flow defines the CAN port binding. Since in the Concept Car there is a CAN bus responsible for supplying a communication means to all of the boards in the network, all data is transmitted through it. When modeling functionality in a Simulink Data-Flow model, there is only reference to IN ports and OUT ports. The model does not describe how data is input and output to the ports. They are an open link to the environment where the model executes.&lt;br /&gt;
&lt;br /&gt;
For this reason the user must provide a binding of the ports from the model to the Car&amp;#039;s communication mechanism, which is a CAN bus. This is done by assigning CAN ids to can messages that will carry the data to and from the model (more specifically, to/from the model ports).&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget09.jpg]]&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget10.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Define output folder and generate code==&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget11.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Optionally compile the generated code==&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget12.jpg]]&lt;/div&gt;</summary>
		<author><name>Raphael</name></author>	</entry>

	<entry>
		<id>https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7</id>
		<title>Simulink2ARM7</title>
		<link rel="alternate" type="text/html" href="https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7"/>
				<updated>2009-04-15T13:37:07Z</updated>
		
		<summary type="html">&lt;p&gt;Raphael: /* Select the base stub code used */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Overview==&lt;br /&gt;
&lt;br /&gt;
This page describes the user interaction with the SimulinkTarget tool. Every step needed in order to get from Simulink Model to the Executable file is described in this page. The first step before getting the model to run in the ARM7 Board is to generate the code that implements the Simulink Model. This process is described here [[Simulink settings for generating code]].&lt;br /&gt;
&lt;br /&gt;
==Create (or load) a project configuration file==&lt;br /&gt;
&lt;br /&gt;
The SimulinkTarget tool creates a configuration file where all the decisions made during the conversion process are saved. Doing so enables the user to load the configuration file and avoids the overhead of going through all of the steps every time new code is generated. The first step is to either load or create a configuration file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget01.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After loading/creating a configuration file, new tabs are enabled and the user may proceed to the next steps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget02.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As the user can easily note, the tab Simulink Model has been enabled and is intuitively the next step to be taken.&lt;br /&gt;
&lt;br /&gt;
==Load the simulink model==&lt;br /&gt;
&lt;br /&gt;
The tool needs to load a Simulink Model in order to obtain model specific information, such as port names, model name, etc. After parsing the model necessary information is collected and the tool can go further. The first image shows the select model screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget03.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user then selects the MDL file that contains the model that will be executed on the ARM7 platform.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget04.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once again after completing the required steps inside the tab, new tabs are enabled and the user can continue to enter information required to achieve the final executable file.&lt;br /&gt;
&lt;br /&gt;
==Load the RTW generated code==&lt;br /&gt;
&lt;br /&gt;
In order to complete this step, the user must first execute the [[Simulink settings for generating code]] and generate code with the Matlab Simulink Real-Time Workshop.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget05.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After the folder containing the RTW generated code is specified, the tool will merge the model code together with the base system code. The base system code is selected in the next step.&lt;br /&gt;
&lt;br /&gt;
==Select the base stub code used==&lt;br /&gt;
&lt;br /&gt;
The stub code contains both the base system functionality and the main system loop. The main system loop is responsible for the execution of the model. The main loop execution is described in [[Simulink Execution on the ARM7 target]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget06.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The screenshot above presents the user two options. One of them is to use the code provided with the SimulinkTarget tool. In this case the code used is related to a specific SVN release and will contain a version number. The user must be sure to use compatible combinations of software, that is, bootloader version should be the same as the stub code used with the SimulinkTarget.&lt;br /&gt;
&lt;br /&gt;
In case the user has a copy of a newer code that either does not match the version provided by the tool or that is not yet a release, it is possible to select the second option. If this option is chosen, the user must provide the address of the folder containing the stub code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget07.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After selecting one of the two options two tabs are enabled. The user can thereafter walk through the final steps in the process of setting up the configuration for generating a binary executable. The figure below differs from the above regarding the status of the configuration file. After clicking the &amp;#039;&amp;#039;&amp;#039;Save&amp;#039;&amp;#039;&amp;#039; button the tool removes the asterisks from the tittle bar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget08.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The base stub code provided by the tool or the user will be used together with the RTW generated code to compose the final source code, which will then be compiled into an application loaded by the ARM7 board bootloader.&lt;br /&gt;
&lt;br /&gt;
==Define CAN binding and marshaling==&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget09.jpg]]&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget10.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Define output folder and generate code==&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget11.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Optionally compile the generated code==&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget12.jpg]]&lt;/div&gt;</summary>
		<author><name>Raphael</name></author>	</entry>

	<entry>
		<id>https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7</id>
		<title>Simulink2ARM7</title>
		<link rel="alternate" type="text/html" href="https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7"/>
				<updated>2009-04-15T13:36:21Z</updated>
		
		<summary type="html">&lt;p&gt;Raphael: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Overview==&lt;br /&gt;
&lt;br /&gt;
This page describes the user interaction with the SimulinkTarget tool. Every step needed in order to get from Simulink Model to the Executable file is described in this page. The first step before getting the model to run in the ARM7 Board is to generate the code that implements the Simulink Model. This process is described here [[Simulink settings for generating code]].&lt;br /&gt;
&lt;br /&gt;
==Create (or load) a project configuration file==&lt;br /&gt;
&lt;br /&gt;
The SimulinkTarget tool creates a configuration file where all the decisions made during the conversion process are saved. Doing so enables the user to load the configuration file and avoids the overhead of going through all of the steps every time new code is generated. The first step is to either load or create a configuration file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget01.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After loading/creating a configuration file, new tabs are enabled and the user may proceed to the next steps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget02.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As the user can easily note, the tab Simulink Model has been enabled and is intuitively the next step to be taken.&lt;br /&gt;
&lt;br /&gt;
==Load the simulink model==&lt;br /&gt;
&lt;br /&gt;
The tool needs to load a Simulink Model in order to obtain model specific information, such as port names, model name, etc. After parsing the model necessary information is collected and the tool can go further. The first image shows the select model screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget03.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user then selects the MDL file that contains the model that will be executed on the ARM7 platform.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget04.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once again after completing the required steps inside the tab, new tabs are enabled and the user can continue to enter information required to achieve the final executable file.&lt;br /&gt;
&lt;br /&gt;
==Load the RTW generated code==&lt;br /&gt;
&lt;br /&gt;
In order to complete this step, the user must first execute the [[Simulink settings for generating code]] and generate code with the Matlab Simulink Real-Time Workshop.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget05.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After the folder containing the RTW generated code is specified, the tool will merge the model code together with the base system code. The base system code is selected in the next step.&lt;br /&gt;
&lt;br /&gt;
==Select the base stub code used==&lt;br /&gt;
&lt;br /&gt;
The stub code contains both the base system functionality and the main system loop. The main system loop is responsible for the execution of the model. The main loop execution is described in [[Simulink Execution on the ARM7 target]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget06.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The screenshot above presents the user two options. One of them is to use the code provided with the SimulinkTarget tool. In this case the code used is related to a specific SVN release and will contain a version number. The user must be sure to use compatible combinations of software, that is, bootloader version should be the same as the stub code used with the SimulinkTarget.&lt;br /&gt;
&lt;br /&gt;
In case the user has a copy of a newer code that either does not match the version provided by the tool or that is not yet a release, it is possible to select the second option. If this option is chosen, the user must provide the address of the folder containing the stub code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget07.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After selecting one of the two options two tabs are enabled. The user can thereafter walk through the final steps in the process of setting up the configuration for generating a binary executable. The figure below differs from the above regarding the status of the configuration file. After clicking the &amp;#039;&amp;#039;&amp;#039;Save&amp;#039;&amp;#039;&amp;#039; button the tool removes the asterisks from the tittle bar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget08.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The base stub code provided by the tool or the user will be used together with the RTW generated code to compose the final source code, which will then be compiled into the application loaded by the bootloader.&lt;br /&gt;
&lt;br /&gt;
==Define CAN binding and marshaling==&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget09.jpg]]&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget10.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Define output folder and generate code==&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget11.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Optionally compile the generated code==&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget12.jpg]]&lt;/div&gt;</summary>
		<author><name>Raphael</name></author>	</entry>

	<entry>
		<id>https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7</id>
		<title>Simulink2ARM7</title>
		<link rel="alternate" type="text/html" href="https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7"/>
				<updated>2009-04-15T13:30:53Z</updated>
		
		<summary type="html">&lt;p&gt;Raphael: /* Select the base stub code used */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Overview==&lt;br /&gt;
&lt;br /&gt;
This page describes the user interaction with the SimulinkTarget tool. Every step needed in order to get from Simulink Model to the Executable file is described in this page. The first step before getting the model to run in the ARM7 Board is to generate the code that implements the Simulink Model. This process is described here [[Simulink settings for generating code]].&lt;br /&gt;
&lt;br /&gt;
==Create (or load) a project configuration file==&lt;br /&gt;
&lt;br /&gt;
The SimulinkTarget tool creates a configuration file where all the decisions made during the conversion process are saved. Doing so enables the user to load the configuration file and avoids the overhead of going through all of the steps every time new code is generated. The first step is to either load or create a configuration file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget01.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After loading/creating a configuration file, new tabs are enabled and the user may proceed to the next steps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget02.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As the user can easily note, the tab Simulink Model has been enabled and is intuitively the next step to be taken.&lt;br /&gt;
&lt;br /&gt;
==Load the simulink model==&lt;br /&gt;
&lt;br /&gt;
The tool needs to load a Simulink Model in order to obtain model specific information, such as port names, model name, etc. After parsing the model necessary information is collected and the tool can go further. The first image shows the select model screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget03.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user then selects the MDL file that contains the model that will be executed on the ARM7 platform.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget04.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once again after completing the required steps inside the tab, new tabs are enabled and the user can continue to enter information required to achieve the final executable file.&lt;br /&gt;
&lt;br /&gt;
==Load the RTW generated code==&lt;br /&gt;
&lt;br /&gt;
In order to complete this step, the user must first execute the [[Simulink settings for generating code]] and generate code with the Matlab Simulink Real-Time Workshop.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget05.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After the folder containing the RTW generated code is specified, the tool will merge the model code together with the base system code. The base system code is selected in the next step.&lt;br /&gt;
&lt;br /&gt;
==Select the base stub code used==&lt;br /&gt;
&lt;br /&gt;
The stub code contains both the base system functionality and the main system loop. The main system loop is responsible for the execution of the model. The main loop execution is described in [[Simulink Execution on the ARM7 target]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget06.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The screenshot above presents the user two options. One of them is to use the code provided with the SimulinkTarget tool. In this case the code used is related to a specific SVN release and will contain a version number. The user must be sure to use compatible combinations of software, that is, bootloader version should be the same as the stub code used with the SimulinkTarget.&lt;br /&gt;
&lt;br /&gt;
In case the user has a copy of a newer code that either does not match the version provided by the tool or that is not yet a release, it is possible to select the second option. If this option is chosen, the user must provide the address of the folder containing the stub code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget07.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After selecting one of the two options two tabs are enabled. The user can thereafter walk through the final steps in the process of setting up the configuration for generating a binary executable. The figure below differs from the above regarding the status of the configuration file. After clicking the &amp;#039;&amp;#039;&amp;#039;Save&amp;#039;&amp;#039;&amp;#039; button the tool removes the asterisks from the tittle bar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget08.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The base stub code provided by the tool or the user will be used together with the RTW generated code to compose the final source code, which will then be compiled into the application loaded by the bootloader.&lt;br /&gt;
&lt;br /&gt;
==Define CAN binding and marshaling==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget09.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget10.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Define output folder and generate code==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget11.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Optionally compile the generated code==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget12.jpg]]&lt;/div&gt;</summary>
		<author><name>Raphael</name></author>	</entry>

	<entry>
		<id>https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7</id>
		<title>Simulink2ARM7</title>
		<link rel="alternate" type="text/html" href="https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7"/>
				<updated>2009-04-15T13:28:38Z</updated>
		
		<summary type="html">&lt;p&gt;Raphael: /* Select the base stub code used */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Overview==&lt;br /&gt;
&lt;br /&gt;
This page describes the user interaction with the SimulinkTarget tool. Every step needed in order to get from Simulink Model to the Executable file is described in this page. The first step before getting the model to run in the ARM7 Board is to generate the code that implements the Simulink Model. This process is described here [[Simulink settings for generating code]].&lt;br /&gt;
&lt;br /&gt;
==Create (or load) a project configuration file==&lt;br /&gt;
&lt;br /&gt;
The SimulinkTarget tool creates a configuration file where all the decisions made during the conversion process are saved. Doing so enables the user to load the configuration file and avoids the overhead of going through all of the steps every time new code is generated. The first step is to either load or create a configuration file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget01.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After loading/creating a configuration file, new tabs are enabled and the user may proceed to the next steps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget02.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As the user can easily note, the tab Simulink Model has been enabled and is intuitively the next step to be taken.&lt;br /&gt;
&lt;br /&gt;
==Load the simulink model==&lt;br /&gt;
&lt;br /&gt;
The tool needs to load a Simulink Model in order to obtain model specific information, such as port names, model name, etc. After parsing the model necessary information is collected and the tool can go further. The first image shows the select model screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget03.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user then selects the MDL file that contains the model that will be executed on the ARM7 platform.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget04.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once again after completing the required steps inside the tab, new tabs are enabled and the user can continue to enter information required to achieve the final executable file.&lt;br /&gt;
&lt;br /&gt;
==Load the RTW generated code==&lt;br /&gt;
&lt;br /&gt;
In order to complete this step, the user must first execute the [[Simulink settings for generating code]] and generate code with the Matlab Simulink Real-Time Workshop.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget05.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After the folder containing the RTW generated code is specified, the tool will merge the model code together with the base system code. The base system code is selected in the next step.&lt;br /&gt;
&lt;br /&gt;
==Select the base stub code used==&lt;br /&gt;
&lt;br /&gt;
The stub code contains both the base system functionality and the main system loop. The main system loop is responsible for the execution of the model. The main loop execution is described in [[Simulink Execution on the ARM7 target]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget06.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The screenshot above presents the user two options. One of them is to use the code provided with the SimulinkTarget tool. In this case the code used is related to a specific SVN release and will contain a version number. The user must be sure to use compatible combinations of software, that is, bootloader version should be the same as the stub code used with the SimulinkTarget.&lt;br /&gt;
&lt;br /&gt;
In case the user has a copy of a newer code that either does not match the version provided by the tool or that is not yet a release, it is possible to select the second option. If this option is chosen, the user must provide the address of the folder containing the stub code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget07.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After selecting one of the two options the last two tabs are enabled. The user can thereafter finalize the process of setting up the configuration for generating a binary executable. The figure below differs from the above regarding the status of the configuration file. After clicking the &amp;#039;&amp;#039;&amp;#039;Save&amp;#039;&amp;#039;&amp;#039; button the tool removes the asterisks from the tittle bar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget08.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Define CAN binding and marshaling==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget09.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget10.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Define output folder and generate code==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget11.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Optionally compile the generated code==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget12.jpg]]&lt;/div&gt;</summary>
		<author><name>Raphael</name></author>	</entry>

	<entry>
		<id>https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7</id>
		<title>Simulink2ARM7</title>
		<link rel="alternate" type="text/html" href="https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7"/>
				<updated>2009-04-15T13:24:32Z</updated>
		
		<summary type="html">&lt;p&gt;Raphael: /* Select the base stub code used */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Overview==&lt;br /&gt;
&lt;br /&gt;
This page describes the user interaction with the SimulinkTarget tool. Every step needed in order to get from Simulink Model to the Executable file is described in this page. The first step before getting the model to run in the ARM7 Board is to generate the code that implements the Simulink Model. This process is described here [[Simulink settings for generating code]].&lt;br /&gt;
&lt;br /&gt;
==Create (or load) a project configuration file==&lt;br /&gt;
&lt;br /&gt;
The SimulinkTarget tool creates a configuration file where all the decisions made during the conversion process are saved. Doing so enables the user to load the configuration file and avoids the overhead of going through all of the steps every time new code is generated. The first step is to either load or create a configuration file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget01.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After loading/creating a configuration file, new tabs are enabled and the user may proceed to the next steps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget02.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As the user can easily note, the tab Simulink Model has been enabled and is intuitively the next step to be taken.&lt;br /&gt;
&lt;br /&gt;
==Load the simulink model==&lt;br /&gt;
&lt;br /&gt;
The tool needs to load a Simulink Model in order to obtain model specific information, such as port names, model name, etc. After parsing the model necessary information is collected and the tool can go further. The first image shows the select model screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget03.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user then selects the MDL file that contains the model that will be executed on the ARM7 platform.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget04.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once again after completing the required steps inside the tab, new tabs are enabled and the user can continue to enter information required to achieve the final executable file.&lt;br /&gt;
&lt;br /&gt;
==Load the RTW generated code==&lt;br /&gt;
&lt;br /&gt;
In order to complete this step, the user must first execute the [[Simulink settings for generating code]] and generate code with the Matlab Simulink Real-Time Workshop.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget05.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After the folder containing the RTW generated code is specified, the tool will merge the model code together with the base system code. The base system code is selected in the next step.&lt;br /&gt;
&lt;br /&gt;
==Select the base stub code used==&lt;br /&gt;
&lt;br /&gt;
The stub code contains both the base system functionality and the main system loop. The main system loop is responsible for the execution of the model. The main loop execution is described in [[Simulink Execution on the ARM7 target]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget06.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The screenshot above presents the user two options. One of them is to use the code provided with the SimulinkTarget tool. In this case the code used is related to a specific SVN release and will contain a version number. The user must be sure to use compatible combinations of software, that is, bootloader version should be the same as the stub code used with the SimulinkTarget.&lt;br /&gt;
&lt;br /&gt;
In case the user has a copy of a newer code that either does not match the version provided by the tool or that is not yet a release, it is possible to select the second option. If this option is chosen, the user must provide the address of the folder containing the stub code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget07.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget08.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Define CAN binding and marshaling==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget09.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget10.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Define output folder and generate code==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget11.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Optionally compile the generated code==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget12.jpg]]&lt;/div&gt;</summary>
		<author><name>Raphael</name></author>	</entry>

	<entry>
		<id>https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7</id>
		<title>Simulink2ARM7</title>
		<link rel="alternate" type="text/html" href="https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7"/>
				<updated>2009-04-15T13:19:03Z</updated>
		
		<summary type="html">&lt;p&gt;Raphael: /* Select the base stub code used */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Overview==&lt;br /&gt;
&lt;br /&gt;
This page describes the user interaction with the SimulinkTarget tool. Every step needed in order to get from Simulink Model to the Executable file is described in this page. The first step before getting the model to run in the ARM7 Board is to generate the code that implements the Simulink Model. This process is described here [[Simulink settings for generating code]].&lt;br /&gt;
&lt;br /&gt;
==Create (or load) a project configuration file==&lt;br /&gt;
&lt;br /&gt;
The SimulinkTarget tool creates a configuration file where all the decisions made during the conversion process are saved. Doing so enables the user to load the configuration file and avoids the overhead of going through all of the steps every time new code is generated. The first step is to either load or create a configuration file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget01.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After loading/creating a configuration file, new tabs are enabled and the user may proceed to the next steps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget02.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As the user can easily note, the tab Simulink Model has been enabled and is intuitively the next step to be taken.&lt;br /&gt;
&lt;br /&gt;
==Load the simulink model==&lt;br /&gt;
&lt;br /&gt;
The tool needs to load a Simulink Model in order to obtain model specific information, such as port names, model name, etc. After parsing the model necessary information is collected and the tool can go further. The first image shows the select model screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget03.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user then selects the MDL file that contains the model that will be executed on the ARM7 platform.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget04.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once again after completing the required steps inside the tab, new tabs are enabled and the user can continue to enter information required to achieve the final executable file.&lt;br /&gt;
&lt;br /&gt;
==Load the RTW generated code==&lt;br /&gt;
&lt;br /&gt;
In order to complete this step, the user must first execute the [[Simulink settings for generating code]] and generate code with the Matlab Simulink Real-Time Workshop.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget05.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After the folder containing the RTW generated code is specified, the tool will merge the model code together with the base system code. The base system code is selected in the next step.&lt;br /&gt;
&lt;br /&gt;
==Select the base stub code used==&lt;br /&gt;
&lt;br /&gt;
The stub code contains both the base system functionality and the main system loop. The main system loop is responsible for the execution of the model. The main loop execution is described in [[Simulink Execution on the ARM7 target]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget06.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The screenshot above presents the user two options. One of them is to use the code provided with the SimulinkTarget tool. In this case the code used is related to a specific SVN release and will contain a version number. The user must be sure to use compatible combinations of software, that is, bootloader version should be the same as the stub code used with the SimulinkTarget.&lt;br /&gt;
&lt;br /&gt;
In case the user has a copy of a newer code that either does not match the version provided by the tool or that is not yet a release, it is possible to select the second option. If this option is chosen, the user must provide the address of the folder containing the code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget07.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget08.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Define CAN binding and marshaling==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget09.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget10.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Define output folder and generate code==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget11.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Optionally compile the generated code==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget12.jpg]]&lt;/div&gt;</summary>
		<author><name>Raphael</name></author>	</entry>

	<entry>
		<id>https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7</id>
		<title>Simulink2ARM7</title>
		<link rel="alternate" type="text/html" href="https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7"/>
				<updated>2009-04-15T13:18:55Z</updated>
		
		<summary type="html">&lt;p&gt;Raphael: /* Select the base stub code used */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Overview==&lt;br /&gt;
&lt;br /&gt;
This page describes the user interaction with the SimulinkTarget tool. Every step needed in order to get from Simulink Model to the Executable file is described in this page. The first step before getting the model to run in the ARM7 Board is to generate the code that implements the Simulink Model. This process is described here [[Simulink settings for generating code]].&lt;br /&gt;
&lt;br /&gt;
==Create (or load) a project configuration file==&lt;br /&gt;
&lt;br /&gt;
The SimulinkTarget tool creates a configuration file where all the decisions made during the conversion process are saved. Doing so enables the user to load the configuration file and avoids the overhead of going through all of the steps every time new code is generated. The first step is to either load or create a configuration file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget01.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After loading/creating a configuration file, new tabs are enabled and the user may proceed to the next steps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget02.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As the user can easily note, the tab Simulink Model has been enabled and is intuitively the next step to be taken.&lt;br /&gt;
&lt;br /&gt;
==Load the simulink model==&lt;br /&gt;
&lt;br /&gt;
The tool needs to load a Simulink Model in order to obtain model specific information, such as port names, model name, etc. After parsing the model necessary information is collected and the tool can go further. The first image shows the select model screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget03.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user then selects the MDL file that contains the model that will be executed on the ARM7 platform.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget04.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once again after completing the required steps inside the tab, new tabs are enabled and the user can continue to enter information required to achieve the final executable file.&lt;br /&gt;
&lt;br /&gt;
==Load the RTW generated code==&lt;br /&gt;
&lt;br /&gt;
In order to complete this step, the user must first execute the [[Simulink settings for generating code]] and generate code with the Matlab Simulink Real-Time Workshop.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget05.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After the folder containing the RTW generated code is specified, the tool will merge the model code together with the base system code. The base system code is selected in the next step.&lt;br /&gt;
&lt;br /&gt;
==Select the base stub code used==&lt;br /&gt;
&lt;br /&gt;
The stub code contains both the base system functionality and the main system loop. The main system loop is responsible for the execution of the model. The main loop execution is described in [[Simulink Execution on the ARM7 target]].&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget06.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The screenshot above presents the user two options. One of them is to use the code provided with the SimulinkTarget tool. In this case the code used is related to a specific SVN release and will contain a version number. The user must be sure to use compatible combinations of software, that is, bootloader version should be the same as the stub code used with the SimulinkTarget.&lt;br /&gt;
&lt;br /&gt;
In case the user has a copy of a newer code that either does not match the version provided by the tool or that is not yet a release, it is possible to select the second option. If this option is chosen, the user must provide the address of the folder containing the code.&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget07.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget08.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Define CAN binding and marshaling==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget09.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget10.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Define output folder and generate code==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget11.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Optionally compile the generated code==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget12.jpg]]&lt;/div&gt;</summary>
		<author><name>Raphael</name></author>	</entry>

	<entry>
		<id>https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7</id>
		<title>Simulink2ARM7</title>
		<link rel="alternate" type="text/html" href="https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7"/>
				<updated>2009-04-15T12:42:54Z</updated>
		
		<summary type="html">&lt;p&gt;Raphael: /* Load the RTW generated code */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Overview==&lt;br /&gt;
&lt;br /&gt;
This page describes the user interaction with the SimulinkTarget tool. Every step needed in order to get from Simulink Model to the Executable file is described in this page. The first step before getting the model to run in the ARM7 Board is to generate the code that implements the Simulink Model. This process is described here [[Simulink settings for generating code]].&lt;br /&gt;
&lt;br /&gt;
==Create (or load) a project configuration file==&lt;br /&gt;
&lt;br /&gt;
The SimulinkTarget tool creates a configuration file where all the decisions made during the conversion process are saved. Doing so enables the user to load the configuration file and avoids the overhead of going through all of the steps every time new code is generated. The first step is to either load or create a configuration file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget01.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After loading/creating a configuration file, new tabs are enabled and the user may proceed to the next steps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget02.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As the user can easily note, the tab Simulink Model has been enabled and is intuitively the next step to be taken.&lt;br /&gt;
&lt;br /&gt;
==Load the simulink model==&lt;br /&gt;
&lt;br /&gt;
The tool needs to load a Simulink Model in order to obtain model specific information, such as port names, model name, etc. After parsing the model necessary information is collected and the tool can go further. The first image shows the select model screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget03.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user then selects the MDL file that contains the model that will be executed on the ARM7 platform.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget04.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once again after completing the required steps inside the tab, new tabs are enabled and the user can continue to enter information required to achieve the final executable file.&lt;br /&gt;
&lt;br /&gt;
==Load the RTW generated code==&lt;br /&gt;
&lt;br /&gt;
In order to complete this step, the user must first execute the [[Simulink settings for generating code]] and generate code with the Matlab Simulink Real-Time Workshop.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget05.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After the folder containing the RTW generated code is specified, the tool will merge the model code together with the base system code. The base system code is selected in the next step.&lt;br /&gt;
&lt;br /&gt;
==Select the base stub code used==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget06.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget07.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget08.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Define CAN binding and marshaling==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget09.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget10.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Define output folder and generate code==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget11.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Optionally compile the generated code==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget12.jpg]]&lt;/div&gt;</summary>
		<author><name>Raphael</name></author>	</entry>

	<entry>
		<id>https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7</id>
		<title>Simulink2ARM7</title>
		<link rel="alternate" type="text/html" href="https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7"/>
				<updated>2009-04-15T12:38:56Z</updated>
		
		<summary type="html">&lt;p&gt;Raphael: /* Load the RTW generated code */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Overview==&lt;br /&gt;
&lt;br /&gt;
This page describes the user interaction with the SimulinkTarget tool. Every step needed in order to get from Simulink Model to the Executable file is described in this page. The first step before getting the model to run in the ARM7 Board is to generate the code that implements the Simulink Model. This process is described here [[Simulink settings for generating code]].&lt;br /&gt;
&lt;br /&gt;
==Create (or load) a project configuration file==&lt;br /&gt;
&lt;br /&gt;
The SimulinkTarget tool creates a configuration file where all the decisions made during the conversion process are saved. Doing so enables the user to load the configuration file and avoids the overhead of going through all of the steps every time new code is generated. The first step is to either load or create a configuration file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget01.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After loading/creating a configuration file, new tabs are enabled and the user may proceed to the next steps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget02.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As the user can easily note, the tab Simulink Model has been enabled and is intuitively the next step to be taken.&lt;br /&gt;
&lt;br /&gt;
==Load the simulink model==&lt;br /&gt;
&lt;br /&gt;
The tool needs to load a Simulink Model in order to obtain model specific information, such as port names, model name, etc. After parsing the model necessary information is collected and the tool can go further. The first image shows the select model screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget03.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user then selects the MDL file that contains the model that will be executed on the ARM7 platform.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget04.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once again after completing the required steps inside the tab, new tabs are enabled and the user can continue to enter information required to achieve the final executable file.&lt;br /&gt;
&lt;br /&gt;
==Load the RTW generated code==&lt;br /&gt;
&lt;br /&gt;
In order to complete this step, the user must first execute the [[Simulink settings for generating code]] and generate code with the Matlab Simulink Real-Time Workshop.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget05.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After the folder containing the RTW generated code is specified, the tool will merge the code together with the base system code. The base system code is selected in the next step.&lt;br /&gt;
&lt;br /&gt;
==Select the base stub code used==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget06.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget07.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget08.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Define CAN binding and marshaling==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget09.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget10.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Define output folder and generate code==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget11.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Optionally compile the generated code==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget12.jpg]]&lt;/div&gt;</summary>
		<author><name>Raphael</name></author>	</entry>

	<entry>
		<id>https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7</id>
		<title>Simulink2ARM7</title>
		<link rel="alternate" type="text/html" href="https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7"/>
				<updated>2009-04-15T10:21:22Z</updated>
		
		<summary type="html">&lt;p&gt;Raphael: /* Load the RTW generated code */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Overview==&lt;br /&gt;
&lt;br /&gt;
This page describes the user interaction with the SimulinkTarget tool. Every step needed in order to get from Simulink Model to the Executable file is described in this page. The first step before getting the model to run in the ARM7 Board is to generate the code that implements the Simulink Model. This process is described here [[Simulink settings for generating code]].&lt;br /&gt;
&lt;br /&gt;
==Create (or load) a project configuration file==&lt;br /&gt;
&lt;br /&gt;
The SimulinkTarget tool creates a configuration file where all the decisions made during the conversion process are saved. Doing so enables the user to load the configuration file and avoids the overhead of going through all of the steps every time new code is generated. The first step is to either load or create a configuration file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget01.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After loading/creating a configuration file, new tabs are enabled and the user may proceed to the next steps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget02.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As the user can easily note, the tab Simulink Model has been enabled and is intuitively the next step to be taken.&lt;br /&gt;
&lt;br /&gt;
==Load the simulink model==&lt;br /&gt;
&lt;br /&gt;
The tool needs to load a Simulink Model in order to obtain model specific information, such as port names, model name, etc. After parsing the model necessary information is collected and the tool can go further. The first image shows the select model screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget03.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user then selects the MDL file that contains the model that will be executed on the ARM7 platform.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget04.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once again after completing the required steps inside the tab, new tabs are enabled and the user can continue to enter information required to achieve the final executable file.&lt;br /&gt;
&lt;br /&gt;
==Load the RTW generated code==&lt;br /&gt;
&lt;br /&gt;
In order to complete this step, the user must first execute the [[Simulink settings for generating code]] and generate code with the Matlab Simulink Real-Time Workshop.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget05.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Select the base stub code used==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget06.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget07.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget08.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Define CAN binding and marshaling==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget09.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget10.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Define output folder and generate code==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget11.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Optionally compile the generated code==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget12.jpg]]&lt;/div&gt;</summary>
		<author><name>Raphael</name></author>	</entry>

	<entry>
		<id>https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7</id>
		<title>Simulink2ARM7</title>
		<link rel="alternate" type="text/html" href="https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7"/>
				<updated>2009-04-15T10:21:08Z</updated>
		
		<summary type="html">&lt;p&gt;Raphael: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Overview==&lt;br /&gt;
&lt;br /&gt;
This page describes the user interaction with the SimulinkTarget tool. Every step needed in order to get from Simulink Model to the Executable file is described in this page. The first step before getting the model to run in the ARM7 Board is to generate the code that implements the Simulink Model. This process is described here [[Simulink settings for generating code]].&lt;br /&gt;
&lt;br /&gt;
==Create (or load) a project configuration file==&lt;br /&gt;
&lt;br /&gt;
The SimulinkTarget tool creates a configuration file where all the decisions made during the conversion process are saved. Doing so enables the user to load the configuration file and avoids the overhead of going through all of the steps every time new code is generated. The first step is to either load or create a configuration file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget01.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After loading/creating a configuration file, new tabs are enabled and the user may proceed to the next steps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget02.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As the user can easily note, the tab Simulink Model has been enabled and is intuitively the next step to be taken.&lt;br /&gt;
&lt;br /&gt;
==Load the simulink model==&lt;br /&gt;
&lt;br /&gt;
The tool needs to load a Simulink Model in order to obtain model specific information, such as port names, model name, etc. After parsing the model necessary information is collected and the tool can go further. The first image shows the select model screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget03.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user then selects the MDL file that contains the model that will be executed on the ARM7 platform.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget04.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once again after completing the required steps inside the tab, new tabs are enabled and the user can continue to enter information required to achieve the final executable file.&lt;br /&gt;
&lt;br /&gt;
==Load the RTW generated code==&lt;br /&gt;
&lt;br /&gt;
In order to complete this step, the user must first execute the [[Simulink settings for generating code]] and generate code with the Matlab Simulink Real-Time Workshop.&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget05.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Select the base stub code used==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget06.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget07.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget08.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Define CAN binding and marshaling==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget09.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget10.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Define output folder and generate code==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget11.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Optionally compile the generated code==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget12.jpg]]&lt;/div&gt;</summary>
		<author><name>Raphael</name></author>	</entry>

	<entry>
		<id>https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7</id>
		<title>Simulink2ARM7</title>
		<link rel="alternate" type="text/html" href="https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7"/>
				<updated>2009-04-15T10:07:14Z</updated>
		
		<summary type="html">&lt;p&gt;Raphael: /* Load the simulink model */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Overview==&lt;br /&gt;
&lt;br /&gt;
This page describes the user interaction with the SimulinkTarget tool. Every step needed in order to get from Simulink Model to the Executable file is described in this page. The first step before getting the model to run in the ARM7 Board is to generate the code that implements the Simulink Model. This process is described here [[Simulink settings for generating code]]&lt;br /&gt;
&lt;br /&gt;
==Create (or load) a project configuration file==&lt;br /&gt;
&lt;br /&gt;
The SimulinkTarget tool creates a configuration file where all the decisions made during the conversion process are saved. Doing so enables the user to load the configuration file and avoids the overhead of going through all of the steps every time new code is generated. The first step is to either load or create a configuration file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget01.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After loading/creating a configuration file, new tabs are enabled and the user may proceed to the next steps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget02.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As the user can easily note, the tab Simulink Model has been enabled and is intuitively the next step to be taken.&lt;br /&gt;
&lt;br /&gt;
==Load the simulink model==&lt;br /&gt;
&lt;br /&gt;
The tool needs to load a Simulink Model in order to obtain model specific information, such as port names, model name, etc. After parsing the model necessary information is collected and the tool can go further. The first image shows the select model screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget03.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user then selects the MDL file that contains the model that will be executed on the ARM7 platform.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget04.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once again after completing the required steps inside the tab, new tabs are enabled and the user can continue to enter information required to achieve the final executable file.&lt;br /&gt;
&lt;br /&gt;
==Load the RTW generated code==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget05.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Select the base stub code used==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget06.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget07.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget08.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Define CAN binding and marshaling==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget09.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget10.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Define output folder and generate code==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget11.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Optionally compile the generated code==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget12.jpg]]&lt;/div&gt;</summary>
		<author><name>Raphael</name></author>	</entry>

	<entry>
		<id>https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7</id>
		<title>Simulink2ARM7</title>
		<link rel="alternate" type="text/html" href="https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7"/>
				<updated>2009-04-15T10:06:42Z</updated>
		
		<summary type="html">&lt;p&gt;Raphael: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Overview==&lt;br /&gt;
&lt;br /&gt;
This page describes the user interaction with the SimulinkTarget tool. Every step needed in order to get from Simulink Model to the Executable file is described in this page. The first step before getting the model to run in the ARM7 Board is to generate the code that implements the Simulink Model. This process is described here [[Simulink settings for generating code]]&lt;br /&gt;
&lt;br /&gt;
==Create (or load) a project configuration file==&lt;br /&gt;
&lt;br /&gt;
The SimulinkTarget tool creates a configuration file where all the decisions made during the conversion process are saved. Doing so enables the user to load the configuration file and avoids the overhead of going through all of the steps every time new code is generated. The first step is to either load or create a configuration file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget01.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After loading/creating a configuration file, new tabs are enabled and the user may proceed to the next steps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget02.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As the user can easily note, the tab Simulink Model has been enabled and is intuitively the next step to be taken.&lt;br /&gt;
&lt;br /&gt;
==Load the simulink model==&lt;br /&gt;
&lt;br /&gt;
The tool needs to load a Simulink Model in order to obtain model specific information, such as port names, model name, etc. After parsing the model necessary information is collected and the tool can go further. The first image shows the select model screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget03.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user then selects the MDL file that contains the model that will be executed on the ARM7 platform.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget04.jpg]]&lt;br /&gt;
&lt;br /&gt;
Once again after completing the required steps inside the tab, new tabs are enabled and the user can continue to enter information required to achieve the final executable file.&lt;br /&gt;
&lt;br /&gt;
==Load the RTW generated code==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget05.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Select the base stub code used==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget06.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget07.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget08.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Define CAN binding and marshaling==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget09.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget10.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Define output folder and generate code==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget11.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Optionally compile the generated code==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget12.jpg]]&lt;/div&gt;</summary>
		<author><name>Raphael</name></author>	</entry>

	<entry>
		<id>https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7</id>
		<title>Simulink2ARM7</title>
		<link rel="alternate" type="text/html" href="https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7"/>
				<updated>2009-04-15T10:05:16Z</updated>
		
		<summary type="html">&lt;p&gt;Raphael: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Overview==&lt;br /&gt;
&lt;br /&gt;
This page describes the user interaction with the SimulinkTarget tool. Every step needed in order to get from Simulink Model to the Executable file is described in this page. The first step before getting the model to run in the ARM7 Board is to generate the code that implements the Simulink Model. This process is described here [[Simulink settings for generating code]]&lt;br /&gt;
&lt;br /&gt;
==Create (or load) a project configuration file==&lt;br /&gt;
&lt;br /&gt;
The SimulinkTarget tool creates a configuration file where all the decisions made during the conversion process are saved. Doing so enables the user to load the configuration file and avoids the overhead of going through all of the steps every time new code is generated. The first step is to either load or create a configuration file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget01.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After loading/creating a configuration file, new tabs are enabled and the user may proceed to the next steps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget02.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As the user can easily note, the tab Simulink Model has been enabled and is intuitively the next step to be taken.&lt;br /&gt;
&lt;br /&gt;
==Load the simulink model==&lt;br /&gt;
&lt;br /&gt;
The tool needs to load a Simulink Model in order to obtain model specific information, such as port names, model name, etc. After parsing the model the necessary information is collected and the tool can go further. The first image shows the select model screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget03.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The user then selects the MDL file that contains the model that will be executed on the ARM7 platform.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget04.jpg]]&lt;br /&gt;
&lt;br /&gt;
Once again after completing the required steps inside the tab, new tabs are enabled and the user can continue to enter information required to achieve the final executable file.&lt;br /&gt;
&lt;br /&gt;
==Load the RTW generated code==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget05.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Select the base stub code used==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget06.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget07.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget08.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Define CAN binding and marshaling==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget09.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget10.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Define output folder and generate code==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget11.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Optionally compile the generated code==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget12.jpg]]&lt;/div&gt;</summary>
		<author><name>Raphael</name></author>	</entry>

	<entry>
		<id>https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7</id>
		<title>Simulink2ARM7</title>
		<link rel="alternate" type="text/html" href="https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7"/>
				<updated>2009-04-15T09:40:04Z</updated>
		
		<summary type="html">&lt;p&gt;Raphael: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Overview==&lt;br /&gt;
&lt;br /&gt;
This page describes the user interaction with the SimulinkTarget tool. Every step needed in order to get from Simulink Model to the Executable file is described in this page. The first step before getting the model to run in the ARM7 Board is to generate the code that implements the Simulink Model. This process is described here [[Simulink settings for generating code]]&lt;br /&gt;
&lt;br /&gt;
==Create (or load) a project configuration file==&lt;br /&gt;
&lt;br /&gt;
The SimulinkTarget tool creates a configuration file where all the decisions made during the conversion process are saved. Doing so enables the user to load the configuration file and avoids the overhead of going through all of the steps every time new code is generated. The first step is to either load or create a configuration file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget01.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After loading/creating a configuration file, new tabs are enabled and the user may proceed to the next steps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget02.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As the user can easily note, the tab Simulink Model has been enabled and is intuitively the next step to be taken.&lt;br /&gt;
&lt;br /&gt;
==Load the simulink model==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget03.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget04.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Load the RTW generated code==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget05.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Select the base stub code used==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget06.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget07.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget08.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Define CAN binding and marshaling==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget09.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget10.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Define output folder and generate code==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget11.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Optionally compile the generated code==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget12.jpg]]&lt;/div&gt;</summary>
		<author><name>Raphael</name></author>	</entry>

	<entry>
		<id>https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7</id>
		<title>Simulink2ARM7</title>
		<link rel="alternate" type="text/html" href="https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7"/>
				<updated>2009-04-15T09:39:52Z</updated>
		
		<summary type="html">&lt;p&gt;Raphael: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Overview==&lt;br /&gt;
&lt;br /&gt;
This page describes the user interaction with the SimulinkTarget tool. Every step needed in order to get from Simulink Model to the Executable file is described in this page. The first step before getting the model to run in the ARM7 Board is to generate the code that implements the Simulink Model. This process is described here [[Simulink settings for generating code]]&lt;br /&gt;
&lt;br /&gt;
==Create (or load) a project configuration file==&lt;br /&gt;
&lt;br /&gt;
The SimulinkTarget tool creates a configuration file where all the decisions made during the conversion process are saved. Doing so enables the user to load the configuration file and avoids the overhead of going through all of the steps every time new code is generated. The first step is to either load or create a configuration file.&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget01.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After loading/creating a configuration file, new tabs are enabled and the user may proceed to the next steps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget02.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As the user can easily note, the tab Simulink Model has been enabled and is intuitively the next step to be taken.&lt;br /&gt;
&lt;br /&gt;
==Load the simulink model==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget03.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget04.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Load the RTW generated code==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget05.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Select the base stub code used==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget06.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget07.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget08.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Define CAN binding and marshaling==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget09.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget10.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Define output folder and generate code==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget11.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Optionally compile the generated code==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget12.jpg]]&lt;/div&gt;</summary>
		<author><name>Raphael</name></author>	</entry>

	<entry>
		<id>https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7</id>
		<title>Simulink2ARM7</title>
		<link rel="alternate" type="text/html" href="https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7"/>
				<updated>2009-04-15T09:39:29Z</updated>
		
		<summary type="html">&lt;p&gt;Raphael: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Overview==&lt;br /&gt;
&lt;br /&gt;
This page describes the user interaction with the SimulinkTarget tool. Every step needed in order to get from Simulink Model to the Executable file is described in this page. The first step before getting the model to run in the ARM7 Board is to generate the code that implements the Simulink Model. This process is described here [[Simulink settings for generating code]]&lt;br /&gt;
&lt;br /&gt;
==Create (or load) a project configuration file==&lt;br /&gt;
&lt;br /&gt;
The SimulinkTarget tool creates a configuration file where all the decisions made during the conversion process are saved. Doing so enables the user to load the configuration file and avoids the overhead of going through all of the steps every time new code is generated. The first step is to either load or create a configuration file.&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget01.jpg]]&lt;br /&gt;
&lt;br /&gt;
After loading/creating a configuration file, new tabs are enabled and the user may proceed to the next steps.&lt;br /&gt;
&lt;br /&gt;
:[[image:simulinktarget02.jpg]]&lt;br /&gt;
&lt;br /&gt;
As the user can note, the tab Simulink Model has been enabled and is intuitively the next step to be taken.&lt;br /&gt;
&lt;br /&gt;
==Load the simulink model==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget03.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget04.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Load the RTW generated code==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget05.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Select the base stub code used==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget06.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget07.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget08.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Define CAN binding and marshaling==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget09.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget10.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Define output folder and generate code==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget11.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Optionally compile the generated code==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget12.jpg]]&lt;/div&gt;</summary>
		<author><name>Raphael</name></author>	</entry>

	<entry>
		<id>https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7</id>
		<title>Simulink2ARM7</title>
		<link rel="alternate" type="text/html" href="https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7"/>
				<updated>2009-04-15T09:38:33Z</updated>
		
		<summary type="html">&lt;p&gt;Raphael: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Overview==&lt;br /&gt;
&lt;br /&gt;
This page describes the user interaction with the SimulinkTarget tool. Every step needed in order to get from Simulink Model to the Executable file is described in this page. The first step before getting the model to run in the ARM7 Board is to generate the code that implements the Simulink Model. This process is described here [[Simulink settings for generating code]]&lt;br /&gt;
&lt;br /&gt;
==Create (or load) a project configuration file==&lt;br /&gt;
&lt;br /&gt;
The SimulinkTarget tool creates a configuration file where all the decisions made during the conversion process are saved. Doing so enables the user to load the configuration file and avoids the overhead of going through all of the steps every time new code is generated. The first step is to either load or create a configuration file.&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget01.jpg]]&lt;br /&gt;
&lt;br /&gt;
After loading/creating a configuration file, new tabs are enabled and the user may proceed to the next steps.&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget02.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Load the simulink model==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget03.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget04.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Load the RTW generated code==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget05.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Select the base stub code used==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget06.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget07.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget08.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Define CAN binding and marshaling==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget09.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget10.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Define output folder and generate code==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget11.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Optionally compile the generated code==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget12.jpg]]&lt;/div&gt;</summary>
		<author><name>Raphael</name></author>	</entry>

	<entry>
		<id>https://conceptcar.iese.de:80/ConceptCar1/index.php?title=File:Simulinktarget12.jpg</id>
		<title>File:Simulinktarget12.jpg</title>
		<link rel="alternate" type="text/html" href="https://conceptcar.iese.de:80/ConceptCar1/index.php?title=File:Simulinktarget12.jpg"/>
				<updated>2009-04-15T09:27:19Z</updated>
		
		<summary type="html">&lt;p&gt;Raphael: uploaded a new version of &amp;quot;Image:Simulinktarget12.jpg&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Raphael</name></author>	</entry>

	<entry>
		<id>https://conceptcar.iese.de:80/ConceptCar1/index.php?title=File:Simulinktarget09.jpg</id>
		<title>File:Simulinktarget09.jpg</title>
		<link rel="alternate" type="text/html" href="https://conceptcar.iese.de:80/ConceptCar1/index.php?title=File:Simulinktarget09.jpg"/>
				<updated>2009-04-15T09:27:04Z</updated>
		
		<summary type="html">&lt;p&gt;Raphael: uploaded a new version of &amp;quot;Image:Simulinktarget09.jpg&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Raphael</name></author>	</entry>

	<entry>
		<id>https://conceptcar.iese.de:80/ConceptCar1/index.php?title=File:Simulinktarget08.jpg</id>
		<title>File:Simulinktarget08.jpg</title>
		<link rel="alternate" type="text/html" href="https://conceptcar.iese.de:80/ConceptCar1/index.php?title=File:Simulinktarget08.jpg"/>
				<updated>2009-04-15T09:26:54Z</updated>
		
		<summary type="html">&lt;p&gt;Raphael: uploaded a new version of &amp;quot;Image:Simulinktarget08.jpg&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Raphael</name></author>	</entry>

	<entry>
		<id>https://conceptcar.iese.de:80/ConceptCar1/index.php?title=File:Simulinktarget12.jpg</id>
		<title>File:Simulinktarget12.jpg</title>
		<link rel="alternate" type="text/html" href="https://conceptcar.iese.de:80/ConceptCar1/index.php?title=File:Simulinktarget12.jpg"/>
				<updated>2009-04-15T09:26:31Z</updated>
		
		<summary type="html">&lt;p&gt;Raphael: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Raphael</name></author>	</entry>

	<entry>
		<id>https://conceptcar.iese.de:80/ConceptCar1/index.php?title=File:Simulinktarget11.jpg</id>
		<title>File:Simulinktarget11.jpg</title>
		<link rel="alternate" type="text/html" href="https://conceptcar.iese.de:80/ConceptCar1/index.php?title=File:Simulinktarget11.jpg"/>
				<updated>2009-04-15T09:26:23Z</updated>
		
		<summary type="html">&lt;p&gt;Raphael: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Raphael</name></author>	</entry>

	<entry>
		<id>https://conceptcar.iese.de:80/ConceptCar1/index.php?title=File:Simulinktarget10.jpg</id>
		<title>File:Simulinktarget10.jpg</title>
		<link rel="alternate" type="text/html" href="https://conceptcar.iese.de:80/ConceptCar1/index.php?title=File:Simulinktarget10.jpg"/>
				<updated>2009-04-15T09:26:14Z</updated>
		
		<summary type="html">&lt;p&gt;Raphael: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Raphael</name></author>	</entry>

	<entry>
		<id>https://conceptcar.iese.de:80/ConceptCar1/index.php?title=File:Simulinktarget09.jpg</id>
		<title>File:Simulinktarget09.jpg</title>
		<link rel="alternate" type="text/html" href="https://conceptcar.iese.de:80/ConceptCar1/index.php?title=File:Simulinktarget09.jpg"/>
				<updated>2009-04-15T09:26:05Z</updated>
		
		<summary type="html">&lt;p&gt;Raphael: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Raphael</name></author>	</entry>

	<entry>
		<id>https://conceptcar.iese.de:80/ConceptCar1/index.php?title=File:Simulinktarget08.jpg</id>
		<title>File:Simulinktarget08.jpg</title>
		<link rel="alternate" type="text/html" href="https://conceptcar.iese.de:80/ConceptCar1/index.php?title=File:Simulinktarget08.jpg"/>
				<updated>2009-04-15T09:25:57Z</updated>
		
		<summary type="html">&lt;p&gt;Raphael: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Raphael</name></author>	</entry>

	<entry>
		<id>https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7</id>
		<title>Simulink2ARM7</title>
		<link rel="alternate" type="text/html" href="https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7"/>
				<updated>2009-04-15T09:25:39Z</updated>
		
		<summary type="html">&lt;p&gt;Raphael: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Overview==&lt;br /&gt;
&lt;br /&gt;
This page describes the user interaction with the SimulinkTarget tool. Every step needed in order to get from Simulink Model to the Executable file is described in this page. The first step before getting the model to run in the ARM7 Board is to generate the code that implements the Simulink Model. This process is described here [[Simulink settings for generating code]]&lt;br /&gt;
&lt;br /&gt;
==Create (or load) a project configuration file==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget01.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget02.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Load the simulink model==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget03.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget04.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Load the RTW generated code==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget05.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Select the base stub code used==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget06.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget07.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget08.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Define CAN binding and marshaling==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget09.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget10.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Define output folder and generate code==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget11.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Optionally compile the generated code==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget12.jpg]]&lt;/div&gt;</summary>
		<author><name>Raphael</name></author>	</entry>

	<entry>
		<id>https://conceptcar.iese.de:80/ConceptCar1/index.php?title=File:Simulinktarget07.jpg</id>
		<title>File:Simulinktarget07.jpg</title>
		<link rel="alternate" type="text/html" href="https://conceptcar.iese.de:80/ConceptCar1/index.php?title=File:Simulinktarget07.jpg"/>
				<updated>2009-04-15T09:23:31Z</updated>
		
		<summary type="html">&lt;p&gt;Raphael: uploaded a new version of &amp;quot;Image:Simulinktarget07.jpg&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Raphael</name></author>	</entry>

	<entry>
		<id>https://conceptcar.iese.de:80/ConceptCar1/index.php?title=File:Simulinktarget07.jpg</id>
		<title>File:Simulinktarget07.jpg</title>
		<link rel="alternate" type="text/html" href="https://conceptcar.iese.de:80/ConceptCar1/index.php?title=File:Simulinktarget07.jpg"/>
				<updated>2009-04-15T09:22:55Z</updated>
		
		<summary type="html">&lt;p&gt;Raphael: uploaded a new version of &amp;quot;Image:Simulinktarget07.jpg&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Raphael</name></author>	</entry>

	<entry>
		<id>https://conceptcar.iese.de:80/ConceptCar1/index.php?title=File:Simulinktarget07.jpg</id>
		<title>File:Simulinktarget07.jpg</title>
		<link rel="alternate" type="text/html" href="https://conceptcar.iese.de:80/ConceptCar1/index.php?title=File:Simulinktarget07.jpg"/>
				<updated>2009-04-15T09:22:36Z</updated>
		
		<summary type="html">&lt;p&gt;Raphael: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Raphael</name></author>	</entry>

	<entry>
		<id>https://conceptcar.iese.de:80/ConceptCar1/index.php?title=File:Simulinktarget06.jpg</id>
		<title>File:Simulinktarget06.jpg</title>
		<link rel="alternate" type="text/html" href="https://conceptcar.iese.de:80/ConceptCar1/index.php?title=File:Simulinktarget06.jpg"/>
				<updated>2009-04-15T09:22:24Z</updated>
		
		<summary type="html">&lt;p&gt;Raphael: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Raphael</name></author>	</entry>

	<entry>
		<id>https://conceptcar.iese.de:80/ConceptCar1/index.php?title=File:Simulinktarget05.jpg</id>
		<title>File:Simulinktarget05.jpg</title>
		<link rel="alternate" type="text/html" href="https://conceptcar.iese.de:80/ConceptCar1/index.php?title=File:Simulinktarget05.jpg"/>
				<updated>2009-04-15T09:22:11Z</updated>
		
		<summary type="html">&lt;p&gt;Raphael: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Raphael</name></author>	</entry>

	<entry>
		<id>https://conceptcar.iese.de:80/ConceptCar1/index.php?title=File:Simulinktarget04.jpg</id>
		<title>File:Simulinktarget04.jpg</title>
		<link rel="alternate" type="text/html" href="https://conceptcar.iese.de:80/ConceptCar1/index.php?title=File:Simulinktarget04.jpg"/>
				<updated>2009-04-15T09:22:03Z</updated>
		
		<summary type="html">&lt;p&gt;Raphael: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Raphael</name></author>	</entry>

	<entry>
		<id>https://conceptcar.iese.de:80/ConceptCar1/index.php?title=File:Simulinktarget03.jpg</id>
		<title>File:Simulinktarget03.jpg</title>
		<link rel="alternate" type="text/html" href="https://conceptcar.iese.de:80/ConceptCar1/index.php?title=File:Simulinktarget03.jpg"/>
				<updated>2009-04-15T09:21:52Z</updated>
		
		<summary type="html">&lt;p&gt;Raphael: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Raphael</name></author>	</entry>

	<entry>
		<id>https://conceptcar.iese.de:80/ConceptCar1/index.php?title=File:Simulinktarget02.jpg</id>
		<title>File:Simulinktarget02.jpg</title>
		<link rel="alternate" type="text/html" href="https://conceptcar.iese.de:80/ConceptCar1/index.php?title=File:Simulinktarget02.jpg"/>
				<updated>2009-04-15T09:21:44Z</updated>
		
		<summary type="html">&lt;p&gt;Raphael: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Raphael</name></author>	</entry>

	<entry>
		<id>https://conceptcar.iese.de:80/ConceptCar1/index.php?title=File:Simulinktarget01.jpg</id>
		<title>File:Simulinktarget01.jpg</title>
		<link rel="alternate" type="text/html" href="https://conceptcar.iese.de:80/ConceptCar1/index.php?title=File:Simulinktarget01.jpg"/>
				<updated>2009-04-15T09:21:04Z</updated>
		
		<summary type="html">&lt;p&gt;Raphael: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Raphael</name></author>	</entry>

	<entry>
		<id>https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7</id>
		<title>Simulink2ARM7</title>
		<link rel="alternate" type="text/html" href="https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7"/>
				<updated>2009-04-15T09:20:47Z</updated>
		
		<summary type="html">&lt;p&gt;Raphael: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Overview==&lt;br /&gt;
&lt;br /&gt;
This page describes the user interaction with the SimulinkTarget tool. Every step needed in order to get from Simulink Model to the Executable file is described in this page. The first step before getting the model to run in the ARM7 Board is to generate the code that implements the Simulink Model. This process is described here [[Simulink settings for generating code]]&lt;br /&gt;
&lt;br /&gt;
==Create (or load) a project configuration file==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget01.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Load the simulink model==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget02.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Load the RTW generated code==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget03.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Select the base stub code used==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget04.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Define CAN binding and marshaling==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget05.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Define output folder and generate code==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget06.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Optionally compile the generated code==&lt;br /&gt;
&lt;br /&gt;
[[image:simulinktarget07.jpg]]&lt;/div&gt;</summary>
		<author><name>Raphael</name></author>	</entry>

	<entry>
		<id>https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7</id>
		<title>Simulink2ARM7</title>
		<link rel="alternate" type="text/html" href="https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7"/>
				<updated>2009-04-15T09:09:23Z</updated>
		
		<summary type="html">&lt;p&gt;Raphael: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Overview==&lt;br /&gt;
&lt;br /&gt;
This page describes the user interaction with the SimulinkTarget tool. Every step needed in order to get from Simulink Model to the Executable file is described in this page. The first step before getting the model to run in the ARM7 Board is to generate the code that implements the Simulink Model. This process is described here [[Simulink settings for generating code]]&lt;br /&gt;
&lt;br /&gt;
==Create (or load) a project configuration file==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Load the simulink model==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Load the RTW generated code==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Select the base stub code used==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Define CAN binding and marshaling==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Define output folder and generate code==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Optionally compile the generated code==&lt;/div&gt;</summary>
		<author><name>Raphael</name></author>	</entry>

	<entry>
		<id>https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7</id>
		<title>Simulink2ARM7</title>
		<link rel="alternate" type="text/html" href="https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7"/>
				<updated>2009-04-15T08:59:20Z</updated>
		
		<summary type="html">&lt;p&gt;Raphael: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Overview==&lt;br /&gt;
&lt;br /&gt;
This page describes the user interaction with the SimulinkTarget tool. Every step needed in order to get from Simulink Model to the Executable file is described in this page. The first step before getting the model to run in the ARM7 Board is to generate the code that implements the Simulink Model. This process is described here [[Simulink settings for generating code]]&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
This page describes the process in which a Simulink model is converted and executed in the SAM7-LA2 ARM7 board.&lt;br /&gt;
&lt;br /&gt;
==Execution Flow==&lt;br /&gt;
&lt;br /&gt;
asdf&lt;/div&gt;</summary>
		<author><name>Raphael</name></author>	</entry>

	<entry>
		<id>https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink_Execution_on_the_ARM7_target</id>
		<title>Simulink Execution on the ARM7 target</title>
		<link rel="alternate" type="text/html" href="https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink_Execution_on_the_ARM7_target"/>
				<updated>2009-04-15T08:53:24Z</updated>
		
		<summary type="html">&lt;p&gt;Raphael: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A simulink model can be deployed on an embedded target when the Realtime Workshop and Embedded Coder plugins are used for Code creation.&lt;br /&gt;
&lt;br /&gt;
==Code/Model Execution Semantics==&lt;br /&gt;
&lt;br /&gt;
The execution semantic of a dataflow model is a continuous dataflow between the simulink blocks on the channels and each block is continuously processing its input data and generating output data. Since continuous execution is not feasible, it is approximated by updating the model in discrete steps. If the time distance between these steps is chosen small enough, the approximation is good enough.&lt;br /&gt;
&lt;br /&gt;
===Generated Code===&lt;br /&gt;
&lt;br /&gt;
The Embedded Coder produces code whose execution is triggered by 2 functions:&lt;br /&gt;
# an initialization function, called once before model execution&lt;br /&gt;
# a step function, called in a regular interval to update the model&lt;br /&gt;
Interaction with the environment is done via the model&amp;#039;s ports. The coder maps these to two structs, one for the inports and one for the outports.&lt;br /&gt;
&lt;br /&gt;
===Executing the Generated Code===&lt;br /&gt;
&lt;br /&gt;
The following pseudo-code illustrates how the generated code is executed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
call simulink_initialize()&lt;br /&gt;
each n milliseconds do&lt;br /&gt;
    update model inports from environment&lt;br /&gt;
    call simulink_step()&lt;br /&gt;
    propagate model outports to environment&lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Automated Model Execution==&lt;br /&gt;
&lt;br /&gt;
SimulinkTarget is a tool that provides semi-automatic support for running a simulink model on the [[The ARM7 board|ARM7 board]]. Basically it generates code that can be cross-compiled and stored on a SD card to be loaded and launched by the ARM7 bootloader. Since the simulink model does not (and can not) provide all information needed for its execution on a specific target in a specific environment (it is a platform independent model, &amp;#039;&amp;#039;&amp;#039;PIM&amp;#039;&amp;#039;&amp;#039;), some information needs to be given by the user to make it a platform specific model (&amp;#039;&amp;#039;&amp;#039;PSM&amp;#039;&amp;#039;&amp;#039;).&lt;br /&gt;
* Model-inherent information:&lt;br /&gt;
** The names of the two functions (step &amp;amp; initialize)&lt;br /&gt;
** The names and data types of all inport and outport variables. These variables are the elements of the inport and outport C structs.&lt;br /&gt;
** The time that should pass between two executions of the step function&lt;br /&gt;
* Environment-specific information:&lt;br /&gt;
** The data source of the model&amp;#039;s inports and data sinks of the model&amp;#039;s outports. On the Concept Car, the ARM7 board only interacts with its environment via the CAN bus, thus inports mus be bound to incoming CAN messages and outports are distributed via outgoing CAN messages. CAN ids have to be provided for each port.&lt;br /&gt;
** The marshaling between CAN message contents and the port values. On the CAN bus, messages are just plain bytes ... even though all messages on the Concept Car&amp;#039;s CAN bus are meant to be 4 bytes long and interpreted as 4 byte integer variables, still a mapping to other data types (like floating point) has to be provided.&lt;br /&gt;
&lt;br /&gt;
===SimulinkTarget&amp;#039;s Work-flow===&lt;br /&gt;
&lt;br /&gt;
SimulinkTarget takes a simulink model and generates code that only needs very limited user interference (basically the user must provide the information specified above). Not all code needs to be generated, some source files can be copied.&lt;br /&gt;
&lt;br /&gt;
# Create (or load) a project configuration file&lt;br /&gt;
# Load the simulink model&lt;br /&gt;
# Load the RTW generated code&lt;br /&gt;
# Select the base stub code used&lt;br /&gt;
# Define CAN binding and marshaling&lt;br /&gt;
# Define output folder and generate code&lt;br /&gt;
# Optionally compile the generated code&lt;br /&gt;
&lt;br /&gt;
A detailed description of the complete tool workflow is available in [[Simulink2ARM7‎]].&lt;br /&gt;
&lt;br /&gt;
===Preconditions for Successful Code Generations===&lt;br /&gt;
&lt;br /&gt;
# Platform independent information can be retrieved&lt;br /&gt;
#* The simulink model file is provided&lt;br /&gt;
#* Parsing the model suceeded&lt;br /&gt;
#* Success in retrieving the function names&lt;br /&gt;
#* Success in retrieving the port structures&lt;br /&gt;
#** The ports&amp;#039; data types are simple: boolean, integer or floating point&lt;br /&gt;
#* The step time is given&lt;br /&gt;
# The Embedded Coder&amp;#039;s output is good&lt;br /&gt;
#* Code matches model&lt;br /&gt;
#* Coder&amp;#039;s settings were correct (retrieved from mdl file analysis)&lt;br /&gt;
# The target location is OK&lt;br /&gt;
#* Needs to be a new or empty directory&lt;br /&gt;
#* Write access&lt;br /&gt;
# The board code is good&lt;br /&gt;
#* All files as expected&lt;br /&gt;
#* Board code&amp;#039;s version correct&lt;/div&gt;</summary>
		<author><name>Raphael</name></author>	</entry>

	<entry>
		<id>https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink_Execution_on_the_ARM7_target</id>
		<title>Simulink Execution on the ARM7 target</title>
		<link rel="alternate" type="text/html" href="https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink_Execution_on_the_ARM7_target"/>
				<updated>2009-04-15T08:49:37Z</updated>
		
		<summary type="html">&lt;p&gt;Raphael: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A simulink model can be deployed on an embedded target when the Realtime Workshop and Embedded Coder plugins are used for Code creation.&lt;br /&gt;
&lt;br /&gt;
==Code/Model Execution Semantics==&lt;br /&gt;
&lt;br /&gt;
The execution semantic of a dataflow model is a continuous dataflow between the simulink blocks on the channels and each block is continuously processing its input data and generating output data. Since continuous execution is not feasible, it is approximated by updating the model in discrete steps. If the time distance between these steps is chosen small enough, the approximation is good enough.&lt;br /&gt;
&lt;br /&gt;
===Generated Code===&lt;br /&gt;
&lt;br /&gt;
The Embedded Coder produces code whose execution is triggered by 2 functions:&lt;br /&gt;
# an initialization function, called once before model execution&lt;br /&gt;
# a step function, called in a regular interval to update the model&lt;br /&gt;
Interaction with the environment is done via the model&amp;#039;s ports. The coder maps these to two structs, one for the inports and one for the outports.&lt;br /&gt;
&lt;br /&gt;
===Executing the Generated Code===&lt;br /&gt;
&lt;br /&gt;
The following pseudo-code illustrates how the generated code is executed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
call simulink_initialize()&lt;br /&gt;
each n milliseconds do&lt;br /&gt;
    update model inports from environment&lt;br /&gt;
    call simulink_step()&lt;br /&gt;
    propagate model outports to environment&lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Automated Model Execution==&lt;br /&gt;
&lt;br /&gt;
SimulinkTarget is a tool that provides semi-automatic support for running a simulink model on the [[The ARM7 board|ARM7 board]]. Basically it generates code that can be cross-compiled and stored on a SD card to be loaded and launched by the ARM7 bootloader. Since the simulink model does not (and can not) provide all information needed for its execution on a specific target in a specific environment (it is a platform independent model, &amp;#039;&amp;#039;&amp;#039;PIM&amp;#039;&amp;#039;&amp;#039;), some information needs to be given by the user to make it a platform specific model (&amp;#039;&amp;#039;&amp;#039;PSM&amp;#039;&amp;#039;&amp;#039;).&lt;br /&gt;
* Model-inherent information:&lt;br /&gt;
** The names of the two functions (step &amp;amp; initialize)&lt;br /&gt;
** The names and data types of all inport and outport variables. These variables are the elements of the inport and outport C structs.&lt;br /&gt;
** The time that should pass between two executions of the step function&lt;br /&gt;
* Environment-specific information:&lt;br /&gt;
** The data source of the model&amp;#039;s inports and data sinks of the model&amp;#039;s outports. On the Concept Car, the ARM7 board only interacts with its environment via the CAN bus, thus inports mus be bound to incoming CAN messages and outports are distributed via outgoing CAN messages. CAN ids have to be provided for each port.&lt;br /&gt;
** The marshaling between CAN message contents and the port values. On the CAN bus, messages are just plain bytes ... even though all messages on the Concept Car&amp;#039;s CAN bus are meant to be 4 bytes long and interpreted as 4 byte integer variables, still a mapping to other data types (like floating point) has to be provided.&lt;br /&gt;
&lt;br /&gt;
===SimulinkTarget&amp;#039;s Work-flow===&lt;br /&gt;
&lt;br /&gt;
SimulinkTarget takes a simulink model and generates code that only needs very limited user interference (basically the user must provide the information specified above). Not all code needs to be generated, some source files can be copied. The link below leads to a description of the complete tool workflow.&lt;br /&gt;
&lt;br /&gt;
[[Simulink2ARM7‎]]&lt;br /&gt;
&lt;br /&gt;
# Copy simulink model code (generated by Embedded Coder) to target location&lt;br /&gt;
# Copy non model-specific source files to target location&lt;br /&gt;
# Generate glue code&lt;br /&gt;
# &amp;#039;&amp;#039;(From here on user interferes)&amp;#039;&amp;#039; Edit some files to bind the model to the platform&lt;br /&gt;
# Cross-compile code with arm-elf-toolchain&lt;br /&gt;
# Transfer code to the target&lt;br /&gt;
&lt;br /&gt;
===Preconditions for Successful Code Generations===&lt;br /&gt;
&lt;br /&gt;
# Platform independent information can be retrieved&lt;br /&gt;
#* The simulink model file is provided&lt;br /&gt;
#* Parsing the model suceeded&lt;br /&gt;
#* Success in retrieving the function names&lt;br /&gt;
#* Success in retrieving the port structures&lt;br /&gt;
#** The ports&amp;#039; data types are simple: boolean, integer or floating point&lt;br /&gt;
#* The step time is given&lt;br /&gt;
# The Embedded Coder&amp;#039;s output is good&lt;br /&gt;
#* Code matches model&lt;br /&gt;
#* Coder&amp;#039;s settings were correct (retrieved from mdl file analysis)&lt;br /&gt;
# The target location is OK&lt;br /&gt;
#* Needs to be a new or empty directory&lt;br /&gt;
#* Write access&lt;br /&gt;
# The board code is good&lt;br /&gt;
#* All files as expected&lt;br /&gt;
#* Board code&amp;#039;s version correct&lt;/div&gt;</summary>
		<author><name>Raphael</name></author>	</entry>

	<entry>
		<id>https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7</id>
		<title>Simulink2ARM7</title>
		<link rel="alternate" type="text/html" href="https://conceptcar.iese.de:80/ConceptCar1/index.php?title=Simulink2ARM7"/>
				<updated>2009-04-14T15:19:22Z</updated>
		
		<summary type="html">&lt;p&gt;Raphael: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Overview==&lt;br /&gt;
&lt;br /&gt;
aasd.&lt;br /&gt;
&lt;br /&gt;
asdfdasfdf.&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
This page describes the process in which a Simulink model is converted and executed in the SAM7-LA2 ARM7 board.&lt;br /&gt;
&lt;br /&gt;
==Execution Flow==&lt;br /&gt;
&lt;br /&gt;
asdf&lt;/div&gt;</summary>
		<author><name>Raphael</name></author>	</entry>

	</feed>