LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW Simulation Interface Toolkit-Modell DLL

Ich benutze SIT mit LabVIEW 2009 für die Einbindung von Simulink. Ob Matlab 2009b ist nicht unterstützt?(Denn für mich, Matlab 2007b und 2009b stehen zur Verfügung)

 

Aber kann ich nicht in Simulink mein Modell in Modell DLL konvertieren. Es gibt immer diese Fehlermeldung:

 

Error building Real-Time 'sinewave'. MATLAB error message:
Error using ==> issue_inv_comp_env_val_error at 9
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++ 7.1)
  %MSDevDir%\..\..\vc98\bin\vcvars32.bat     (for Visual C/C++ 6.0)
  %DevEnvDir%\..\tools\vsvars32.bat          (for Visual C/C++ 8.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++ 7.1)
  set %MSDevDir%=<VisualRoot>\common\msdev98 (for Visual C/C++ 6.0)
  set %DevEnvDir%=<VisualRoot>\common7\ide   (for Visual C/C++ 8.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\bzsun\Anwendungsdaten\MathWorks\MATLAB\R2007b\mexopts.bat
Please run "mex -setup" at the MATLAB prompt to correct.

 

LabVIEW: 2009 + Simulation Interface Toolkit Evaluierungsversion

Matlab: 2007b

Compiler: Visual Studio 2008 Express + Microsoft Windows SDK v6.1

Wenn ich Kommando 'mex -setup' in matlab eingegeben habe, das Ergebnis ist so:

 

>> mex -setup
Please choose your compiler for building external interface (MEX) files:
 
Would you like mex to locate installed compilers [y]/n? y
 
Select a compiler:
[1] Lcc-win32 C 2.4.1 in C:\PROGRA~1\MATLAB\R2007b\sys\lcc
[2] Microsoft Visual C++ 2008 Express Edition in C:\Programme\Microsoft Visual Studio 9.0
 
[0] None
 
Compiler: 2
 
Please verify your choices:
 
Compiler: Microsoft Visual C++ 2008 Express Edition 
Location: C:\Programme\Microsoft Visual Studio 9.0
 
Are these correct?([y]/n): y
 
***************************************************************************
      msvc90freeopts
  Warning: MEX-files generated using Microsoft Visual C++ 2008 Express
           Edition require that Microsoft Visual Studio 2008 run-time
           libraries be available on the computer they are run on.
           If you plan to redistribute your MEX-files to other MATLAB
           users, be sure that they have the run-time libraries.
           You can find more information about this at:
          
http://www.mathworks.com/support/solutions/data/1-2223MW.html
***************************************************************************
 
Trying to update options file: C:\Dokumente und Einstellungen\bzsun\Anwendungsdaten\MathWorks\MATLAB\R2007b\mexopts.bat
From template:              C:\PROGRA~1\MATLAB\R2007b\bin\win32\mexopts\msvc90freeopts.bat
 
Done . . .

Ich weiss nicht, welche Probleme von Compiler gibt es. Jetzt kann ich keine .dll Modelle konvertieren.

0 Kudos
Message 1 of 3
(3,064 Views)

 

Hi,

 

I will answer about the compatibility of Simulation Interface Toolkit 2009. The ReadMe lists the latest MATLAB compatibility of 2009a. Therefore, we cannot guarantee correct behavior of SIT 2009 with MATLAB 2009b.

 

The SIT 2009 Readme can be found here:
http://digital.ni.com/public.nsf/allkb/9B769CC7BCB0AD7E86257603006CF042

 

Regards

Rüdiger

0 Kudos
Message 2 of 3
(3,023 Views)
Thank you for your answer, i've used Matlab 2007b, and the problem i have found. i should set the environementvariable of MSDevDir.
0 Kudos
Message 3 of 3
(3,016 Views)