How do I share data between two Simulink Models?

2 views (last 30 days)
avi
avi on 9 Dec 2014
Edited: avi on 9 Dec 2014
Hello all,
In a model, I am using a block that interfaces with an external hardware (specifically, Quanser Denso blocks) and requires external simulation mode + build to function properly.
In addition, I need to use an Analog Input block (reading NI PCI data acquisition board) to sense some forces and torques. Combining them into 1 model and building, gives me an error that says the analog input block does not support Rapid Acceleration and External modes, thus it fails to compile.
I've tried putting them in different models, but:
1. Goto tags do not support cross-model reference.
2. Trying to export from one model to the workspace and picking it up in the other model results in the second model only reading the variables once, instead of in a continuous way.
3. Trying to send data from one model to the other through the serial port (via Arduino) doesnt work at all.
4. Sending the data from one model to the other through the network results in an approx. 1 second delay, VERY bad in control terms.
I would very much appreciate any idea correcting the solutions listed above, new ideas, or maybe anyone knows of a way to run both blocks on the same model, but using external mode for one and normal mode for the second?
Thanks in advance

Answers (0)

Categories

Find more on Simulink Functions in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!