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?
0 个评论
回答(1 个)
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 个评论
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 Center 和 File Exchange 中查找有关 Inputs 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!