Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why doesn Reactis recognize a workspace variable in my model?

0
Posted

Why doesn Reactis recognize a workspace variable in my model?

0

Although Reactis may invoke MATLAB to perform some tasks, Reactis does not directly interact with an executing MATLAB session in the same way that Simulink does. Consequently, any workspace data items that a model uses must be attached to a model using Simulink’s pre-load callback. For the cruise-control example included in the Reactis release, the file cruise_constants.m defines two workspace variables that are used in cruise.mdl. One attaches cruise_constants.m to cruise.mdl as follows: • Load cruise.mdl into Simulink. • From the Simulink window, select the File, Model Properties menu item. • In the resulting dialog, select the Callbacks tab. • In the Model pre-load function entry box enter cruise_constants. (note the .m suffix is omitted) • Save the model.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123