Update Real Time Code Generator (RCG) authored by Ezekiel Dohmen's avatar Ezekiel Dohmen
...@@ -29,7 +29,7 @@ The RCG works by parsing the model's `.mdl` file and flattening all the subsyste ...@@ -29,7 +29,7 @@ The RCG works by parsing the model's `.mdl` file and flattening all the subsyste
| `fromExp` | Returns the variable where the input of this part comes from. | | `fromExp` | Returns the variable where the input of this part comes from. |
| `frontEndCode` | Returns the code that is run each cycle to preform the function of the part. | | `frontEndCode` | Returns the code that is run each cycle to preform the function of the part. |
Using these methods the RCG generates the expected build products. The output below is an example of what gets generate for a simple operation for the real time model. Using these methods the RCG generates the expected build products. The output below is an example of what is generated for a simple operation for the real time model.
### Simulink Input ### Simulink Input
![image](uploads/a5aaf39767ce01b431b8969e9e5cc746/image.png) ![image](uploads/a5aaf39767ce01b431b8969e9e5cc746/image.png)
...@@ -46,5 +46,5 @@ if( tst_sum != 0.0 ) { ...@@ -46,5 +46,5 @@ if( tst_sum != 0.0 ) {
} else { } else {
tst_divide = 0.0; tst_divide = 0.0;
} }
...
``` ```
\ No newline at end of file