An error occurred while running the simulation and the simulation was terminated
Caused by:
Derivative of state '1' in block 'Simulink2/Transfer Fcn' at time 1.0000000000001645 is not finite. The simulation will be stopped. There may be a singularity in the solution. If not, try reducing the step size (either by reducing the fixed step size or by tightening the error tolerances)
No errors were identified in the 1st method (referred to as the unrealizable ideal config) as demonstrated in my block configuration. However, your error message tells that an error occurred in the block 'Simulink2/Transfer Fcn'. My proposed block configuration above (Method 1) does not have any block named 'Transfer Fcn'. My assumption is that you might have connected the unrealizable ideal config to the 'Transfer Fcn' block. This connection seems to cause the Simulink system to blow up at time 1.0000000000001645. But this is no longer irrelevant to the original question that you asked.
The 2nd method (realizable practical config) is an approximation of the unrealizable ideal config. In the 1st method (unrealizable ideal config), the expression can be rewritten as:
.
Believe it or not, I did not attempt to calculate the filter value; instead, I directly plugged in a very large value, 1 million. The reason for this is that if the filter coefficient, N, in the PID Controller block (realizable practical config), is very large, then the practical derivative term approximates the ideal derivative term, as shown in the expression:
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.