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 CenterFile Exchange에서 Naming Conventions에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by