Storage Class を "Const" に設定している場合、SIL実行ができないのはなぜですか?
이전 댓글 표시
テストマネージャーで、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'.


채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 配布에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!