get_param(confgset, 'SampleTime') does not return any value...
이전 댓글 표시
I'm trying to get the value of SampleTime parameter in ConfigSet in my Simulink model.
I set a certain value in seconds in Fixed Sample Time in Solver Detail group of Configuration window,
and then tried to read it in matlab console, such as followings;
>> conf = getActiveConfigSet('MyModel');
>> get_param (conf, 'StartTime')
ans = '0.0'
>> get_param (conf, 'StopTime')
ans = 'inf'
>> get_param (conf, 'SampleTime')
Property 'SampleTime' does not exist.
My question is why get_parameter 'SampleTime' does not work while earlier two, 'StartTime' and 'StopTime', works ok.
Any suggestion related to SampleTime parameter in ConfigSet would be appreciated.
Besides, I don't have Simulink Real-Time package license so that I can't use slrealtime target.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Troubleshooting in Simulink Real-Time에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!