possible simulink bug during s function building.
1 view (last 30 days)
Show older comments
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 Comments
Answers (1)
Walter Roberson
on 21 Jan 2013
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 Comment
Kaustubha Govind
on 21 Jan 2013
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.
See Also
Categories
Find more on Naming Conventions in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!