Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How can I include new signal into WaveFormGenerator Simulink block from a script?

조회 수: 1 (최근 30일)
Javier
Javier 2017년 1월 17일
마감: MATLAB Answer Bot 2021년 8월 20일
Hello,
I would like to add a new signals to the list of my current signal for the WaveFormGenerator block.I have already generated a string ( signal below) that should be placed under the signals list, this is the following
signal = step('StepTime',1e-05,'InitialValue',1,'FinalValue',0.9)+step('StepTime',1e-05,'InitialValue',0.9,'FinalValue',0.8)
I have tried to use gcb along with set_param for that block, but I don't know which parameter to address to set my signal on the WaveFormGenerator list
Any advise?
Thanks in advance,
Regards!

답변 (1개)

Chinmayi Lanka
Chinmayi Lanka 2017년 1월 20일
편집: Chinmayi Lanka 2017년 1월 20일
I don't think that you can set a value for the 'Waveform Definition' field from the command line. As per the following documentation, there is no command-line parameter listed for 'Waveform Definition':
Also, the block specific parameters for the 'Waveform generation' block does not have any command-line parameter listed for 'Waveform Definition': http://www.mathworks.com/help/releases/R2015b/simulink/slref/block-specific-parameters.html

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by