Dear Harsha, Can you please elaborate on your actual problem. it is a simple method to use simulink model in the loop, but depends on the complexity of the problem.
Thanks for your response, I have pi controller in Simulink model, I need to tune the controller using IAE approach wherein value of Kp constant but kI need to vary.to calculate IAE through command line.and need to save vaue of IAE to workspace Please help .