Simulink Code Generation, independency from step-size and mat-logging

조회 수: 4 (최근 30일)
Onur Isbecer
Onur Isbecer 2014년 7월 1일
댓글: Kaustubha Govind 2014년 7월 10일
Hi everybody,
for a project I have to generate C Code from a Simulink-model, for me, what important is, the relationship between input and output, not the input and output. I mean they could be a constant or a sin wave, its not important, because I am going to use in another environment input=x , and output=2*x ... its so very simple. I am trying to generate a subsystem regarding to have this, which has just input/output and a Gain Block for multiplication.
The problem is ; I don't want neither Mat-Logging (actually any logging data)nor step-size ! I can disabled the mat-logging in config. but I cant configure the step size, if I set it as auto, it gets automatically 0.2s :/ How can I figure it out ? shortly I don't need to set a step-size , because this generated code should be called in main C-Script and should not be depended to value like 0.2s or 0.4s .Thanks in Advance...
Best Regards Onur
  댓글 수: 1
Kaustubha Govind
Kaustubha Govind 2014년 7월 10일
Onur: Do you see any step-size specified in the generated code? Typically, this is only used in simulation, and not in the generated code.

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

답변 (1개)

Onur Isbecer
Onur Isbecer 2014년 7월 2일
push !

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by