Unable to run Simulink simulation

1 次查看(过去 30 天)
I used FilterDesigner to create a banpass filter. I have imported it in Simulink and connected to a chirp block and a spectrum analyzer.
I have quantized the filter inputs and outputs. When I try to simulate, I get the following error:
Expected a GP/Channel-In block to be connected to an input pin in [bandpass3_bandpass3], but instead found block ["Input Quantizer"].

回答(1 个)

Simar
Simar 2024-5-16
Hi Costas Hatzinikolaou,
The error message you are encountering suggests that there is a specific expectation for the type of block that should be connected to the input of bandpass filter within Simulink, which in this case, is not being met due to the presence of an "Input Quantizer" block. This issue can arise from several factors related to how filter expects its inputs to be formatted or handled, especially after importing from FilterDesigner. Below are some steps to troubleshoot and potentially resolve this issue:
1. Review Filter Configuration: Check with settings or parameters that specify expected input signal type. If filter is configured to expect a specific type of input not compatible with the "Input Quantizer", this could be the source of the issue.
2. Check Documentation: Refer the documentation for "Input Quantizer" block to understand their requirements and capabilities better. There are notes and examples on how to properly interface quantized signals with specific types of filter blocks.
3.Signal Conversion: If filter expects a different type of input (e.g., floating-point instead of fixed-point), consider using signal conversion block between the "Input Quantizer" and the filter. Simulink provides blocks like DataTypeConversion that can be used to convert between different data types and formats.
4. Bypass Quantizer for Testing: As a diagnostic step, temporarily bypass the "Input Quantizer" and connect signal directly to the filter's input. If the simulation runs successfully without the quantizer, the issue is related to how the quantized signal is being handled or expected by the filter.
5. Consult Simulink Examples: Look for examples or demos within Simulink that involve similar configurations (quantized inputs to filters). It would provide insights into proper block configurations and connections. Within examples, type filter to perform scoped search.
The key is to ensure compatibility between the signal format output by the "Input Quantizer" and the expectations of the filter block imported from FilterDesigner.
Hope it helps!
Best Regards,
Simar

类别

Help CenterFile Exchange 中查找有关 Signal Processing Toolbox 的更多信息

产品


版本

R2010a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by