Question regarding: SimulinkCoder LibGetT() & Support absolute time

1 view (last 30 days)
Hi,
I have a ERT based code generation setup where I maintain a extra TLC file for adapting the from the ERT interface to my desired API.
In this extra TLC file I make use of LibGetT() to access the 'absolute time'. This requires 'SupportAbsoluteTime' parameter to be set to 'on'. However, the following functionality in the 'SupportAbsoluteTime' troubles me:
"If you select this option and the model does not include blocks that use time values, the target does not generate the counters."
My model does not contain blocks which requires absolute time therefore when building the code which use the LibGetT() fails: error C2039: 'Timing' : is not a member of 'tag_RTM_SimulinkModel'
However, if I add a block in the simulink model which requires absolute time the build is fine.
Is there any way to enforce that the 'absolute time counters' are generated even when no blocks in the model require them?
Br. Soeren
  1 Comment
Kaustubha Govind
Kaustubha Govind on 12 Mar 2014
If the documentation already points out that this is a limitation, I think you may need to submit an enhancement request to be able to enforce that. Please do so via MathWorks Tech Support.

Sign in to comment.

Answers (0)

Categories

Find more on Simulink Coder in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!