Two S functions with different sampling rate
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi,
I have two S functions connected with each other in one simulink model, one with sampling rate 0.05 and anothe with 0.2 sec, but the second one does not work, even I added rate transitions between them. When I set the sampling rates same at 0.05, the simulation runs without any problem. The reason I use different sampling rates is to increase the simulation speed, but sampling rate cannot be too large for the first system. Could you provide any suggestions to help out? Many thanks.
0 comentarios
Respuestas (2)
Aman Vyas
el 19 de Mzo. de 2020
Hi,
Simulink throws an error "SAMPLE RATE MISMATCH" whenever you try to run same model with two different sample rates. Pls proceed with either of these solutions:
A) Try using upsample and downsample block to balance out the sample so that error is removed.
B) Simulate two systems separately so as to run separate systems at different sample rates.
C) Try following this link as it points to similar problem
Follow these documentation links:
Hope this solves your issue.
4 comentarios
Aman Vyas
el 27 de Mzo. de 2020
Hello,
The problem you asked states you had different sampling rates and if in single system two different sample rates exist the simulation will throw the error sample rate mismatch.
But as you told that error is eradicated and is not showing up means the sample rate issue is gone and your block might not be working because of some other reason.
I feel now you need to check your logic as the thing you raised is not showing up now.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!