APIでModel Advisorのチェ​ックからすべてのサブ​IDの結果を取得する​にはどうすればいいで​すか?

Simulink Check R2025bの複数のサブIDを含むJSONファイルを使って、Model Advisorのチェックからすべての結果を取得するAPIを使いたいです。 しかし、getCheckresult関数で取得しようとすると、最後のサブIDの結果しか得られません。すべてのサブIDの結果を取得するにはどうすればいいですか?

 Réponse acceptée

MathWorks Support Team
MathWorks Support Team le 25 Fév 2026

0 votes

ModelAdvisor.runから取得した結果にはgetCheckResultsを使用します。以下は、すべてのインスタンスに対するチェックの結果を得る方法です:
a_system = 「test_model」;
a_json_name = 「sample.json」;
load_system(a_system);
r_ret = ModelAdvisor.run(a_system, 'Configuration', a_json_name);
check_res = r_ret{1}.getCheckResults('mathworks.jmaab_v6.na_0011');

Plus de réponses (0)

Catégories

Produits

Version

R2025b

Community Treasure Hunt

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

Start Hunting!