My problem is that loading from IP cam takes a lot of time. It is quicker to read it from HDD. I would like to have a parallel loop where an image would be loaded from IP cam repeatedly and saved to HDD as a jpg file. Nothing more.
Then in Simulink scheme I would read the last picture saved to HDD and process as i described above.
I have read something about multiprocessing but ...no idea. I would appreciate some code sample. It would be the best... Thanks.
I am a bit unfamiliar with calling MATLAB functions from Simulink.
If you have the Parallel computing toolbox, maybe you could use BATCH?
I have a model in Simulink with block called MATLAB Fcn. There it is possible to fill in the m-file script name. The script is a function with one input param. and one output param.