How do i switch between sources in a Simulink (Simscape) model acroding to a Workspace variable?
I have a simscape simulink model, as shown in the picture:
I would like a specific run of the simulation to switch between the 4 possible signal sources acording to a Workspace variable WS. In other words, if WS=1 when the simulation runs, i would want the step signal to be the source. If WS=2 i would like the slope to be the sourse etc.
I saw some similar question and answers, but still havn’t figured it out. Any help?
Thanks!I have a simscape simulink model, as shown in the picture:
I would like a specific run of the simulation to switch between the 4 possible signal sources acording to a Workspace variable WS. In other words, if WS=1 when the simulation runs, i would want the step signal to be the source. If WS=2 i would like the slope to be the sourse etc.
I saw some similar question and answers, but still havn’t figured it out. Any help?
Thanks! I have a simscape simulink model, as shown in the picture:
I would like a specific run of the simulation to switch between the 4 possible signal sources acording to a Workspace variable WS. In other words, if WS=1 when the simulation runs, i would want the step signal to be the source. If WS=2 i would like the slope to be the sourse etc.
I saw some similar question and answers, but still havn’t figured it out. Any help?
Thanks! simulink, simscape MATLAB Answers — New Questions