0

I have Simulink Embedded Coder output model code. One of header file includes;

#ifndef rtmGetU
#define rtmGetU(rtm) ((rtm)->ModelData.inputs)
#endif

After saw the code block in the header, I tried to generate my own Simulink model embedded code but the output not include the rtmGetU define.

I wonder what is the purpose of the rtmGetU define and how can I generate the rtmGetU code for my own model.

1 Answer 1

3

rtmGetU is a macro for conveniently getting the data that is being fed into any Inports in the model that the code is generated from.

It will only be in the generated code if your model has any Inports (at the highest level of the model.)

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.