p-code function

조회 수: 11 (최근 30일)
Srikanth
Srikanth 2012년 3월 7일
I want to generate real-time code from a simulink model. The problem i am facing is this simulink block diagram has a embedded function which uses a 3rd party code in .p format. Is this feasible

답변 (1개)

Kaustubha Govind
Kaustubha Govind 2012년 3월 7일
It is possible to generate code from .p files as long as the author of that code specified the coder.allowpcode (previously called eml.allowpcode) directive in the corresponding MATLAB function (before pcode-ing it). You can either ask the author or try generating code from it yourself - you will see an appropriate error if the author did not enable code generation.
  댓글 수: 3
Srikanth
Srikanth 2012년 3월 20일
Thanks for the reply. How to generate code from the .p file with coder.allowpcode('plain'); command myself ? I dont think author has put this cmd in the code.
Daniel Shub
Daniel Shub 2012년 3월 20일
If the author of the pcoded file has not allowed you to use coder, than you cannot use coder. You need to contact the author of the pcoded file.

댓글을 달려면 로그인하십시오.

제품

Community Treasure Hunt

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

Start Hunting!

Translated by