Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
C code generation using MAtlab for user code in Power Pmac
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

Forum Jump:

Users browsing this thread: 1 Guest(s)