Reuse the input / output in the state flow chart and customize the internal state
1 次查看(过去 30 天)
显示 更早的评论
The code generated from the model shown below has the following function prototype:
void diagnosis_detection_unit(boolean_T rtu_cond, boolean_T rtu_onread, const Fault_T *rtu_f_in, Fault_T *rty_f_out, DW_detection_unit_diagnosis_T *localDW)
Question 1: I would like to use the variables rtu_f_in/rty_f_out as only one, like references, is possible to optimize this code?
Question 2: Taking into account this model is used inside a For Each Subsystem, Is possible to customize the variable localDW ( where is defined the internal state) as part of the input/output?
![rsz_chart.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/207407/rsz_chart.png)
0 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!