The acquisition from each camera takes place in separate worker by using spmd blocks. When detecting the connected cameras, labBarrier ensures that the camera detection code is called by only one worker at a time.