Solution
First, verify the following items:
1. Check the Version Compatibility of VeriStand and the The MathWorks, Inc. Software using the following document:
VeriStand Modeling Version Compatibility2. Check that the the NI Real-Time target and The MathWorks, Inc. MATLAB® Software have been configured correctly by following the operating system-specific steps:
3. Verify that the VeriStand Model Framework has been installed on your computer. If the framework has been installed on your computer, it should be located at
C:\VeriStand\<version>.
If the VeriStand Model Framework files are missing, you will need to install them. To install the VeriStand Model Framework, please reference
Compiling DLLs for Use with VeriStand Without Development License.
If you have recently just updated The Mathworks, Inc. Simulink® Software,
uninstall and reinstall VeriStand Model Framework. Only repairing the installation will not work.
4. Verify the correct compiler and the correct solver options and
.tlc file have been selected in MATLAB® and Real-Time Workshop®/Simulink Coder® respectively. Steps 3 and 4 of the following help article discuss these settings:
Compiling a Model from The MathWorks, Inc. Simulink® Software5. If you are building models for Phar Lap or Windows targets and you are using NI VeriStand 2015 SP1 or newer, a patch may be required for the Windows 7.1 SDK. See
VeriStand Models Fail to Compile with LNK 1123 Error for details.
6. If you are having difficulties installing the Windows SDK 7.1 on a Windows 8.1 or Windows 10 machine, please reference
Problem Installing the Windows SDK 7.1 for VeriStand Model Compilation.
7. If you are using Bus Arrays, make sure that these are defined in your workspace.
If the standard steps above do not resolve the issue, please try the following troubleshooting steps:
- If a simple test model compiles successfully, remove sections of the large (failing) model to isolate the problem.
- Run MATLAB® as administrator and attempt to compile the model.
- If the model is on a network drive, move the model to a drive that has both the VeriStand Model Framework and the correct compiler installed on your local machine.
- Try compiling the model with grt.tlc selected in the Real-Time Workshop®/Simulink Coder®. If that compilation fails, try changing the compiler back to the built-in MATLAB® compilier- as the problem may be with the installed compiler. If using different .tlc files and different compilers does not result in a success compilation, the problem is likely with the model.
- Investigate the build files directory. If [modelname]_vc.bat was created, run the .bat file from the command prompt. If a .dll, .so, or .out file was created, test the model with known input and output values.
If none of the above troubleshooting steps resolve the issue, please
contact NI or further technical support . Before contacting support, please secure a copy of the build log (available via the Command Window and saved in the build directory).