Delta Tau Forums

Full Version: C code generation using MAtlab for user code in Power Pmac
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
We are currently working on modification of control systems for a position control application. We have designed a user code for PPMAC IDE using Matlab simulation. The controller implemented currently is MODEL PREDICTIVE CONTROLLER (MPC).
The problem faced is when the C Code is generated using transfer function and rest simulation blocks; then all required headers files are generated. However, when it comes to generation of files using Power Pmac all headers files do not generated(type.h and private.h files are missing ) due to which compilation shows error .

On the other hand when embedded coder is used for C Code generation there is an error of sampling time.
Anyone who could kindly guide regarding code generation for MPC using Matlab Simulink is requested to reply as soon as possible