필터 지우기
필터 지우기

How to set a sample time in a Discrete Transfer Fcn??

조회 수: 208 (최근 30일)
Fernando
Fernando 2023년 9월 28일
답변: Subhrajeet 2024년 2월 28일
I'm following the training of Simulink fundamentals, and I'm stucked trying to set the sample time on the parameters. Is not showing me that option to set it. I attached an image for you to view. Please I need some help with this is the only task that is left to end the course. Thanks in advance.
  댓글 수: 4
Henrique
Henrique 2023년 10월 6일
Yes, I had the same problem.
Matlab gives some explanation at "https://nl.mathworks.com/help/simulink/ug/sampletimehiding.html".
The workaround by promoting the parameter worked for me. You can read more about promoting the parameter at "https://nl.mathworks.com/help/simulink/ug/parameter-promotion.html"

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

채택된 답변

Oren Savir
Oren Savir 2023년 10월 29일
I also got stuck with this problem.
but here is the solution:
Click the block (discrete transfer function)
Go to Model Explorer
change to default from the dropdown menu
Add SampleTime to objects visible:
Then click at bottom on paremter value and change -1 to Ts.
Exit Model Explorer
Clicking the block now includes the Sample Time option.
  댓글 수: 3
Zhaolun Ding
Zhaolun Ding 2024년 2월 5일
There is a easier way to solve this, go to model data editor, scroll down to find the discrete transfer function, then click on the the third column from the right which is sample time, change it from -1 to Ts
Cagri Namal
Cagri Namal 2024년 2월 24일
Thanks, I had to do it a bit different. After changing "column view" to default, I clicked "show details" at the right, and scrolled down to find SampleTime, then double-clicked to make it edtiable and changed it to Ts for discrete transfer funct.

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

추가 답변 (3개)

Subhrajeet
Subhrajeet 2024년 2월 28일
Step1 : Go to Model Explorer and change the Column view to Default.
Step2: Search SampleTime under the search section and double click on the SampleTime, and then the SampleTime will come under "Display column names" section.
Step3: Then see the buttom of the page, The columns will appear [Name, BlockType, SampleTime].
Step4: Then double click on Discrete Filter -> Sample Time to what ever you want.
(See the attached pdf for the Complete Solution)

Michael
Michael 2023년 10월 3일
Per default the sample time of this block is (-1). This means the sample time is inherited from the signal at the input of the block. It is documented at the end of the help page of "Discrete Transfer Fcn" in the chapter "Version History"

Hassaan
Hassaan 2024년 2월 9일
편집: Hassaan 2024년 2월 9일
@MathWorks Support Team I am having the same issue and stuck on this part. None of the solutions worked for me.
Could @MathWorks Support Team please update the training material?
Simulink fundamentals
Modeling Discrete Dynamic Systems
Modeling Discrete Transfer Functions and State-Space Representations
Task 2

카테고리

Help CenterFile Exchange에서 Simulink Environment Customization에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by