Why do I receive port dimension error in Simulink Test Manager?

2 次查看(过去 30 天)
I have a Matlab Function Block in my Simulink model, which has a [4x12] matrix as output. When I carry out a test case (in Test Manager) in order to verify the requirements, I reveive the following error message:
Error in port widths or dimensions. 'Output Port 1' of 'BatteryArchModelSL_Harness_Module/Output Conversion Subsystem/Inport_6' is a [4x12] matrix.
Test Manager also doesn't allow variable size outputs.
How can I solve this issue?

回答(1 个)

Brandon Stevens
Brandon Stevens 2022-11-9
Hey Ege, you should be able to output a matrix signal through inports/outports. Check to see if your inport in the model has a hard-coded value for the Port Dimensions, and if so, set it to inherit with '-1' instead
  2 个评论
Ege Arsan
Ege Arsan 2022-11-14
Thanks for the answer.
It doesn't work both with the inherited dimension or with a hard-coded value.
The matlab function block normally has a variable size matrix as output but test manager does not allow variable size value (said so in the error message). Then I tried to define the dimensions of the output, which resulted with the above mentioned error message.
So, I don't know if I'm doing something wrong or it is entirely not possible to verrify the requirements of a subsystem containing a matlab function block with a matrix output.
Brandon Stevens
Brandon Stevens 2022-11-14
You can use a MATLAB function block with a matrix output with Simulink Test; I think the issue you are seeing would be with how you are setting a fixed output size for your MATLAB function block and the outport.
I'd recommend turning on the debug tool for examining the signal dimesnions to see if there is some mismatch. For more information, check out this page on 'Inspect Variable-Size Signals on Simulink Models'
I'd recommend making a technical support case with us to go through an investigation with your model if you need further asssitance.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Inputs 的更多信息

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by