フィルターのクリア

parallel computing for real-time simulation in Xpc target computer

3 ビュー (過去 30 日間)
Zhu
Zhu 2014 年 2 月 22 日
編集済み: Suneesh 2014 年 2 月 27 日
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!

採用された回答

Suneesh
Suneesh 2014 年 2 月 23 日
編集済み: Suneesh 2014 年 2 月 23 日
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:
  2 件のコメント
Zhu
Zhu 2014 年 2 月 24 日
Thanks for your reply. So what's the reason that why those ways (Parallel computing box, GPU acceleration etc.) are not applicable to xPC?
Suneesh
Suneesh 2014 年 2 月 24 日
編集済み: Suneesh 2014 年 2 月 27 日
Parallel Computing toolbox is intended to spawn multiple threads on a (mostly) non realtime HOST platform running something like Windows 7, Debian Linux etc. Simulink Concurrent execution which I referred to provide better ways of doing the similar thing but for a variety of realtime targets including xPC. So it is just a different workflow (plus you don't need to buy an additional license).
Also, if you have a multirate model that you run on a multicore xPC target then the software automatically takes advantage of the cores by automatically creating tasks for each of the rates.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTarget Computer Setup についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by