Why do I receive port dimension error in Simulink Test Manager?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
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
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.
Siehe auch
Kategorien
Mehr zu Inputs finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!