Simulink: host model and target model integration
조회 수: 2 (최근 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
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Development Computer Setup에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!