주요 콘텐츠

이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.

실시간 모델 준비

R2026a
기준 결과 얻기, 성능 최적화

실시간으로 사용할 Simscape 모델을 준비하려면 타깃 머신에 대해 충분히 작은 비용과 시간 스텝으로 정확한 결과를 생성할 수 있도록 성능과 충실도 간의 균형을 반복적으로 조정해야 합니다. 먼저 모델에서 기준 결과를 얻으십시오. 모델이 고정 스텝 솔버를 사용하여 기준 결과와 비교했을 때 정확한 결과를 생성하면 모델을 실시간 타깃에 배포해 볼 수 있습니다. 성능과 충실도 간에 균형을 맞출 수 있도록 필요에 따라 다음 단계를 수행하십시오.

  • 더 복잡한 블록과 파라미터화 대신 이상적인 블록 또는 시스템 수준의 블록과 이상적인 파라미터화를 사용합니다.

  • 빠른 동특성의 원인을 제거합니다.

  • 수치적 경직성의 원인을 제거합니다.

  • 영점교차의 원인을 제거합니다.

  • 분할 솔버를 사용합니다.

  • 모델을 분할합니다.

  • 솔버 반복을 최소화합니다.

  • FPGA 배포의 경우, 각종 모드(mode)의 원인을 제거합니다.

빠른 동특성과 수치적 경직성에 대한 솔버 성능을 분석하려면 솔버 프로파일러 툴을 사용하십시오. 고정 스텝과 고정 비용으로 변환할 준비가 된 경우 simscape.getLocalSolverFixedCostInfo 함수를 사용하여 수행할 비선형 반복 횟수를 결정하십시오.

툴

솔버 프로파일러Identify solver performance bottlenecks

함수

simscape.getLocalSolverFixedCostInfoDetermine the iteration requirement for fixed-cost solvers

도움말 항목

고정 스텝 및 고정 비용 설정

성능 최적화

  • Reduce Zero Crossings
    Eliminate components that cause zero crossings to increase the minimal step-size for fixed-step simulation and to make your Simscape model real-time capable.
  • Increase Simulation Speed Using the Partitioning Solver
    Improve performance by using the Simscape Partitioning solver to convert a large system of equations into several smaller systems of equations that are easier to solve.

FPGA 배포

일반 플랫폼

  • Requirements for Using Alternative Platforms
    Follow the recommendations for minimum hardware, software, and compiler specifications to deploy your Simscape model for hardware-in-the-loop (HIL) simulation using a custom standalone application.
  • Embedded and Generic Real-Time Resources
    Simulink® Coder™ and Embedded Coder® use system target files (STFs) to generate code for interfacing with specific real-time operating systems.

추천 예제