How to create a concave signal step/ramp in Simulink?

조회 수: 2 (최근 30일)
Jonas
Jonas 2025년 7월 3일
댓글: Mathieu NOE 2025년 7월 4일
I'm not sure how to properly phrase my question, but my problem is the following:
I want to implement a step in a programmable three phase source, which I need to compare to the one of another program (RSCADFX). The problem is, I don't know how to model the signal in order to look like the following signal from RSCADFX:
To me it's almost concave looking, it's neither a step nor a ramp. How can I achieve this result in Simulink?
  댓글 수: 1
Mathieu NOE
Mathieu NOE 2025년 7월 3일
hello
this looks to me like a sinewave (50 Hz) with amplitude modulation - which gives this shape of the signal envelop.
the envelop can be obtained by feeding a first order system (with appropriate time constant , guessed about 0.2/3 = 0.066 s approx from the picture) with a step signal (once at t= 0 upwards and once at t = 10 s downwards)

댓글을 달려면 로그인하십시오.

채택된 답변

Mathieu NOE
Mathieu NOE 2025년 7월 3일
hello again
attached a small demo simulink file
in blue I highlighted the first order system based on a simple recursive equation (out = a*in+(1-a)*out_old)
you need to run first these lines in a m script to initialize some variables
ts = 1e-3; % sampling rate
Fs = 1/ts; % sampling freq
time_constant = 0.066; %estimated system time constant
fc = 1/(2*pi*time_constant);
a = 1-exp(-2*pi*fc/Fs); % a coefficient in 1st order recursive equation : out = a*in+(1-a)*out_old
  댓글 수: 2
Jonas
Jonas 2025년 7월 4일
Thank you! That should work!
Mathieu NOE
Mathieu NOE 2025년 7월 4일
My pleasure !

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by