Terminology 101: XPC , Real-Time, ERT, SIL, PIL, External Mode
显示 更早的评论
The number of toolboxes, options, and general flexibility of matlab, make for a very overwhelming experience to the un-initiated..
Can anyone explain, what would it be called if Simulink is running on a PC exchanging data with a simple external RS232 device/pc: SIL, PIL, or External Mode?
Since the system simulink model receiving external data runs on the development pc, what product(s) would it need to be configured for: Real-Time Windows Target, xPC Target, RT/xPC 'ERT', or other?
Finally, if a simulink model is to be built to generate generic c-code that runs on the external device or pc, what product(s) are needed: xpc target explorer, Simulink coder, Embedded coder, Real-Time Workshop?
Also, is there a terminology or implementation difference between simple host/target data exchange, and 'real-time' closed loop control system where a simulink model running on a pc is closing the control loop but the actuators/sensors are external.
采纳的回答
更多回答(2 个)
benn nguyen
2013-12-20
1 个投票
2 个评论
Rajiv Ghosh-Roy
2013-12-20
When running on a target, the Normal and Accelerator modes are meaningless: they are applicable to "simulation" only.
For SIL/PIL, you can think of them as alternative targets to xPC Target or Real Time Windows targets, as is the Generic Real-Time Target. As Suneesh explains above, the GRT will generate a standalone executable with real-time compatible code.
As far as the blocks go, it is a little more tricky:
- Blocks made for one target (say xPC Target) are typically made to access hardware features (e.g. and A/D device) and are written to leverage the execution environment/OS of that target. These blocks will not work across targets (e.g. a Real-Time Windows Target block cannot be used with xPC Target code generation).
- There are other blocks which can be used more generally; for instance, the bit- and byte-packing blocks in xPC Target which only shuffle variables in memory and do not access specialized hardware. These can in theory work across targets, but may not in practice because of paths in makefiles, etc.
- The GRT target has similar considerations: it cannot run blocks from any target which accesses hardware; it may be able to run the "generic" blocks but this will depend on the paths.
benn nguyen
2013-12-22
编辑:benn nguyen
2013-12-22
Guy Rouleau
2013-12-21
0 个投票
I like this page for HIL:
This section of the doc will help for SIL and PIL:
类别
在 帮助中心 和 File Exchange 中查找有关 Test Model Components 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!