- SampleTime
- Offset
- Priority
How to set sample time properties programmatically for simulink configuration
조회 수: 12 (최근 30일)
이전 댓글 표시
I am trying to set sample time properties programmatically for simulink configuration. Below is the code snippet:
% Solver pane
vse_configSet_wrapper.set_param('SampleTimeConstraint', 'Specified'); % Periodic sample time constraint
vse_configSet_wrapper.set_param('SampleTimeProperty', '[[0.01,0,1];]'); % Sample time properties
vse_configSet_wrapper.set_param('Solver', 'FixedStepAuto'); % Solver
vse_configSet_wrapper.set_param('StartTime', '0.0'); % Start time
vse_configSet_wrapper.set_param('StopTime', '12'); % Stop time
However, Configuration Parameters in Simulink shows [object Object] instead of [[0.01, 0, 1];]
How do I correctly set the sample time properties?
댓글 수: 0
답변 (1개)
Samatha Aleti
2019년 8월 16일
Hi,
To configure the parameter “SampleTimePoperty” from command line, you need to enter the sample time properties as a structure with fields as follows:
댓글 수: 1
참고 항목
카테고리
Help Center 및 File Exchange에서 Multicore Processor Targets에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!