我有这个StateFlow图表:

enter image description here

A和C是"Simulink state"而B是州 . StateFlow的 input 是"input",而 output 是"output" . 在C中有:

enter image description here

输入IN1时,输出OUT1 . 我想知道如何在从B到C(图y = 1)和 assign y to 2 (in C block) before the C block is executed 的过渡期间更改变量y(局部)的值 .