Delta Tau Forums
C code generation using MAtlab for user code in Power Pmac - Printable Version

+- Delta Tau Forums (http://forums.deltatau.com)
+-- Forum: Delta Tau Data Systems (http://forums.deltatau.com/forumdisplay.php?fid=1)
+--- Forum: Power PMAC (http://forums.deltatau.com/forumdisplay.php?fid=2)
+--- Thread: C code generation using MAtlab for user code in Power Pmac (/showthread.php?tid=2782)



C code generation using MAtlab for user code in Power Pmac - Nupoor - 11-12-2018

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