코드 생성
실시간 타깃에 코드 생성 및 제어기 배포
Simulink® 또는 MATLAB®에서 모델 예측 제어기를 검증한 후에는 코드를 생성하여 실시간 제어 애플리케이션에 배포할 수 있습니다. 자세한 내용은 Generate Code and Deploy Controller to Real-Time Targets 항목을 참조하십시오.
함수
블록
도움말 항목
코드 생성 기본
- Generate Code and Deploy Controller to Real-Time Targets
Model Predictive Control Toolbox™ software provides code generation functionality for controllers designed in Simulink and MATLAB. - QP Solvers for Linear MPC
The model predictive controller QP solvers convert an MPC optimization problem to a general form quadratic programming problem.
Simulink에서 코드 생성
- Simulation and Code Generation Using Simulink Coder
Simulate your MPC controller in Simulink and generate real-time code that uses either double-precision or single-precision signals. - Simulation and Structured Text Generation Using Simulink PLC Coder
Simulate your MPC controller in Simulink and generate structured text for programmable logic controllers. - Using MPC Controller Block Inside Function-Call and Triggered Subsystems
To ensure that an MPC controller works properly inside a Function-Call or triggered subsystem, configure the MPC Controller block to use inherited sample time and invoke the subsystem periodically with the same sample time defined in the MPC controller object. - Run Field Oriented Control of PMSM Using Model Predictive Control (Motor Control Blockset)
This example uses Model Predictive Control (MPC) to control the speed of a three-phase permanent magnet synchronous motor (PMSM).
MATLAB에서 코드 생성
- Generate Code to Compute Optimal MPC Moves in MATLAB
Generate C code to compute manipulated variable moves for real-time applications. - Solve Custom MPC Quadratic Programming Problem and Generate Code
Implement a custom MPC control algorithm that supports C code generation in MATLAB using the built-in KWIK QP solver. - Generate Code to Plan and Execute Collision-Free Trajectories Using KINOVA Gen3 Manipulator
Use nonlinear MPC to plan and execute trajectories for a robot manipulator.
CUDA 코드 생성
- Use the GPU to Compute MPC Moves in MATLAB
Simulate your MPC controller in MATLAB using the GPU. - Use the GPU to Simulate an MPC Controller in Simulink
Simulate your MPC controller in Simulink using the GPU.
사용자 지정 솔버 사용하기
- Simulate and Generate Code for MPC Controller with Custom QP Solver
Generate code for a model predictive controller that uses a custom quadratic programming solver. - Implement MPC Controllers Using Embotech FORCESPRO Solvers
Use Embotech FORCESPRO Solvers with the Model Predictive Control Toolbox to solve MPC problems and deploy controllers to real-time targets.
OPC 시뮬레이션
- Real-Time MPC Simulation Using OPC Client
Implement an online model predictive controller application using the OPC client supplied with the Industrial Communication Toolbox™.