How to enable "Log Event Sequence" option programatically
조회 수: 2 (최근 30일)
이전 댓글 표시
How do I enable the highlighted option programatically ?
댓글 수: 0
답변 (1개)
Yukthi S
2024년 7월 24일
To programmatically toggle Log Events option under PREPARE section of Simulink toolstrip, you can follow these steps. I am using SimpleMessageModel for reference given in the documentation.
1. Enter the following command in command window and open the example model
openExample('simulink/ModelMessageBasedCommunicationFrameworkExample')
2. Get the path name of the current system using gcs.
gcs
More about gcs in the documentation given below:
3. Check the current status of EventLogging parameter using
get_param(gcs,'EventLogging')
4. To enable Log Events, use
set_param(gcs,'EventLogging', 'on')
5. To disable it, use
set_param(gcs,'EventLogging', 'off')
Hope this helps!
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Prepare Model Inputs and Outputs에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!