|
On Thu, 11 Mar 2010 18:26:02 -0500, yohee yohee <yohee@seznam.cz> wrote:
> Hi,
> I have a simulation scheme in Simulink which periodically calls m-file
> (block MATLAB Fcn).
> In the m-file an image is loaded from IP camera and processed. The
> result is send back to simulink scheme and used for controlling a model.
>
> 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?
|