Discrete FIR Filter for Embedded Targets
Mostra commenti meno recenti
I noticed that the Sample Time in the Simulink Discrete FIR Filter block is programmable. Does that translate well over to the embedded target. The filter i'm creating will essential be used for analog inputs with different sample times, just want to make sure there won't be any surprises.
Thanks.
Risposte (2)
Kaustubha Govind
il 22 Feb 2011
1 voto
The sample time parameter is typically only significant for simulation. For code generation, what matters is the relative rates of blocks in the system compared to the "base rate". There is no sample-time inlined into the code - you must write wrapper code that uses timers/interrupts to run the model "step" function at the appropriate base rate.
Daniel
il 22 Feb 2011
0 voti
Categorie
Scopri di più su C Code Generation in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!