VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems compiling a Simulink Model with NI Veristand 2018

Hi, 

 

I was trying to compile a super simple model that I built in Simulink 2018 (see fig. attached) with Veristand 2018 but it did not work. I checked the compatibility and they seem compatible according to the following link: http://www.ni.com/product-documentation/54028/en/

 

This is the error that appears in the Diagnostic Viewer in the Simulink:

 

Error: File: C:\VeriStand\2018\ModelInterface\tmw\codegen\NIVeriStand_codegen.tlc Line: 293 Column: 56 Undefined identifier getValueText​

 

 

0 Kudos
Message 1 of 8
(5,324 Views)

Hi mgon,

 

I am sorry, but I believe you misread the compatibility chart:

chrome_2019-05-06_10-14-36.png

 

In other words: Simulink 2018 is not supported.


Ingo – LabVIEW 2013, 2014, 2015, 2016, 2017, 2018, NXG 2.0, 2.1, 3.0
CLADMSD
Message 2 of 8
(5,290 Views)

Hi ikaiser, 

Thanks for your clarification! I wrongly thought that the ultimate version of Veristand (2018 SP1) was the one that is offered for a free trial but apparently the one I downloaded is version 2018. Therefore, I would install 2018 SP1 and try the compilation again with my model from Simulink 2018.

 

 

0 Kudos
Message 3 of 8
(5,286 Views)

Hey mgon,

Unfortunately the same is valid for VeriStand 2018 SP1 (see my screenshot above): The latest version of Simulink supported is R2017a.


Ingo – LabVIEW 2013, 2014, 2015, 2016, 2017, 2018, NXG 2.0, 2.1, 3.0
CLADMSD
0 Kudos
Message 4 of 8
(5,283 Views)

Hi ikaiser, 

Fortunately, I had also the 2017a version of Matlba/Simulink installed so I created the same model and change the Model Configuration Parameters according to config.png (attached). However, there is still a compiling error according to the figure error.png.

Do you know now which could be the reason?

 

Download All
0 Kudos
Message 5 of 8
(5,273 Views)

It looks to me like this is a Simulink error. Seems like your project is located in c:\program files\[...]\slprj\[...]. The error message "Access is denied" makes sense, as on current Windows versions, you normally need root permissions to fully access folders in c:\program files. Could you try moving your project to a folder any program should have access to, e.g. your desktop or c:\users\[your username]\[...]?

 

I don't have Simulink installed on this PC, so I cannot verify.


Ingo – LabVIEW 2013, 2014, 2015, 2016, 2017, 2018, NXG 2.0, 2.1, 3.0
CLADMSD
0 Kudos
Message 6 of 8
(5,267 Views)

Hi ikaiser,

 

Thanks for your answer. I changed the directory and now the following error message appeared:

 

VeriStand: An error occurred setting the make-file command options.
VeriStand: Cannot locate a supported installation of the Microsoft Visual Studio C++ tool chain. Visit www.ni.com/info and enter the Info Code ex3efp for a list of supported compiler configurations.

 

So, I went to the NI page with the code and they requested to download Microsoft Windows SDK for Windows 7 and .NET Framework 4. When I downloaded and tried to install it, the "error 1" (image attached) popped up. So, in order to solve it, I tried installing directly .NET Framework 4 as mentioned in the message. However, when I run the setup another error appeared "error 2". So, apparently I am right now in a vicious circle and with so few information available to solve it.

 

If you have any idea, I would appreciate it. Thanks!

Download All
0 Kudos
Message 7 of 8
(5,246 Views)

Hello mgon,

I wonder what is missing. Which software versions are you exactly using? Windows OS, Visual Studio(?), Visual C++(?), .NET, Windows SDK?

 

I don't remember having the error messages you posted, however I found a thread having a similar question (which was solved): Simulink compilation error: missing Microsoft Visual Studio C++ tool chain

 

Does this work for you?


Ingo – LabVIEW 2013, 2014, 2015, 2016, 2017, 2018, NXG 2.0, 2.1, 3.0
CLADMSD
0 Kudos
Message 8 of 8
(5,235 Views)