How can I feed a vector Simulink signal into my Simscape model?
Mostra commenti meno recenti
I have a Simscape model that simulates a simple mass-spring damper system, from the Mass-Spring-Damper with Controller example, linked below:
I replaced the PID controller with a constant block for the value of the 'Ideal Force Source' and a scope to view the model's output. I would like to be able to compare different input signals sent to the 'Ideal Force Source' via a vector signal defined in the constant block. However, when I tried to change the scalar value in the constant block to a vector, I got the below error messages:
Error in port widths or dimensions. 'Output Port 1' of 'simple_vector/Constant' is a one dimensional vector with 4 elements.
Component:Simulink | Category:Model error
Error in port widths or dimensions. 'Input Port 1' of 'simple_vector/Simulink-PS Converter' is a one dimensional vector with 1 elements.
Component:Simulink | Category:Model error
Attached is my model, 'simple_vector.slx'.
How can I use a vector signal as the input to a Simscape model?
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Troubleshooting in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!