Transffering real-time data from one Simulink model to another one

1 view (last 30 days)
Hello, I have a Simulink model that just contains an S-function block(Written with legacy tool code) that provides reading real-time data from a sensor and monitoring data. This Simulink is developed to be run with Normal mode of simulation. From the other side, I have another Simulink model which is designed to be run with External mode of simulation with connecting to a hardware in real-time. I could not combine these two models because of some errors that related to source codes and I do not have access to that. Right now, I want to trasffer updated data from sensor to second Simulink. I want to let the first Simulink (for sensor) to be in the run and then after running my second Simulink model, I want to read sensor data from the first Simulink in each step size in real time in second Simulink. What is the best solution for this issue. Any help will be appreciated. Thanks.

Answers (0)

Categories

Find more on Event Functions in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!