How can I log signals in referenced models while running rapid accelerator?

Is it possible to log signals in referenced models in Simulink when the simulation is running under rapid accelerator? As far as I can tell, it's not possible. Am I missing something?

 采纳的回答

Unfortunately, there is currently (as of R2010b) a limitation in Simulink that prevents logging signals in accelerated models. There are some "rough" alternatives, such as using "ToWorkspace" and "ToFile" blocks that might let you at least capture the data that interests you, but it is not as convenient as signal-logging would be.

2 个评论

ToWorkspace blocks are inoperable in referenced models. A ToFile block would work as long as there is only one instantiation, and I'm sure it would slow things down quite a bit. Hopefully this problem is high up on the enhancements list?
Also, just to clarify: signal logging works in accelerated models, but not in rapidly accelerated models.

请先登录,再进行评论。

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Prepare Model Inputs and Outputs 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by