possible simulink bug during s function building.
1 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
回答(1 个)
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
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 Exchange 中查找有关 Naming Conventions 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!