Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

matlab multiprocessing

1 view
Skip to first unread message

yohee yohee

unread,
Mar 11, 2010, 6:26:02 PM3/11/10
to
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.

Ashish Uthama

unread,
Mar 12, 2010, 9:43:02 AM3/12/10
to

I am a bit unfamiliar with calling MATLAB functions from Simulink.

If you have the Parallel computing toolbox, maybe you could use BATCH?

yohee yohee

unread,
Mar 12, 2010, 3:29:20 PM3/12/10
to
"Ashish Uthama" <first...@mathworks.com> wrote in message <op.u9glt...@uthamaa.dhcp.mathworks.com>...

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.

0 new messages