MATLAB Answers


Exchange data between two simulink simulations in real time

Asked by Chidananda M S on 1 Apr 2013
Latest activity Commented on by Harjot Singh on 16 Jun 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.


Sign in to comment.

1 Answer

Answer by Kaustubha Govind on 1 Apr 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.


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?
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?

Sign in to comment.