LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why can't Real Time Workshop create a model DLL?

The build completed successfully with your TMF file.
Where did this file come from? Why is your file different than the one on my computer?
Thanks for your help!
0 Kudos
Message 11 of 17
(3,936 Views)
Honestly, that is a good question. I am not sure when your file changed. That is just the default file that got installed on my computer.
Message 12 of 17
(3,937 Views)

Hello Brandon, I was getting the same error before upgrading to 2.0.3. Thanks for those suggestions. Now, however, I'm getting this new error and I was hoping you might know how to fix it:

Error using ==> RTW.makertw.make_rtw
Error using ==> rtw\private\issue_inv_comp_env_val_error
Invalid setting for environment variable MSDevDir or DevEnvDir.
The setting is: 'c:\program files\microsoft visual studio\common\msdev98'
You can verify the setting by checking for the existence of:
  %MSDevDir%\..\vc\bin\vcvars32.bat          (for Visual C/C++ 5.0)
  %MSDevDir%\..\..\vc98\bin\vcvars32.bat     (for Visual C/C++ 6.0)
  %DevEnvDir%\..\tools\vsvars32.bat          (for Visual C/C++ 7.0)

You must define MSDevDir or DevEnvDir to be:
  set %MSDevDir%=<VisualRoot>\sharedide      (for Visual C/C++ 5.0)
  set %MSDevDir%=<VisualRoot>\common\msdev98 (for Visual C/C++ 6.0)
  set %DevEnvDir%=<VisualRoot>\common7\ide   (for Visual C/C++ 7.0)

This error may be due to an invalid preference file:
  C:\Documents and Settings\Sima Azar\Application Data\MathWorks\MATLAB\R14\mexopts.bat
Please run "mex -setup" at the MATLAB prompt to correct

I have Visual Studio 6 installed, but I didn't install Visual C/C++ with it, just InterDev. I tried "mex -setup" and it showed 3 different compilers. One of them was Matlab's LCC and the other was Visual C/C++. I tried them both just for the sake of it, but I get that same error. Do you know what this could be from?

Thanks,

Sima

0 Kudos
Message 13 of 17
(3,883 Views)
Well, after a few re-installs of the various software, the VI finally compiled.
0 Kudos
Message 14 of 17
(3,858 Views)

Hi Brandon,

    I have a similar problem, too. Before I upgrade to SIT2.0.3, the error message was "Indices may not be negative".

The code can now successfully compiled until the linking stage. A new problem shows up in the last part:

Error using ==> RTW.makertw.make_rtw
Error using ==> rtw_c
### Unable to find build success string: "*** Created" in build log.

The c compiler I choose is Visual Studio. NET 2003. Could you give me some suggestions please?

Shawn

P.S BTW, I compile this model using other tlc files in the matlab and they are all succeeded.

0 Kudos
Message 15 of 17
(3,804 Views)
Sorry, I try to edit my previous message but the system doesn't allow me to do it.
I just read that SIT 2.0.3 does not support compiler for VC7.0 .NET.
However, if anyone knows how to fix this, please still try to help me.
The detail error is:
---
LINK : warning LNK4098: defaultlib 'LIBCD' conflicts with use of other libs; use /NODEFAULTLIB:library
sin_test.dll : fatal error LNK1169: one or more multiply defined symbols found
NMAKE : fatal error U1077: 'link' : return code '0x491'
Stop.
---
Is there anyway I can modify the nidll_vc.tmf to pass this problem?
Thanks
0 Kudos
Message 16 of 17
(3,803 Views)

Hi Shawn,

The Kb linked below gives more information. You may have already seen this but hope it helps!

Can I Use MS Visual C++.NET (7.x) To Build DLLs Using the Real-Time Workshop for NI Real-Time Targets: http://digital.ni.com/public.nsf/websearch/5F3B544A7FB806E886256F6A005D3F5B?OpenDocument

Regards,
Prashanth

0 Kudos
Message 17 of 17
(3,777 Views)