Where is the "visa.h" Header File to Include in a C++ Program?

Updated Apr 21, 2023

Reported In

Software

  • LabVIEW Full

Driver

  • NI-VISA

Programming Language

  • C++

Issue Details

I am writing a C++ program that uses VISA to control an instrument, and the NI-VISA documentation indicates that I need to include a visa.h header file in my program. Where can I find this file?

Solution

The visa.h header file (and other files that you might need to include) can be found at either of the following two paths for 64-bit Windows:
  • C:\Program Files (x86)\IVI Foundation\VISA\WinNT\include

  • C:\Program Files\IVI Foundation\VISA\Win64\include


For 32-bit Windows, the path will be:

  • C:\Program Files\IVI Foundation\VISA\WinNT\include


Note that the WinNT in the above paths will still be WinNT for all Windows versions.