필터 지우기
필터 지우기

How can I quickly change my model from a variable-step-size to a fixed-step size in order to generate a .dll file using simulink coder?

조회 수: 5 (최근 30일)
How can I quickly change my model from a variable-step-size to a fixed-step size in order to generate a .dll file using simulink coder? My target file only accepts fixed-step solver models.

답변 (1개)

Arnab Sen
Arnab Sen 2016년 2월 23일
Hi Reese,
You can change the model from variable step size to fixed step size by changing the 'Solver options' from 'model configuration parameters'.
For doing so, navigate in the Simulink editor menu as below:
1. Simulation->Model Configuration Parameters
2.A Model Configuration Parameters window should open. In the left pane of the window select 'Solver'.
3. From the right pane in the 'Solver options' section select the 'Type' field as 'Fixed-step'.
4. Click 'Apply' .
  댓글 수: 1
Reese
Reese 2016년 2월 26일
Thanks for the answer Arnab.
I want to synchronise the time step across the whole model to make it solvable using a fixed-step solver, Is there a quick way to do change every sample time to a fixed value?

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

카테고리

Help CenterFile Exchange에서 Configure Simulation Conditions에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by