MATLAB: For a control system model having an inner loop and an outer loop. How to simulate this model when inner loop has higher sampling rate than outer loop

control system modelfaster inner loop

For a control system model having an inner loop and an outer loop. How to simulate this model when inner loop has higher sampling rate than outer loop?

Best Answer

Use "Rate transition" blocks for transfer of data between your inner loop and outer loop. For the data going into outerloop from inner loop set the rate transition block output rate as that of your outer loop and vice versa. Should work perfectly as I have worked on similar flight control system models. Get back in case you get stuck somewhere.
See here for details on rate transition blocks.