Problem running the example for Processor in the Loop (PIL)/ Embedded Coder Support Package for Xilinx Zynq/Zedboard

5 views (last 30 days)
The library of the embedded coder support package includes 2 examples: 1) getting started with xilinx zynq hardware and 2) Code verification and validation with PIL and external mode.
I get the first example running on my Zedboard provided that I add the appropriate IP-Adresse for communication (menu "model configuration parameters", "Code Generation", "interface", "Transport layer=tcpip", "Mex-File arguments: 169.254.1.10") and that the simulation mode is set to "external". For some reason this important aspect is not mentioned in the help.
The second example; Code verification and validation with PIL and external mode, specifically the first model "zynq_pil_block" does not work. After following the steps indicated in the help file, compiling the PIL-Block and try running the simulation, simulink delivers the followng error:
### Launching application C:\Users\nnnnn\Documents\MATLAB\example 2\Controller_ert_rtw\pil\Controller... [Warning: Cannot stop Controller. There is no such process running on host 169.254.1.10.]
Error in 'zynq_pil_block/Controller1/Controller_sfcn' while executing C MEX S-function 'Controller_pbs', (mdlStart), at time 0.0.
Undefined function or variable 'executable'.
Component: Simulink | Category: Block error
Error in 'zynq_pil_block/Controller1/Controller_sfcn' while executing C MEX S-function 'Controller_pbs', (mdlTerminate), at time 0.0.
An error occurred while calling into the SIL or PIL target connectivity implementation.
Communications error: the communication channel may not be properly shut down.
I asumme that simulation mode should be "normal". It seems that executable related with the PIL-Block was not downloaded in the target, however i don´t understand why. How can I make this example run with the target? I will appreciate any indication.

Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!