possible simulink bug during s function building.

1 回表示 (過去 30 日間)
max
max 2013 年 1 月 20 日
Hi,
when I built a simple S-function, a message error appears:
"pwd is not recognized as an internal or external command, operable program or batch file".
If I built the s-function with another computer, it's all right. This error appears since I've trasported a simulink file from a platform D-space to my computer. It appears in every folder, I don't know why, it seems a virus.
Does everyone know what's appen?

回答 (1 件)

Walter Roberson
Walter Roberson 2013 年 1 月 21 日
This is highly unlikely to be a virus.
That error message comes from MS Windows, and indicates that your program is attempting to use one of
!pwd
or
system('pwd')
or
dos('pwd')
pwd is not part of MS Windows. The above link shows how you can create a pwd.bat file.
You should try to track down why your code is attempting to call a system pwd routine.
pwd is a MATLAB routine, but the error message for not being able to find a routine as a MATLAB call is completely different.
  1 件のコメント
Kaustubha Govind
Kaustubha Govind 2013 年 1 月 21 日
Is it possible that dSPACE generated a Makefile or batch file with the "pwd" command? Note that the "pwd" command will work in Linux, but may not always work on Windows. I would also recommend creating a pwd.bat file as Walter recommended.

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

カテゴリ

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

製品

Community Treasure Hunt

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

Start Hunting!

Translated by