MATLAB: Parallel computing for real-time simulation in Xpc target computer

parallel computing; real-time simulation; xpc target computer

I want to acceleration the speed of real-time simulating in Xpc target computer. The main code is written in S-function and embeded in Simulink model. Whether any parallel computing method (parallel computing box, GPU acceleration or MPI) can be used in Xpc target computer? Thanks!

Best Answer

Parallel computing box, GPU acceleration etc., is not applicable to xPC. The approach you would have to take is by utilizing the multiple rates in your modelling if possible. For example, if the base rate of your model is T1 seconds then you could inspect if all the calculations have to be done at the rate. If there is possibility of performing some parts of the calculation "not as often" then you may set the rate of this part of the model to T2 seconds where T1 < T2. You may also partition using model referencing. See:
You could also configure your model for execution on multi-core targets. This is a good starting point: