Nupoor Posted November 13, 2018 Share Posted November 13, 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 Link to comment Share on other sites More sharing options...
Recommended Posts