Header File Not Found When Compiling LabWindows/CVI Project

Updated Aug 8, 2023

Reported In

Software

  • LabWindows/CVI

Issue Details

  • I recently upgraded my LabWindows™/CVI development environment and when compiling a project I get a compiler error indicating that the rtutil.h cannot be found. Looking at my previous LabWindows/CVI installation, I can see that this file is in the "include" folder, but not in the newer LabWindows/CVI installation. How can I fix this issue?
  • When compiling my LabWindows/CVI code, I receive the below error. What is missing on my PC?
MPC_BT_MTFPanel.c :8:10: fatal error: 'ImageControl.h' file not found

Solution

This error occurs because LabWindows/CVI is unable to locate the required Header files. Follow the relevant section below to resolve this.
 

Missing rtutil.h File

The rtutil.h Header file is installed with the LabWindows/CVI Real-Time Module. This issue can be fixed by ensuring that a compatible version of the Real-Time Module is installed. 

Note: there is no Real-Time Module for LabWindows/CVI 2020 since the latest version of the module is for LabWindows/CVI 2019. If you determine that you need to use the Real-Time Module in your application, downgrade to a previous version of LabWindows/CVI.

 

Missing ImageControl.h File

The ImageControl.h Header file is installed with the Vision Acquisition Software. This error can be fixed by installing a compatible version of the software on your host PC.
To check compatibility, refer to NI Hardware and Software Operating System Compatibility and NI Vision Development Module and Vision Acquisition Software 64-bit Programming Language Support. ​​