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!