PIL example doesn't work

1 view (last 30 days)
Roger
Roger on 27 Mar 2014
Edited: Roger on 27 Mar 2014
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 Comment
Roger
Roger on 27 Mar 2014
Edited: Roger on 27 Mar 2014
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?

Sign in to comment.

Answers (0)

Categories

Find more on Deployment, Integration, and Supported Hardware in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!