Part Number: TMS320F28335
Tool/software: TI C/C++ Compiler
I am working on DSP controller, generation DSP code from MATLAB Simulink design. When I am using LPF, HPF and BPF, getting an error as fixed discrete not used for the continuous block. How can I use the filters in Matlab for DSP code conversion.
I've not used DSP blocks for TI MCUs so far but you can fix this problem by changing the solver of your model. go to Simulation > Model Configuration....> Solver then change the "Solver options" to "Fixed-step" and "Solver" to "discrete (no continuous state)".
Then in your model, the sample time for each block must be a discrete value or "-1".
If my post answered your question, please click on "Verified answer" button.
If my post answered your questions, please click on "Verified answer" button.
In reply to Khashayar olia:
I am using the same solver parameters, which you have shown. The error shows that the low pass filter block does not work for fixed-step discrete,
For using the Low pass filter block it shows that it should be kept as continuous, not discrete. But for generating the code for DSP we should use fixed-step discrete.
In reply to Venkat Ram:
The below the error I am getting
Use Simulink predefined LPF designed by FIR or IIR filter, this block uses FIR or IIR filter to design your LPF so the result is a time-discrete filter:
I just build and successfully ran your model in Simulink.
If my post answered your question, please press "Verified answer" button.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.