What are the differences between Simulink Real-Time and xPC Target real-time kernel?

86 次查看(过去 30 天)
Hello MathWorks Community,
I am trying to implement hardware-in-the-loop simulation using a desktop PC + (NI DAQ card or Raspberry Pi) instead of using Speedgoat. I understand there will be limitations with this solution, but I am looking at a sampling rate of 100Hz, so I figure it shouldn't be a huge issue. However, I am not sure if xPC target is still in use or has it been replaced by Simulink Real-Time?
So, can some one clarify what is still in use in 2019?
Thanks,

采纳的回答

Diego Kuratli
Diego Kuratli 2022-6-9
xPC Target has been renamed to Simulink Real-Time.
Simulink Real-Time supports Speedgoat hardware for rapid prototyping and hardware-in-the-loop testing:
Real-Time Windows Target has been renamed Simulink Desktop Real-Time. With Simulink Desktop Real-Time you can run real-time simulations in your desktop computer and connect selected I/O interfaces:
For Raspberry Pi, you can use the Raspberry Pi Support Package for Simulink:

更多回答(1 个)

Nikunj Bhagat
Nikunj Bhagat 2019-7-26
After some reading, I found out that Simulink Real-Time and xPC Target are the same thing. I also found out about Simulink Desktop Real-Time, which allows you to run a model on a desktop computer in real-time and doesn't require the Speedgoat hardware. It works with many supported DAQ cards such as from Quanser, NI, etc. A complete list of supported devices can be found here : https://www.mathworks.com/hardware-support/simulink-desktop-real-time.html. However, it seems that Simulink Desktop Real-Time doesn't support Arduino or Raspberry Pi yet.
With Simulink Desktop Real-time, the limitation is that it supports sampling rates upto 1kHz and upto 20kHz (when using Simulink Coder). With Speedgoat and Simulink Real-Time (aka xPC-Target) you can get sampling rates upto 50kHz.

类别

Help CenterFile Exchange 中查找有关 Development Computer Setup 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by