フィルターのクリア

The value of 'filename' is invalid. It must satisfy the function: exist.

93 ビュー (過去 30 日間)
Bharathi
Bharathi 2023 年 3 月 6 日
回答済み: Swaraj 2023 年 4 月 5 日
The value of 'filename' is invalid. It must satisfy the function: exist. getting this error while executing test case
  3 件のコメント
Bharathi
Bharathi 2023 年 3 月 6 日
Its a simulink test suit and its file name is "SL_B007_27_DmeSensorSelection"
chrisw23
chrisw23 2023 年 3 月 7 日
..try this
myFilePath = "...SL_B007_27_DmeSensorSelection.xxx";
fInfo = System.IO.FileInfo(myFilePath);
if fInfo.Exists
...
end

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

回答 (1 件)

Swaraj
Swaraj 2023 年 4 月 5 日
The error is coming because some test is trying to use a file which does not exist.
You can go through the exist function documentation for more details and check if all files that your test is using are present at the specified paths.
Also, you can check if all the files under use have names as per the standards.

カテゴリ

Help Center および File ExchangeOutputs についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by