VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Can't compile a Simulink model Model for Veristand 2017 with Matlab 2016b

I've already opened a support request #7731468 but I'm also posting here in case someone else can help since the NI official support channel hasn't produced any results.

 

My setup is as follows:

  • Windows 7 64
  • MATLAB Version 9.1 (R2016b)
  • Simulink Version 8.8 (R2016b)
  • Veristand 2017 Model Framework installed as described here.
  • Windows SDK 7.1 for Windows 7 and .NET Framework 4.0
  • Visual Studio 2010 Professional (not sure if needed)

Based on the compatibility chart here, the above should work.

I created a simple model which anyone can quickly put together:

 

2-14-2018_15-13-42.png

 

So I'm trying to perform a compile of this and I'm getting errors. I've attached the diagnostic viewer log text. When I run the compile using the built-in grt.tlc (generic real-time target) I don't get any errors.

 

Here's a list of installed software on the system, in case it helps:

 

2-14-2018_15-22-35.png

 

 

Any help is appreciated.



Michael Aivaliotis
VI Shots LLC
0 Kudos
Message 1 of 7
(4,485 Views)

You uninstall other version .Net framework...reserve only 4.0.
I had same problem after I installed other version .Net framewrk.

That's a trouble when I need other version .net framework...

 

In addition...
you try select other veristand compiler ex. NIVeriStand_Linux_64.tlc...
(It's easy install more then NIVeriStand.tlc)
If that's success.....your veristand and matlab connect should be no problem...

0 Kudos
Message 2 of 7
(4,454 Views)

One of the problems is when I install the Veristand 2017 Model Framework, it installs .NET 4.6.7

2-14-2018_14-51-20.png

 

 

 



Michael Aivaliotis
VI Shots LLC
0 Kudos
Message 4 of 7
(4,431 Views)

I wish there was a proper order of installation somewhere. That would be helpful. But this is what I think is the proper order of installation:

 

  1. Matlab 2016b
  2. Veristand 2017 Model Framework
  3. Visual Studio 2010
  4. Windows SDK 7.1
  5. Visual Studio 2010 SP1
  6. Visual C++ 2010 SP1 Compiler Update for the Windows SDK 7.1

Is this correct? I think the Model Framework should perhaps be installed last but since it requires .NET 4.6.2, this might break things.



Michael Aivaliotis
VI Shots LLC
0 Kudos
Message 5 of 7
(4,428 Views)

So I think I finally got this working but with some errors still.

The following model compiles without error:2-15-2018_15-18-10.png

However, the following model generates an error:

 

2-15-2018_15-18-55.png

The error section is as follows:

 

LINK : fatal error LNK1181: cannot open input file 'ni_modelframework.obj'

Not sure why. I've attached the full log.



Michael Aivaliotis
VI Shots LLC
0 Kudos
Message 6 of 7
(4,408 Views)

My previous install order..

1.Matlab 2015a
2.Veristand 2016
3..net Framework 4.0
4.Windows SDK 7.1
It's can work (Linux/VxWork),but pharlab is fail...
===============================
5.remove all .net Framework & SDK..(sometime can't remove clean!)
(https://support.microsoft.com/en-us/help/17588/fix-problems-that-block-programs-from-being-installed...)
6..net Framework 4.0
7.Windows SDK 7.1 (Needed remove clear otherwise that can't install)
then pharlab compiler working correct!
===============================
Once accidentally installed other version .NET Framework ....
....the pharlab compiler failed...so redo 5~7...(so tired!)
==================================
8.Installer Microsoft Visual C++ 2010 Service Pack 1 Compiler Update for the Windows SDK 7.1
9.installer .NET Framework 4.6.2
The veristand working correct!

The above process is really troublesome.....
You use veristand 2017 ,I'm not sure if you can work correct...
but I hope to be helpful to you...

I think need report to NI,This issue.....

0 Kudos
Message 7 of 7
(4,401 Views)