フィルターのクリア

Why do I receive this error of "evaluating TimerFcn", "'BuildDirOrModelName' is invalid" in command window of Matlab? How this can be fixed?

4 ビュー (過去 30 日間)
Shubham
Shubham 2024 年 6 月 20 日
回答済み: Sandeep Mishra 2024 年 8 月 13 日
This is the exact msg that I see in command Window. (I am using Simulink App with Simulink realtime - Speedgoat Hardware for my HIL Test)
Error while evaluating TimerFcn for timer 'timer-4'
Unable to get 'Value' parameter value on target computer 'TargetPC1': The value of 'BuildDirOrModelName' is invalid. Arguments for coder.getCodeDescriptor should be character vectors.
  1 件のコメント
Matlab Pro
Matlab Pro 2024 年 6 月 24 日
In order to help you - please send the code sample
Anyhow - it is obviouse that the code poointed by the TimerFct is doing the error.
Can you add a breakpoint and debug?

サインインしてコメントする。

回答 (1 件)

Sandeep Mishra
Sandeep Mishra 2024 年 8 月 13 日
Hi Shubham,
I recognize that you are using Simulink Real-Time with Speedgoat hardware for HIL test and facing the following error : “Arguments for coder.getCodeDescriptor should be character vectors”.
To resolve the issue, you can refer to the following MATLAB Answers post on “Real-time application running on a Speedgoat and Slrealtime Instrument” documentation respectively:
  1. https://www.mathworks.com/matlabcentral/answers/517628-how-can-i-create-an-app-designer-app-to-control-tune-and-visualize-my-real-time-application-running
  2. https://www.mathworks.com/help/releases/R2022b/slrealtime/api/slrealtime.instrument.html
I hope it helps.

カテゴリ

Help Center および File ExchangeTarget Computer Setup についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by