필터 지우기
필터 지우기

Is there a way to set signal builder block signals in simulink via matlab script?

조회 수: 6 (최근 30일)
Hi,
I am having an issue, where I need to set signal builder block signal and time vectors from a matlab script. For example you can use a workspace variable as "Simulation stop time" but the same doesnt apply for the signal builder block for time and signal vectors, currently I need to go inside of the block and replace all of them by hand.
So what I'm trying to do:
  • Run the script, which creates time and signal vectors.
  • Overwrite the current time and signal vectors of a signal builder block inside a submodel in simulink.
Something like:
set(model / submodel / signal builder 1 / steering_angle_signal / time values) = steering_time_vector ;
set(model / submodel / signal builder 1 / steering_angle_signal / Y values) = steering_signal_vector
Thanks in advance!

답변 (1개)

Surbhi Pillai
Surbhi Pillai 2018년 12월 27일
Hi Dominik
You can consider using 'signalbuilder' function to create and access signal builder blocks from MATLAB script. The documentation corresponding to the same is available below:
I hope this helps.....

카테고리

Help CenterFile Exchange에서 Sources에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by