- Signal - value updates during simulation time
- Parameter - value does not change unless user manually changes it
How to change variables in time in Simulink?
34 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have some processing (moving of wheelset). Wheelset has mass, it's variable and it's declaring in init.m file (for example M=1;)
Now I want that in this proccess mass of wheelset will be changed every 2 seconds. How to save the new value of mass to M variable from Simulink?
0 Kommentare
Akzeptierte Antwort
Jarrod Rivituso
am 21 Apr. 2011
It sounds to me like you want the mass data to be a signal, and not a parameter that is defined by a workspace variable.
I think of Simulink as having data which are either signals or parameters:
To get a mass that changed every two seconds, I would define the mass as an input signal derived from one of the Source blocks (Simulink -> Sources library) such as Inport, From Workspace, Signal Builder, etc.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Simulink Functions 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!