簡體   English   中英

Simulink無法從輸出端口1傳播可變大小模式

[英]Simulink cannot propagate the variable-size mode from the output port 1

我創建了以下模型: 在此處輸入圖片說明

它接收音頻輸入,並將其通過降噪算法處理,然后將聲音輸出到揚聲器。 在不使用ASLA Audio Capture而僅使用Multimediafile(不帶開關)的情況下ASLA Audio Capture連接時,它可以正常工作,但是,如圖所示將其設置好后,出現以下錯誤:

Simulink cannot propagate the variable-size mode from the output port 1 of cryreg_v2/Short-Time FFT/x to the input port 1 of 'cryreg_v2/Short-Time FFT/Rebuffer. This input port expects a fixed-size mode. The variable-size mode originates from cryreg_v2/Manual Switch. Examine the configurations of cryreg_v2/Short-Time FFT/Rebuffer for one of the following scenarios: 1) the block does not support variable-size signals; 2) the block supports variable-size signals but needs to be configured for them.

我目前的懷疑是Rebuffer不接受麥克風輸入(因為它不一致且不固定),因此我需要與Rebuffer接收的麥克風建立某種間隔(我不確定該怎么做)。

我實際上該如何解決錯誤,並且懷疑是否正確?

緩沖區塊不支持可變大小的輸入,這是導致錯誤的原因。 當您斷開音頻捕獲塊時,您的輸入不是可變大小的,這就是為什么它工作正常的原因。 您可以通過刪除多媒體文件塊和開關並僅使用音頻捕獲來驗證這一點。

您應該通過避免在“手動”開關的輸出處創建可變大小的信號來解決此問題。 由於手動開關的輸入大小不同,因此創建了可變大小的信號。 為避免大小可變,您可以將兩個源塊的輸出大小設置為相同,或通過在其輸入之一的手動切換塊之前引入緩沖塊以使大小相同。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM