Solution
The Model Interface Toolkit functions that are used to load and run models rely on dependencies that are not included by default when a standalone application is built. Copy the following two files into the data directory of the recently built application.
- C:\Program Files (x86)\National Instruments\[your LabVIEW version]\vi.lib\Model Interface Toolkit\Data\lvmodel
- C:\Program Files (x86)\National Instruments\[your LabVIEW version]\vi.lib\Model Interface Toolkit\Data\NIVeriStand_LVModel.dll
The data directory of your standalone application should now look like this:
Please note that the NIVeriStand_MdlWrap.dll file should already be present in the data directory because the Application Builder automatically adds it as a dependency.
You should now be able to run your application, and the model can be loaded without error.
In some cases, the standalone executable may fail at runtime due to the inability to load NIVeriStand_MdlWrap.dll.
Although this DLL is automatically included in the Data directory during the build process, the executable may still expect the DLL to be:
- Present in the project directory
- Explicitly included in the build specification
Workaround:
- Copy NIVeriStand_MdlWrap.dll from:
...\vi.lib\Model Interface Toolkit\Data into the project directory. - Add the DLL to the LabVIEW project (or use the copied instance).
- In the build specification → Source Files, mark the DLL as Always Included.
- Rebuild the executable.
Notes:
- The build process may generate duplicate output folders (data and data0) due to a naming collision warning.
- The executable correctly loads the DLL from the data folder.
- The data0 folder can be safely removed after the build as a cleanup step.
This behavior suggests a limitation or defect in how the Model Interface Toolkit handles DLL dependencies during the build process.