Simulink: Problem connecting normal simulink with real-time code (embedded matlab)
Infos
Cette question est clôturée. Rouvrir pour modifier ou répondre.
Afficher commentaires plus anciens
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 commentaire
TAB
le 14 Sep 2012
Have you tried referencing both models in the third model connecting the output of 1st to the input of 2nd ?
Réponses (0)
Cette question est clôturée.
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!