Simulink: host model and target model integration

1 次查看(过去 30 天)
Hello, guys
I started to use Simulink these days to build my Arduino codes. I found it fascinating to run the model on host and deploy it to the target on external mode.
Initially, I thought that in the 'external mode', the codes are actually executing on the host (PC), and the target (Arduino) only did IO operations. This was because I used LabView and this was how that works. In my application, I need the target to execute some simple procedures but leave the difficult job to the host machine.
Therefore, I wonder, if it is possible to use Simulink to implement a model like this:
In this figure, I can specify a block/subsystem to be executed on the target. I can wire multiple signals out of the model as testing port. Simulink should get this done with serial, just like the external mode.
The exported signal can be connected to a model specified to be run on host machine, where the computation intensive works are done.
I found several examples about Real-time Windows Target and Simulink Real-time library. With them, I still need some explicit interface like 'Serial In', 'Serial Out' or 'UDP in', 'UDP out' pairs. If Simulink can encapsulate these transport layer protocol, but give the general connection as the data flow, the prototyping will be even faster.
Regards. YW

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Development Computer Setup 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by