2 Matlabs working together on one PC
Show older comments
Hey, I'm working on some project. It's pretty complicated. It's so expanded that I cannot use one Matlab anymore. Neither I cannot do this on threads.
So in first Matlab I'm working on Simulink. I'm saving data with "To File" block, with default properties. It should save data in real-time. Actually I'm collecting data from USB camera and I'm analyzing it.
In second Matlab I'm working with some kind of mobile robot. And there is my problem. I cannot get data from that file from "To File" block. While I'm accessing it, it seems to be empty. All the time Simulink simulation is running. And when I stop Simulation the file is full with informations, but this Simulation must work all the time! I don't know how I can transfer data from first to second Matlab.
I you have any questions I will answer them as soon as I can.
Accepted Answer
More Answers (1)
per isakson
on 8 Feb 2014
0 votes
"The block writes to the output file incrementally, with minimal memory overhead during simulation. If the output file exists when the simulation starts, the block overwrites the file. The file automatically closes when simulation is complete. If simulation terminates abnormally, the To File block saves the data it has logged up until the point of the abnormal termination."
That explains "While I'm accessing it, it seems to be empty". The file is not closed.
Categories
Find more on Signal Attributes and Indexing 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!