Home Forums Software mpc

Viewing 1 reply thread
  • Author
    Posts
    • mahoemahoe
      Participant
      Post count: 6

      We hope to use your controller to realize the verification of our relevant control algorithm. The following figure is our controller model, but it is found that the s-function of MPC in Matlab and the UKF module in Matlab cannot be written into the controller after experiments, so we would like to ask you a question. Is our controller unable to achieve the verification of MPC related algorithms? I hope to get your answer! 我们希望用你们的控制器来实现对我们相关控制算法的验证。下图是我们的控制器模型,但是经过实验发现Matlab中MPC的s函数和Matlab中的UKF模块无法写入控制器,所以我们想问您一个问题。我们的控制器是否无法实现MPC相关算法的验证?我希望得到你的答案!

      Attachments:
      You must be logged in to view attached files.
    • noobsplzwinLeo
      Moderator
      Post count: 8

      Hi Mahoe,

      A lot of customers are using MPC controllers for their applications. It should be able to verify your algorithm. To clarify your problem, can you help with the following questions?

      1. When you mentioned that the controller cannot be written to, are you referring to an error while compiling a Simulink model with S-function or UKF module into C via Embedded Coder?
      2. Could you provide a screenshot of the error message?
      3. If it’s convenient, could you provide your Simulink model? I could validate it locally.

      If Embedded Coder cannot convert these two modules into C, you might consider importing the C library of the S-function or UKF module into Simulink. Alternatively, if the functions are not overly complex, you could manually implement these two functions in MATLAB.

      我们有客户在控制器上部署过MPC算法,是可以进行验证的。以下几个问题想问您一下。

      1. 您所指的无法写入控制器,是指Simulink模型加入S函数或UFK模块后,程序编译Embedded Coder转C的过程会报错么?
      2. 可以发一下报错截图么?
      3. 如果方便,可以提供一下您的Simulink模型么?我可以在本地进行验证。

      如果是这两个特定模块Embedded Coder无法转C,可以在Simulink在导入S函数或UKF模块的C库,或如函数实现不是特别复杂,可以手写matlab来实现这两个函数功能。

      Thanks,
      Huizhe

Viewing 1 reply thread
  • You must be logged in to reply to this topic.