1

I have a simulink model which uses inputs from 6 webcams for live video processing. For that I use 6 'From Video Device' blocks. The output from these blocks are processed upon to generate output in the form of (x,y) co-ordinates. All 6 webcam outputs are processed at a time in parallel. However matlab hangs and stops simulation if I use more than 3 webcams. I want to divide the 6 processing blocks among two processor cores using Parallel Computing Toolbox. But couldn't find suitable instructions anywhere for distributing a single simulink model among multiple processor cores. I am using Matlab R2011a.

Well, I cannot post my code or my model, but I can tell you what my model does. It takes input from 6 usb camera, tracks a moving object in each frame of each camera and gives me the location of the moving object in (x,y) co-ordinates. Thus, I get 6 (x,y) co-ordinates as output at a time. My model works well till I use 3 cameras and generate 3 (x,y) outputs. Adding fourth camera hangs the matlab and stops the simulation.

2
  • 1
    Can you post some relevant code regarding your processing? Commented Jul 18, 2012 at 8:41
  • @pjakhar you should stay logged in if you want to edit your own question. Commented Jul 19, 2012 at 10:15

1 Answer 1

1

I'm afraid the reason you haven't found instructions for spreading a Simulink model across multiple cores is because these instructions do not currently exist (up to and including R2012b). The Parallel Computing Toolbox only allows you to conduct multiple, seperate simulations simultaneously across the different cores (i.e. to investigate the effects of parameter changes and such like).

For your application, you will likely be better off using Matlab "proper" and writing everything in m-functions and/or scripts. That way you will be able to leverage you multi-core processor by using commands such as parfor.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.