LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in ni labview interface simulation toolkit

HI

I 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.0
Copyright (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.c
fatal 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 AM

Message Edited by Naser1363 on 07-08-2008 01:31 AM

Message Edited by Naser1363 on 07-08-2008 01:32 AM
0 Kudos
Message 1 of 10
(3,720 Views)
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?  The "fatal error C1900" portion of the message seems to indicate that differently dated compilers seem to be intermingling on your system.  MSDN has some additional information about the C1900 and U1077 fatal errors
Have a great day!
Kameralina

Message 2 of 10
(3,624 Views)
Hello  Dear FieldKam

I 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".

0 Kudos
Message 3 of 10
(3,615 Views)
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.  I do not have enough details about the situation to answer your last question. 

Which program are you using when you see this error?  Are you using Visual C++ or SIT?  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 C1900 and U1077 fatal errors.  Please check there for details on what the errors indicate.
Kameralina

0 Kudos
Message 4 of 10
(3,595 Views)

Hello  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  mbuild -setup in  Command Window  of matlab then I install SIT 4 and visual c++6 then I set configuration parameter>Real-Time workshop>system target files>nidll.tlc in simulink .In simulink in Tools > Real-Time workshop>Build Model I click Build Model.Then in matlab Command Window this error appear. Simulation Interface VIs don’t create host VIs and driver VIs in LabVIEW.

I hope these details I send for you satisfy your questions




0 Kudos
Message 5 of 10
(3,585 Views)
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.
 
For your issue, are you able to compile the example sine wave.mdl that comes with SIT successfully?  I am not sure how complex your model is, but I want to make sure this is not model specific.
 
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 Converting a Model into a Model DLL.  Have you enabled any optimizations for the build?
 
Your last post indicates that you installed your compiler after installing SIT, is this correct?
 
Regards,
Angela M
Product Support Engineer
0 Kudos
Message 6 of 10
(3,543 Views)
Hello

No I install visual c++6 then SIT.
I installed SIT but labview dosen't have any change!
0 Kudos
Message 7 of 10
(3,531 Views)
Hello Nasir1363,
That is my fault, I should have noticed this from your previous post.  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.  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.
 
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.  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.
 
Do you have access to LabVIEW 8.5?  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.
 
Regards,
Angela M
0 Kudos
Message 8 of 10
(3,512 Views)
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.

Regards

Naser

0 Kudos
Message 9 of 10
(3,507 Views)
Hello Nasir1363,
Thank you for the update.  Are you using SIT 3.0, 3.0.1, 3.0.2 or 3.0.3?
 
If you have successfully installed SIT, you will see a model interface function palette and a user interface function palette.  SIT will also appear in the Software tree in Measurement and Automation Explorer (MAX).  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.
 
When you say


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

What do you mean it's not correct?  Can you not run the model?  Can you not build the model?  What errors do you see?
Regards,
Angela M
0 Kudos
Message 10 of 10
(3,487 Views)