12-12-2014 03:13 PM
Hello,
I'm trying to use MIT to convert the following model so that I can use LabVIEW as the UI for it:
I configured everything as usual. However, the problem I get is not getting an error, but generating C-code with dll file. I tried it several times and made sure that Veristand TLC is chosen.
I suspect the block of SimWise4D which links Simulink to their Software. However, I can't comprehend why dll not generated while C-Code is generated successfully.
Here is a sequence of screenshots of my configuration:
Your help is always appreciated.
12-15-2014 02:50 PM
Have you been able to successfully generate a dll on this machine before using this method?
What order was software installed on this machine (MIT and The MathWorks, Inc. Simulink®)?
Also, have you seen this document explaining the configuration options to use:
http://www.ni.com/white-paper/3447/en/
12-15-2014 07:06 PM
Hi Waleed,
It would be very helpful to see the error messages outputed from the MATLAB Command Window; specifically, I am interested in the error messages generated during compilation - as you hinted. If this information is sensitive, then please feel free to contact NI Support and I will eventually get this information.
12-26-2014 01:52 PM
Thank Nestor again for your response,
After testing blocks separately, I got assured that SimWise4D block is the one responsible for not generating the dll file (although no generation errors is created).
I modified the block diagram to be like this:
I compiled the file as stated earlier and have been told that model is compiled successfully (although dll file was not generated). Here is the diagnostic dump with observed error:
C:\PROGRA~1\MATLAB\R2014a\sys\perl\win32\bin\perl C:\PROGRA~1\MATLAB\R2014a\rtw\c\tools\mkvc_lnk.pl SimWiseTest.lnk SimWiseTest.obj NIVeriStand_main.obj SimWiseTest_data.obj rtGetInf.obj rtGetNaN.obj rt_logging.obj rt_matrx.obj rt_nonfinite.obj rt_printf.obj rt_sim.obj SimWiseTest.res swPlant.obj
link /RELEASE /INCREMENTAL:NO /NOLOGO -entry:_DllMainCRTStartup@12 -dll kernel32.lib advapi32.lib wsock32.lib @SimWiseTest.lnk /dll -out:SimWiseTest.dll
LINK : fatal error LNK1181: cannot open input file 'swPlant.obj'
*** Created DLL D:\Veristand Test\SimWiseTest\SimWiseTest_niVeriStand_rtw\SimWiseTest.dll
I don't know if this problem could be tackled. I can attach the file , but as I mentioned, it requires SimWise4D to be installed.
Your help is appreciated.
10-27-2015 05:01 PM
I'm quite depressed that although software like simwise could be useful candidate for having complete closed loop system of mechatronic product, none tried to tackle that problem,