LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Simulink will but build a DLL (for use with Veristand / Model Toolkit)

Hello all. I have followed NI's instructions carefully and cannot get Simulink to build a DLL. I can generate code, and get all the .h files and .c files, but I cannot get the .dll made. I keep getting the error below. I have tried re-installing, repairing .NET Framework 4.5 issues, looked at Path variables, etc. Has anyone had this and solved it?

 

The call to NIVeriStand_make_rtw_hook, during the exit hook generated the following error: VeriStand: The build procedure failed to compile the model: simple. This might be the result of a failed linking or compile operation of the binary file. For more information, refer to the error message generated in the MATLAB Command Window. If MATLAB reports error LNK1123, make sure to apply all service packs and updates for your version of Microsoft Visual Studio or Windows SDK. For more information about this error, refer to Microsoft article KB2757355. The build process will terminate as a result.
 

 

Caused by: VeriStand: The build procedure failed to compile the model: simple. This might be the result of a failed linking or compile operation of the binary file. For more information, refer to the error message generated in the MATLAB Command Window. If MATLAB reports error LNK1123, make sure to apply all service packs and updates for your version of Microsoft Visual Studio or Windows SDK. For more information about this error, refer to Microsoft article KB2757355.
 

 

My setup is LabVIEW 2021 with Model Interface Toolkit, MatLab 2022a, Veristand 2021 R2, etc.

 

 
 
0 Kudos
Message 1 of 4
(1,531 Views)

Is your end goal to integrate with VeriStand or LabVIEW MIT? I ask because there are two different toolchains now to compile models.

  • Our Model Framework toolchain has been around for many versions, and you can reference compatibility here: https://www.ni.com/en-us/support/documentation/compatibility/22/veristand-labview-modeling-and-legac.... Looking at your software setup, I would have two concerns: compatibility with MATLAB, and if you have Microsoft Visual Studio 2017 installed (no license needed). This will work with VeriStand and LabVIEW MIT. Based on your error message, this is the toolchain you are using.
  • Our newer toolchain is supported as of VeriStand 2021 (no LabVIEW MIT support), and you can reference compatibility here. If you are using VeriStand and not LabVIEW MIT, I would recommend using this new toolbox as it more closely aligns with best practices. Setup is slightly different, but is ultimately easier and this toolbox supports the most recent versions of MATLAB/Simulink.
Brian.D
NI Product Owner
VeriStand
0 Kudos
Message 2 of 4
(1,492 Views)

I have Visual Studio 2022 installed. MATLAB is linked to the Microsoft Visual C++ 2022 compiler. 

 

To be specific, my toolchain is:

MATLAB 2022a, Visual Studio 2022, LabVIEW 2021 with MIT, and Veristand 2021 with MIT. 

 

My goal is to build a DLL with Simulink that can be used by the LabVIEW MIT. Could it be that MATLAB 2022a is too new and I need 2020a?

0 Kudos
Message 3 of 4
(1,484 Views)

Can someone edit my post Subject? Replace "but" with "not".

 

The current thinking at this point is that my instance of MATLAB 2022a is NOT compatible with the Veristand Model Framework Toolkit. You have to use 2020a or older.

0 Kudos
Message 4 of 4
(1,455 Views)