PIL example doesn't work

2 次查看(过去 30 天)
Roger
Roger 2014-3-27
编辑: Roger 2014-3-27
Hi, I followed Mathworks document:
of: Performing a Model Block PIL Simulation via SCI Using Makefiles
to try PIL simulation.
I used the Matlab R2012b, because we have some customerlized libraries and scripts for this version. While this example is for Matlab R2014a.
So instead setting the Coder target in the model configuration parameters, I setted it in the target preferences block. And I setted build format and build action in the IDE link pane.
I followed all steps to the simulation. And I got this error message when simulate:
Configuration component 'RTWSystemTargetFile' of model 'fuelsys_pil' and configuration component 'RTWSystemTargetFile' of model 'fuelsys_ctr' are not compatible. The error message returned by the comparison function is: The parameter setting for 'RTWSystemTargetFile' must be the same for all models in the model reference hierarchy
Where is the problem? Can anyone explain it to me? Or give me an example using this approache in Matlab R2012b? Thanks!
  1 个评论
Roger
Roger 2014-3-27
编辑:Roger 2014-3-27
I solved the problem by copying the target references block from the top module to the referenced model "fuelsys_pil". But here comes the new error:
"fuelsys_ctr" cannot be simulated in PIL mode because it is not compatible with any available connectivity configuration. Available connectivity configurations are: Analog Devices VisualDSP++, Eclipse (IDE), Eclipse (TCP/IP), Texas Instruments Code Composer Studio (IDE), Texas Instruments Code Composer Studio (TCP/IP), Texas Instruments Code Composer Studio (Serial), WRWorkbench (you can view details in the MATLAB Command Window by clicking the hyperlinks). The model's configuration parameters (SystemTargetFile, TemplateMakefile, TargetHWDeviceType, IDE Link settings) were checked for compatibility against these connectivity configurations but no match was found. To use connectivity configurations provided by IDE Link, configure the model as described in the documentation. To automatically configure the model for PIL see cgv.Config.
All setup for the model configuration is setted accroding to the Mathworks example.How can I solve this problem?

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Deployment, Integration, and Supported Hardware 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by