Discussion:
Problem in ni labview interface simulation toolkit
(too old to reply)
Naser1363
2008-07-08 06:40:07 UTC
Permalink
HII use labview7.1,ni labview interface simulation
toolkit v4,matlab R2006a,visual c++6 but I have a error when I use
built in matlab.My file name is "a.mdl"Can you help me?*******************ERROR**************
Microsoft (R) Program Maintenance Utility   Version 6.00.9782.0Copyright (C) Microsoft Corp 1988-1998. All rights reserved.     mkdir C:\SimulationInterfaceToolkit\ModelInterface\\tmw\lib        1 file(s) copied.
        1 file(s) copied.### Compiling the source a   
cl -Ot  -DUSE_RTMODEL -DNI_ROOTMODEL_a -DMODEL=a -DRT -DNUMST=1 
-DTID01EQ=0 -DNCSTATES=0  -DMT=0 -DHAVESTDIO
-DNATIONAL_INSTRUMENTS_SIT   -c -W3 -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl
-nologo -D_X86_=1 -D_WINNT -D_WIN32_WINNT=0x0400 -D_WIN32_IE=0x0300
-DWINVER=0x0400 -DWIN32  -D_WIN32 -D_MT -D_DLL -MD -DRVE a.c
a.cfatal error C1900: Il mismatch between 'P1' version '19991026' and 'P2' version '19970710'NMAKE : fatal error U1077: 'cl' : return code '0x2'Stop. C:\Program Files\MATLAB\R2006a\work\a_nidll_rtw>echo The make command returned an error of 2
The make command returned an error of 2 C:\Program Files\MATLAB\R2006a\work\a_nidll_rtw>An_error_occurred_during_the_call_to_make'An_error_occurred_during_the_call_to_make' is not recognized as an internal or external command,
operable program or batch file.>> Message Edited by Naser1363 on 07-08-2008 01:30 AMMessage Edited by Naser1363 on 07-08-2008 01:31 AMMessage Edited by Naser1363 on 07-08-2008 01:32 AM
FieldKam
2008-08-06 02:10:06 UTC
Permalink
Hello Naser, - Could you describe at exactly which stage of the process you encounter this error?
- Although you are probably not at the stage where you are using your model in LabVIEW yet, the SIT 4.0 ReadMe states that you will need LabVIEW 8.5 in order to successfully import your model.
- Also, how exactly does Visual C++ come into play?&nbsp; The "fatal error C1900" portion of the message seems to indicate that differently dated compilers seem to be intermingling on your system.&nbsp; MSDN has some additional information about the <a href="http://msdn.microsoft.com/en-us/library/ks07be9f%28VS.71%29.aspx" target="_blank">C1900</a> and <a href="http://msdn.microsoft.com/en-us/library/dt309377%28vs.71%29.aspx" target="_blank">U1077</a> fatal errors
Have a great day!
Naser1363
2008-08-06 05:40:04 UTC
Permalink
Hello&nbsp; Dear FieldKamI use visual c++ 6.I don't use two compiler for my project.However you say "he "fatal error C1900" portion of the message
seems to indicate that differently dated compilers seem to be
intermingling on your system".
FieldKam
2008-08-06 21:10:05 UTC
Permalink
Hello Naser, As I mentioned, I will need to know some more details as to the process you are following, and the step at which you obtain this error.&nbsp; I do not have enough details about the situation to answer your last question.&nbsp; Which program are you using when you see this error?&nbsp; Are you using Visual C++ or SIT?&nbsp; What stage of the process are you using it for?Does this error happen when you are building your model, or does it happen when you are calling a DLL that you already created?I also included links to MSDN which some additional information about the <a href="http://msdn.microsoft.com/en-us/library/ks07be9f%28VS.71%29.aspx" target="_blank">C1900</a> and <a href="http://msdn.microsoft.com/en-us/library/dt309377%28vs.71%29.aspx" target="_blank">U1077</a> fatal errors.&nbsp; Please check there for details on what the errors indicate.
Naser1363
2008-08-07 10:10:10 UTC
Permalink
Hello&nbsp;
Dear FieldKam

I use labview7.1,ni
labview interface simulation toolkit v4,matlab R2006a,visual c++6.I creat a
simulink file in matlab(a.mdl).I write &nbsp;mbuild
-setup in &nbsp;Command Window &nbsp;of matlab then I install SIT 4 and visual c++6
then I set configuration parameter&gt;Real-Time workshop&gt;system target
files&gt;nidll.tlc in simulink .In
simulink in Tools &gt; Real-Time workshop&gt;Build Model I click Build Model.Then
in matlab Command Window this error appear. Simulation Interface VIs don?t create
<a href="lvsimtkconcepts.chm::/SIT_C_Components_of_a_Simulation.html" target="_blank"> host VIs</a>
and <a href="lvsimtkconcepts.chm::/SIT_C_Components_of_a_Simulation.html" target="_blank"> driver VIs</a>
in LabVIEW. I hope these details I send for you satisfy your questions
Angela M
2008-08-12 00:10:05 UTC
Permalink
Hello Naser1363,
I know this post is a little belated, if you have resolved your issue it would be great if you can post back on how for the benefit of others.
&nbsp;
For your issue, are you able to compile the example sine wave.mdl that comes with SIT successfully?&nbsp; I am not sure how complex your model is, but I want to make sure this is not model specific.
&nbsp;
Also, it may be a good idea to run mex -setup to make sure you have the correct compiler specified as described in the help topic <a href="http://zone.ni.com/reference/en-XX/help/371504C-01/lvsimtkhowtoconcepts/simulink-sit_h_convert_model_to_dll/" target="_blank">Converting a Model into a Model DLL</a>.&nbsp; Have you enabled any optimizations for the build?
&nbsp;
Your last post indicates that you installed your compiler after installing SIT, is this correct?
&nbsp;
Regards,
Angela M
Product Support Engineer
Naser1363
2008-08-12 04:10:06 UTC
Permalink
Hello No I install visual c++6 then SIT.I installed SIT but labview dosen't have any change!
Angela M
2008-08-12 14:40:23 UTC
Permalink
Hello Nasir1363,That is my fault, I should have noticed this from your previous post.&nbsp; As FieldKam mentioned LabVIEW 8.5 is a requirement for SIT 4.0, so if LabVIEW 8.5 is not present on your system you will not get a complete install of SIT 4.0.&nbsp; This is why you are not seeing a change to LabVIEW and also why you would not have the sinewave.mdl to test out your installation since that is a component installed under the LabVIEW directory.
&nbsp;
You should still have all components for code generation though, and it would be good to have a test model to ensure this is not a model specific error.&nbsp; If your a.mdl is simple and not proprietary, you could post to this forum and someone can try code generation to verify that the model is OK.
&nbsp;
Do you have access to LabVIEW 8.5?&nbsp; It may be a good idea to talk with your sales representative to make sure that you have compatible NI software, you can get in touch with them by selecting Contact NI at the top of this page.
&nbsp;
Regards,
Angela M
Naser1363
2008-08-12 15:40:22 UTC
Permalink
Hello Dear Angela I use SIT3 instead of SIT4 with labview 7.1.And I check sinewave.mdl but it's not correct.I saied labview dosent have change afert I install SIT3.Example when I instal IMAQ for labview,a toolkit add to labview 7 but when I instal SIT3 for labview,a toolkit dosen't add to labview 7.RegardsNaser
Angela M
2008-08-12 19:40:06 UTC
Permalink
Hello Nasir1363,
Thank you for the update.&nbsp; Are you using SIT 3.0, 3.0.1, 3.0.2 or 3.0.3?
&nbsp;
If you have successfully installed SIT, you will see a model interface function palette and a user interface function palette.&nbsp; SIT will also appear in the Software tree in Measurement and Automation Explorer (MAX).&nbsp; If you have run the installer multiple times, the second run will uninstall software, so pay close attention to what the installer prompts say they will do.
&nbsp;
When you say




Naser1363 wrote:And I check sinewave.mdl but it's not correct.


What do you mean it's not correct?&nbsp; Can you not run the model?&nbsp; Can you not build the model?&nbsp; What errors do you see?
Regards,
Angela M

Loading...