MathWorks - Mobile View
  • MathWorks 계정에 로그인합니다.MathWorks 계정에 로그인합니다.
  • Access your MathWorks Account
    • 내 계정
    • 나의 커뮤니티 프로필
    • 라이선스를 계정에 연결
    • 로그아웃
  • 제품
  • 솔루션
  • 아카데미아
  • 지원
  • 커뮤니티
  • 이벤트
  • MATLAB 다운로드
MathWorks
  • 제품
  • 솔루션
  • 아카데미아
  • 지원
  • 커뮤니티
  • 이벤트
  • MATLAB 다운로드
  • MathWorks 계정에 로그인합니다.MathWorks 계정에 로그인합니다.
  • Access your MathWorks Account
    • 내 계정
    • 나의 커뮤니티 프로필
    • 라이선스를 계정에 연결
    • 로그아웃

비디오 및 웨비나

  • MathWorks
  • 비디오
  • 비디오 홈
  • 검색
  • 비디오 홈
  • 검색
  • 영업 상담
  • 평가판 신청
  Register to watch video
  • Description
  • Full Transcript
  • Related Resources

How to Use Schedule Editor

From the series: Run-Time Software Modeling

Teresa Hubscher-Younger, MathWorks

Use Schedule Editor to explicitly schedule the execution of your model components, including Export Functions and rate-based models, for both simulation and code generation. Quickly create test harnesses based on rates and execution times for Export Function models, and with Schedule Editor, every specified partition has an entry point in the generated code, even with rate-based models.

With Schedule Editor, you can easily view and edit the schedules of components in a graphical format. It shows a graph of the components in the model (known as partitions), the data communication between them, and a table of the execution order of those partitions. You can edit the schedule of partitions without disturbing the model structure.

With the Schedule Editor, you can schedule components in both export-function and rate-based models, by creating partitions and specifying their execution order. You can simulate this schedule as a test harness and generate code where every specified partition has an entry point.

To use the Schedule Editor, a model needs to be fixed-step, multitasking, and handling rate transitions automatically. This enables the Schedule Editor to manipulate partitions you will create with components.

To open the Schedule Editor, you go to the View menu, and to see the default partitions, you need to Update Diagram.

What we see in the model are two implicit partitions, meaning that Simulink has scheduled these partitions automatically. These are associated with rates in the model. Let’s create some explicit partitions to schedule by setting the Schedule Rates with parameter to Schedule Editor in the model block. The ports choice would expose the function call ports at the boundary to be scheduled by a Function Call Generator or Stateflow Chart. The Schedule Editor option removes the ports, because you can now schedule them directly in the editor and simulate how they will behave by ordering the partitions.

I will run the model now, which also updates the Schedule Editor.

The Execution Order on the right shows the current schedule for the partitions, which were created from the function calls. The Schedule Editor figures out the rates for the partitions from the specified sample times in the function calls.

The 5-millisecond tasks are grouped together under the exported function set to inherit its rate. At the bottom, we have the 10-millisecond task. On the right, we can see the data connections and dependencies between the partitions. The partition set to inherit its rate can be scheduled by specifying the hit time directly in the partition property dialog or by giving it a variable that has the hit times.

To update the schedule or execution order we simply drag and drop the partitions in the list. Dragging ThrottleComposition.ActuatorRun5ms after the  ThrottleComposition.ControllerRun5ms in the execution order, results in a dependency change between the two partitions.

Rate-based models can be used with the Schedule Editor by creating partitions manually. To do this, open Manage Partitions, choose to schedule as a periodic partition, and give it a name.

These partitioned models have entry points in the generated code, which Export Functions also have.

Schedule Editor lets you schedule execution for simulation and code generation​, allowing you to have more control over execution and quickly create test harnesses based on rate and execution times.

  • Schedule execution for simulation and code generation​
  • Every specified partition has an entry point in the generated code​
  • Quickly create test harnesses based on rates and execution times for export functions​

Related Products

  • Simulink
  • Embedded Coder
Related Information
Learn more about Schedule Editor

Feedback

Featured Product

Simulink

  • Request Trial
  • Get Pricing

Up Next:

Use messages to model and generate C++ code for software compositions with message-based communication.
2:25
What Are Messages in Simulink?
View full series (6 Videos)

Related Videos:

4:26
When and How to Use a Data Dictionary
26:41
Optimizing Transmission Shift Schedule and Powertrain...
1:22
Simulink Users React to the New Simulink Editor
2:18
Simulink Editor
2:38
Model-Based Design Applied: Students Use Model-Based Design...

View more related videos

MathWorks - Domain Selector

Select a Web Site

Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

Select web site

You can also select a web site from the following list:

How to Get Best Site Performance

Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.

Americas

  • América Latina (Español)
  • Canada (English)
  • United States (English)

Europe

  • Belgium (English)
  • Denmark (English)
  • Deutschland (Deutsch)
  • España (Español)
  • Finland (English)
  • France (Français)
  • Ireland (English)
  • Italia (Italiano)
  • Luxembourg (English)
  • Netherlands (English)
  • Norway (English)
  • Österreich (Deutsch)
  • Portugal (English)
  • Sweden (English)
  • Switzerland
    • Deutsch
    • English
    • Français
  • United Kingdom (English)

Asia Pacific

  • Australia (English)
  • India (English)
  • New Zealand (English)
  • 中国
    • 简体中文Chinese
    • English
  • 日本Japanese (日本語)
  • 한국Korean (한국어)

Contact your local office

  • 영업 상담
  • 평가판 신청

제품 소개

  • MATLAB
  • Simulink
  • 학생용 소프트웨어
  • 하드웨어 지원
  • File Exchange

다운로드 및 구매

  • 다운로드
  • 평가판 신청
  • 영업 상담
  • 가격 및 라이선스
  • MathWorks 스토어

사용 방법

  • 문서
  • 튜토리얼
  • 예제
  • 비디오 및 웨비나
  • 교육

지원

  • 설치 도움말
  • 사용자 커뮤니티
  • 컨설팅
  • 라이선스 센터
  • 지원 문의

회사 정보

  • 채용
  • 뉴스 룸
  • 사회적 미션
  • 영업 상담
  • 회사 정보

MathWorks

Accelerating the pace of engineering and science

MathWorks는 엔지니어와 과학자들을 위한 테크니컬 컴퓨팅 소프트웨어 분야의 선도적인 개발업체입니다.

활용 분야 …

  • Select a Web Site United States
  • 특허
  • 등록 상표
  • 정보 취급 방침
  • 불법 복제 방지
  • 매스웍스코리아 유한회사
  • 주소: 서울시 강남구 삼성동 테헤란로 521 파르나스타워 14층
  • 전화번호: 02-6006-5100
  • 대표자 : 이종민
  • 사업자 등록번호 : 120-86-60062

© 1994-2021 The MathWorks, Inc.

  • Naver
  • Facebook
  • Twitter
  • YouTube
  • LinkedIn
  • RSS

대화에 참여하기