Exchange data between two simulink simulations in real time

1 vue (au cours des 30 derniers jours)
Chidananda M S
Chidananda M S le 1 Avr 2013
Commenté : Harjot Singh le 16 Juin 2015
I am trying to control lego nxt kit based on the kinect data(body movememnts). I wanted to know how to send that data from kinect simulink simulation to the lego nxt simulink in real time. From workspace and to workspace write data only at the end of the simulation.
It would be of great help.
Thanks in advance.

Réponses (1)

Kaustubha Govind
Kaustubha Govind le 1 Avr 2013
You may want to create a third model that uses the Model block to bring each of the two models into it as regular Simulink blocks and connect between them as required.
  2 commentaires
Chidananda M S
Chidananda M S le 1 Avr 2013
Thanks a lot for your answer. I read through a couple of your previous responses for this kind of questions.
I was actually trying assignin and evalin. The assignin(In the kinect model) seems to be working fine but when I use evalin in the Lego nxt model it pops up an error "Failed to eliminate a call to the MATLAB function 'evalin'. For non-simulation builds, calls to unsupported MATLAB functions are eliminated if they do not affect function outputs."
So is there something similar to this implementation?
Harjot Singh
Harjot Singh le 16 Juin 2015
Hi Kaustubha
In my case one model is running in external mode from where I need the data in other model which is running in normal mode.
Is there any way of doing that?

Connectez-vous pour commenter.

Catégories

En savoir plus sur LEGO MINDSTORMS EV3 Hardware dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by