problems with RealTimeWorkshop compiler

Hello everybody,
i was trying to build up my PID-Modell with the real-time-workshop to get it run under LabView for easier connecting to a sensor. But the lcc-compiler always brings errors so i checked the preferences again...but i've no idea what the problem is?!
the system-target-file is the nidll-tlc with the language c the error is: "Invalid setting for environment variable MSDevDir or DevEnvDir. The setting is: '' You can verify the setting by checking for the existence of: %DevEnvDir%\..\tools\vsvars32.bat (for Visual C/C++ 9.0) %MSDevDir%\..\..\vc98\bin\vcvars32.bat (for Visual C/C++ 6.0) %DevEnvDir%\..\tools\vsvars32.bat (for Visual C/C++ 8.0)
You must define MSDevDir or DevEnvDir to be: set %DevEnvDir%=<VisualRoot>\common7\ide (for Visual C/C++ 9.0) set %MSDevDir%=<VisualRoot>\common\msdev98 (for Visual C/C++ 6.0) set %DevEnvDir%=<VisualRoot>\common7\ide (for Visual C/C++ 8.0)
This error may be due to an invalid preference file: C:\Dokumente und Einstellungen\FGLuser\Anwendungsdaten\MathWorks\MATLAB\R2010b\mexopts.bat Please run "mex -setup" at the MATLAB prompt to correct"
i first thought i should take a c++ compiler, but in the supported compiler list is the lcc aswell.
thanks a lot for any response!
greetings Hansjörg

댓글 수: 4

Andreas Goser
Andreas Goser 2011년 3월 15일
I wonder if creating a basic MEX file works - lie the yprime.c or timestwo.c examples. That would help to sort out whether this is a compiler setup issue or related to the specific interface with the other software.
Hansjörg
Hansjörg 2011년 3월 15일
thanks for your really fast answer and sorry for my delay in answering you.
unfortunately the mex files didn't work. matlab said: unable to complete successfully (??? error using ==> mex at 208)
what do you think, should i change or reinstall my compiler?
or do you think its another problem?
Hansjörg
Andreas Goser
Andreas Goser 2011년 3월 15일
I think you shall contact <http://www.mathworks.com/matlabcentral/answers/2495-when-shall-i-contact-mathworks-technical-support-and-how Technical Support>. I know your university has a large license under maintenance.
Kaustubha Govind
Kaustubha Govind 2011년 3월 15일
You can run mex with the -v (verbose) option to see the exact compiler error - this will help us diagnose MEX-specific issues further.

댓글을 달려면 로그인하십시오.

 채택된 답변

Kaustubha Govind
Kaustubha Govind 2011년 3월 15일

0 개 추천

The LabVIEW Simulation Interface Toolkit requires Microsoft Visual C++ compilers to be installed (see System Requirements for version 5.0). LCC is not supported with the Toolkit, which is probably why you see the errors.

댓글 수: 1

Hansjörg
Hansjörg 2011년 3월 15일
thanks!
i'll try to use the ms visual c++....hope is works

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 LabVIEW에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by