Why do I receive port dimension error in Simulink Test Manager?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Brandon Stevens
el 9 de Nov. de 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 comentarios
Brandon Stevens
el 14 de Nov. de 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.
Ver también
Categorías
Más información sobre Subsystems en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!