Simulink Test: Error in Conversion Subsystem (Port width or Dimensions)
6 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hello,
I am trying to generate a simple test using simulink test for my model. When I create my test harness, Simulink auto generates a Conversion subsystem as part of the test harness to adapt the output of the source blocks to the interface required by the harness component (Not really sure what that means, this was pulled from Simulinks description of the Conversion Subsystem).
When I try to run a simple test using the test sequence block (I tried assigning all the variables to 0, but it doesn't matter what I set their values to), I get 2 Errors that says the following:
Error 1: 'Error in port widths or dimensions. Output port 5 of 'Diag_FaultCounter_Lib_Harness1/Input Conversion Subsystem' is a one dimensional vector with 1 elements'.
Error 2: 'Error in port widths or dimensions. Input port 5 of 'Diag_FaultCounter_Lib_Harness1/DeactClutchDisengagementProhibit' is a one dimensional vector with 2 elements'.
The error references the Conversion Subsystem that Simulink Auto generated, and notes that it's outport is a one dimensional vector of 1 elements in the first Error. In the second error, it references the same signal outport going into the inport of 'DeactClutchDisengagementProhibit' (The block being tested), and it notes that the signal there is now a one dimensional vector with two inputs. I am confused how the signal might've changed dimensions between ports and I don't know how to fix this. Any help?
I attached pictures of the error message as well as the test harness set up (Where you can see the test sequence block, assesment block and the subsytem being tested) and the test sequence.
Thank you,
Mohamed Elyaman
3 Commenti
Risposte (0)
Vedere anche
Categorie
Scopri di più su Inputs in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!