Info

This question is closed. Reopen it to edit or answer.

Simulink: Problem connecting normal simulink with real-time code (embedded matlab)

1 view (last 30 days)
I have a simulink model (Model A) that uses a level-2 S-function with some image processing, which keeps track of several colored regions (real time). The output is a [16,1] vector that I want to use in another model (Model B) which processes this data. The problem is that the other model uses embedded matlab and I cant connect the two models.
Model B has to be compiled and started from the console, but if I start Model A from the console the color extraction doesnt work (I guess this is because I use functions like bwconncomp and regionprops).
Then I tried to connect them via the UDP or TCP/IP block (from the instrument control toolbox), but that also didnt help (the blocks itself works, but not in connecting the two models). Does anyone have experience with the UDP blocks and can tell me if its possible to connect a real-time model with a model that I start directly from simulink?
  1 Comment
TAB
TAB on 14 Sep 2012
Have you tried referencing both models in the third model connecting the output of 1st to the input of 2nd ?

Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!