Hello EE_student,
I understand from your query that you need assistance with resolving the error in using the “tune” function in the “PID Controller” block.
To use the PID tuning tool, you require the “Simulink Control Design” license. Use “ver slcontrol” to check if “Simulink Control Design” is installed. If "Simulink Control Design" does not appear in the list returned by the above command, you will need to add the toolbox to your MATLAB installation. You can find instructions on how to do this in the following post:
Kindly check if you have the license for the toolbox by running the following command in MATLAB command window:
flag=license('checkout','Simulink_Control_Design')
license('inuse')
If the answer to the above flag is zero, i.e., flag = 0, it means that the license checkout for the "Simulink Control Design" toolbox has failed. In this case, please contact the Installation Support team for further assistance:
I have tried running the model on my system and it works fine. Here is the obtained output:
Hope this helps,
Regards,
Neelanshu