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

2 Ansichten (letzte 30 Tage)
Ege Arsan
Ege Arsan am 7 Nov. 2022
Kommentiert: Brandon Stevens am 14 Nov. 2022
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?

Antworten (1)

Brandon Stevens
Brandon Stevens am 9 Nov. 2022
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 Kommentare
Ege Arsan
Ege Arsan am 14 Nov. 2022
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 am 14 Nov. 2022
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.

Melden Sie sich an, um zu kommentieren.

Produkte


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by