Research on Performance of Two Real-Time Simulation Environments: RTWT and xPC Target

2014 ◽  
Vol 889-890 ◽  
pp. 1257-1261
Author(s):  
Yan Hong Bai ◽  
Cong Liu

RTWT (Real-Time Windows Target) and xPC Target are two developing environments based on Matlab/RTW for hardware-in-loop real-time simulation and rapid control prototype. Some error messages which lead to program stop often occur in their practical applications, such as CPU overload, buffer too small, and so on. In this paper, performance of the two simulation environments were studied by analyzing their working mechanism and conducting a lot of experiments, including signal data logging capability, sampling period and system stability. And the reasons which cause error running messages were analyzed. The following conclusions have been drawn. For RTWT data logging capability is not limited by buffer size because the data in buffer are saved to file in real-time during operating. While for xPC Target data logging capability is not limited by buffer size because the data in buffer are uploaded to the host computer and stored in file at the end of run. As long as the sampling period is slightly larger than the task execution time, xPC Target can run stably. RTWT can run stably only when the sampling period is far larger than the task execution time. The proposed conclusions can provide reference for selection between RTWT and xPC Target and their application.

2014 ◽  
Vol 620 ◽  
pp. 563-568
Author(s):  
Yong Li Bi ◽  
Dan Yang

Constructing the semi-physical real-time simulation system with Matlab/Simulink, the interface cards are used to transmit information with the external equipments. The real-time operating system based on Matlab/xPC Target almost doesn't support the drivers provided by the interface card manufacturers. In order to meet the requirement to construct the semi-physical real-time simulation system with Matlab/Simulink and utilize effectively the newer kind interface cards, it is very significant to develop the interface card drivers based on xPC Target. With the example of PCI-1710 data acquistion card in the paper, the drivers were developed based on xPC Target with S-function. In addition, the performance of the drivers were tested. The results show that the drivers have the characteristics of convenient use, good real-time performance, strong portability etc. This has the certain guiding significance for developing drivers for the various interface cards based on xPC Target.


1997 ◽  
Vol 21 (1-2) ◽  
pp. S1111-S1115
Author(s):  
P Lundstrøm

Sign in / Sign up

Export Citation Format

Share Document