Solution
Only one 32-bit VISA implementation can be configured as primary on a system at a given time. This primary VISA acts as the core VISA library of the system. In the case described above, NI-VISA was initially installed as primary and then changed to secondary when the second VISA implementation was installed. To resolve this issue, follow the steps below.
Verify Which VISA Implementation Is Primary
First, verify that NI-VISA is not currently installed as primary on your system by following these steps:
- Navigate to the appropriate directory below based on the bitness of your OS and locate visa32.dll:
- 32-bit systems: C:\WINDOWS\system32
- 64-bit systems: C:\WINDOWS\sysWOW64
- Right-click on visa32.dll and select Properties.
- Find the copyright information:
- On Windows Vista/7/8/10: Navigate to the Details tab:
- On Windows XP: Navigate to the Version tab:
If the copyright information states National Instruments, then NI-VISA is set to be the primary VISA on your system. If another company is stated, then follow the steps below to make NI-VISA primary.
Set NI-VISA as Primary
If NI-VISA is not the primary implementation, you can reset it to be primary through MAX or repairing the NI-VISA driver.
Option 1: Set VISA as preferred in MAX
- In MAX, expand the Software tab and navigate to your version of NI VISA.
- Select the VISA Options tab at the bottom of the window and then Conflict Manager. Under Preferred VISA, select National Instruments VISA.
Option 2: Repair NI-VISA
-
Navigate to the appropriate directory below based on the bitness of your OS and locate visa32.dll:
- 32-bit systems: C:\WINDOWS\system32
- 64-bit systems: C:\WINDOWS\sysWOW64
- Rename visa32.dll to an alternate name, such as visa32.dll.bak.
Note: The reason why you must rename visa32.dll is because repairing the NI-VISA installation will not automatically overwrite this file. The file will only be overwritten in the event that a newer version of visa32.dll is attempting to be installed, which is not the case when repairing previously installed software.
- Repair the NI-VISA driver.
- Reboot your computer.
Note: If NI-VISA is already set as the primary VISA and a 3rd party installation introduces problems, contact the 3rd party vendor to understand how their software interacts with NI-VISA.