필터 지우기
필터 지우기

how to control simscape data logging properties from command line

조회 수: 2 (최근 30일)
Jeff Hoefler
Jeff Hoefler 2015년 12월 16일
답변: Vidya Viswanathan 2015년 12월 22일
Is there a way, from the command line, to set the values of the various configuration parameters for simscape like you can with the solver? I am able to do set_param(modelName, 'solver','ode14x') but can't figure out how to set "Log simulation Data" to "All", set the "workspace variable name" to some new name (other than simlog) and turn off the "Limit data points" checkbox

답변 (1개)

Vidya Viswanathan
Vidya Viswanathan 2015년 12월 22일
It is possible to control Simscape Data Logging properties from command line in a manner similar to setting other options in Configuration Parameters.
In order to set "Log simulation data:" to "all", use the command:
set_param(modelName,'SimscapeLogType','all')
To change the name of the Workspace variable, use
set_param(modelName,'SimscapeLogName','varName')
To uncheck "Limit data points" option, use
set_param(modelName,'SimscapeLogLimitData','off')
Note that the Command-Line Information of any option can be obtained by Right-clicking the particular option and selecting "What's This?".

카테고리

Help CenterFile Exchange에서 Data Logging에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by