Storage Class を "Const" に設定している場合、SIL実行ができないのはなぜですか?
Show older comments
テストマネージャーで、SILを実行しています。
Storage Class を "Const" に設定している場合、SIL実行できません。
エラー:
'sim' の呼び出し時にエラーが発生しました ('PIL:pilverification:PILImplementationError'):
SIL または PIL ターゲット接続の実装の呼び出し中にエラーが発生しました。
"test_subComp_24b" のビルド中にエラーが発生しました
ログ:
Workspace parameter 'myParam' は SIL または PIL シミュレーション中の動的パラメーターの初期化、調整、またはテスト ハーネスのデータ定義でサポートされていません。パラメーターがインポートされる場合は、カスタム コードを使用してパラメーターを定義してください。パラメーターが初期化されない場合は、カスタム コードを使用してパラメーターを初期化してください。そうしない場合、SIL または PIL シミュレーションでリンカー エラーが発生するか、誤った数値結果が生じます。
Unable to access Workspace parameter 'myParam' because the data element is read-only in generated code. To enable access during SIL or PIL simulations, consider changing the storage class associated with Workspace parameter 'myParam'.


Accepted Answer
More Answers (0)
Categories
Find more on 配布 in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!