How to read a discontinues signal from workspace in Simulink

1.1k Views Asked by At

I have a standard validation signal and want to read it from workspace as the input of my model in Simulink and then compare the output of model with the one from measurements. As it is a validation signal I can not change the signal in order to remove the discontinuities. Whenever I try to run the model I receive a error regarding the singularity problems over the integrator blocks in my model, because of having discontinuities. Derivative input 1 of 'laplace_domain_test_V2/ct & dl & Warburg/Integrator' at time 140.0042 is Inf or NaN. Stopping simulation. 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) I tried to reduce the step size to very small values & tightening the error tolerance and also to change the solver to the stiff ones but the problem is still unfixed. Can any one please suggest a way to get rid of this error?

I really appreciate your help in advance!

0

There are 0 best solutions below