VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Veristand and Matlab

Solved!
Go to solution

Hello,

-at starting of MATLAB 2020b , message warns " VeriStand Linux64 toolchain not found "
-I have Windows 10 21H2 x64bits

how do i configure the toolchain?

Please look at the attachment.

 

Regards.

0 Kudos
Message 1 of 10
(495 Views)

I found that if you installed Matlab after VeriStand the model generator will not hook up right.  You can reinstall the VeriStand model generator again and it will then hook into Simulink. Otherwise you should have a 'm' file NIVeriStandAddPaths.m at C:

VeriStand.  You can run this inside of Simulink and then try to build.

0 Kudos
Message 2 of 10
(489 Views)
Solution
Accepted by topic author marc.cescutti

Have you installed the C/C++ development tools: https://www.ni.com/en-us/support/downloads/software-products/download.c-c---development-tools.html#3... Those are required for cross-compiling models for NI Linux RT: https://www.ni.com/docs/en-US/bundle/veristand/page/use-model-framework.html. That would be one reason why the Linux64 toolchain specifically is not initializing, since it appears that the Model Framework is initializing properly. 

 

As a FYI, as of VeriStand 2021, NI offers a new toolbox for Simulink model generation. This toolbox more closely follows MathWorks best practices as part of NI & MathWorks' collaboration. This would be a separate toolbox from the VeriStand Model Framework for integrating models (you will use only one). The main limitation in the new toolbox at this time is the inability to expose signals for debugging purposes, but we hope to address this in a release later this year. Benefits of the new toolbox include improved toolkit support (i.e. Simscape), install/documentation experience, and overall improvements around compilation stability for common model hierarchies. 

Brian.D
NI Product Owner
VeriStand
Message 3 of 10
(465 Views)

hi joshe,

 

I have been on holiday since July 19 in the evening of 2022. I am writing to you from my home and not from the office.

 

I can't do any manipulations at the moment.

 

 I installed Matlab before Veristand, I'm sure.

 

1) However I do not understand, it is necessary to modify the file "NIVeriStandAddPaths.m"?

2) Should reinstall veristand before editing this file if it doesn't work?

 

Thank you for your reply.

0 Kudos
Message 4 of 10
(417 Views)

Hello Brian.D

 

Thank you for your detailed response.

 

I am currently on vacation, I will return to the office from August 18th.

To answer you, it seems to me that I did not choose this module when installing Labview 2021 Spring

 

To find out, if this "C++" module is installed, can I see the NI package tool?

 

I will try to connect remotely to get screenshots.

 

Thank you for your support

0 Kudos
Message 5 of 10
(416 Views)

Hi all,

 

I was able to connect remotely, I used NI Max to see if the C/C++ module is installed. I don't know if it's the right tool.
Below are the screenshots.

 

marccescutti_0-1659628743870.png

marccescutti_1-1659628827236.png

 

 

I also found the file  in C:VeriStand. "NIVeriStandAddPaths.m" , I don't know what to change.

I put it as an attachment.

 

Tell me if I can do anything else.... Thanks for our support.

 

Regards

Marc

0 Kudos
Message 6 of 10
(410 Views)

Hi Marc,

 

You can check on the installation in NI Package Manager as shown below. The C/C++ dev tools needed to enable compiling for NI Linux RT should display there, you will need to uncheck the "Products only" checkbox for it to display.

 

nipm_eclipse.png

 

I verified that not having those tools installed is one reason why you would receive your error. The rest of the Model Framework is initializing properly, it is specifically the Linux64 toolchain that is failing.

Brian.D
NI Product Owner
VeriStand
0 Kudos
Message 7 of 10
(406 Views)

Hi brian,

 

I'm back at work, Thank you for your reply. I have a few more questions.

 

I didn't find the tool "c/c++ development tools" with NI Package Manager the tool , as shown below , I can to find and install it with NI Package Manager ?

marccescutti_0-1660816696106.png

 

else I was able to find this , as shown below, is this the right sofware tool?

 

C/C++ Development Tools Download - NI

 

marccescutti_1-1660816738547.png

 

Thanks for our support.

Marc

0 Kudos
Message 8 of 10
(384 Views)

hi Brian

 

...I've just installed C/C++ Development Tools Download - NI

 

and now ,I don't know how to test quickly... Thank you for your help

 

 

Matlab-2.PNG

0 Kudos
Message 9 of 10
(377 Views)

Hi Marc,

 

It looks like everything initializes properly now, so you should be able to proceed with compiling a model. Since you are using VeriStand Model Framework, you can refer to this portion of the manual https://www.ni.com/docs/en-US/bundle/veristand/page/use-model-framework.html

 

As a reminder, as of VeriStand 2021, NI offers a new toolbox as well for compiling models https://www.mathworks.com/matlabcentral/fileexchange/106420-veristand-model-generation-support. This toolbox more closely follows best practices, and the documentation is packaged within the toolbox. This toolbox will produce a .vsmodel, which can then be imported into VeriStand via the Mapping Diagram. 

Brian.D
NI Product Owner
VeriStand
0 Kudos
Message 10 of 10
(355 Views)