S function Output port ConstBlockIO to BlockIO

1 view (last 30 days)
Team,
I have an s function with 3 inputs and 2 outputs.
When all the 3 inputs are fed with constant inputs the output data type assumes constant and declares as a part of ConstBlockIO in rtw code generation. This is undesired behavior for me as I have to modify the output.
How to make the outputs as a part of BlockIO instead of ConstBlockIO ?
Thanks
  1 Comment
Kaustubha Govind
Kaustubha Govind on 6 Jun 2013
Are you using the Constant block to create the inputs? Does it do what you need if you changed the Sample Time of the Constant block to something like 0.1 (or whatever the base rate of your model is)?

Sign in to comment.

Accepted Answer

Anand Rangaramu
Anand Rangaramu on 6 Jun 2013
Kaustubha's suggestion is perfect solution
I changed the Constant Block sample time from Inf to -1. Problem solved.
Thanks a lot Kaustubha

More Answers (0)

Categories

Find more on Simulink Functions in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!