05-03-2019 12:58 PM
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
05-06-2019 03:15 AM
05-06-2019 04:45 AM
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.
05-06-2019 06:21 AM
05-07-2019 04:08 AM
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?
05-08-2019 01:49 AM
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.
05-15-2019 09:43 AM - edited 05-15-2019 09:56 AM
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!
05-17-2019 07:34 AM - edited 05-17-2019 07:34 AM
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?