I have a Simscape model of the power valve and I need to autotune pre-loads on springs.
I am using a PID to tune the value.
I using the trim command to do the job.
But I am getting the below error when using the trim command on my model.
Error: All elements of the variable must be a differential or algebraic
Best Answer