Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

NIVisaNS issue after NIDCPower installation

Hello all,

I am working on a code (VB.Net) using NIDCPower library.

I have installed NIDCpower package using ni-dcpower_19.5_online_repack.exe.

NIDCPower needs 19.0.40.49152 version of NationalInstruments.Common.dll.

I have referenced this version in my project.

Prior to using NIDCPower, I was using NationalInstruments.Common.dll v8.7.35.131.

Also, my solution has reference to NationalInstruments.VisaNS.dll v8.9.35.108.

 

I am facing a problem during compilation as follows:

Case 1: When I reference NationalInstruments.Common.dll v19.0.40.49152, the code throws compilation errors – “Reference required to assembly 'NationalInstruments.Common, Version=8.7.35.131, Culture=neutral, PublicKeyToken=18cbae0f9955702a' containing the implemented interface 'NationalInstruments.ISynchronizeCallbacks.

 

Case 2:  When I reference NationalInstruments.Common.dll v8.7.35.131, the code throws compilation errors – “Reference required to assembly 'NationalInstruments.Common, Version=15.0.40.49154, Culture=neutral, PublicKeyToken=dc6ad606294fc298' containing the implemented interface 'NationalInstruments.ISynchronizeCallbacks.”

 

I guess the reason for this error is incompatibility of NationalInstruments.VisaNS.dll with NationalInstruments.Common.dll.


I ran ni-visa_19.5_online_repack.exe and ni-488.2_19.5_online_repack.exe, thinking this will install NationalInstruments.VisaNS v19.x.x.x version.

After installing, I found that I have 2 versions of NationalInstruments.VisaNS.dll on my system at C:\Windows\assembly\GAC_MSIL\NationalInstruments.VisaNS\.

The versions are:

  1. 8.9.35.108 – located at C:\Windows\assembly\GAC_MSIL\NationalInstruments.VisaNS\8.9.35.108__18cbae0f9955702a
  2. 13.0.35.167 – located at C:\Windows\assembly\GAC_MSIL\NationalInstruments.VisaNS\13.0.35.167__18cbae0f9955702a

I am not able to find the version 19.x.x.x on my system.

 

Would someone help me with installing/finding NationalInstruments.VisaNS.dll v19.x.x.x?

 

Thanks.

0 Kudos
Message 1 of 7
(2,417 Views)

I have already tried it (mentioned in the post "I ran ni-visa_19.5_online_repack.exe..."). I couldn't find NationalInstruments.VisaNS.dll v19.x.x.x.x on my system.

0 Kudos
Message 3 of 7
(2,197 Views)

I would try:

Uninstall NIDCPower.

Install VISA 19.5

Install NIDCPower

0 Kudos
Message 4 of 7
(2,152 Views)

I tried it.

1. Uninstalled NI-DCPower

2. Uninstalled VISA 19.5

3. Installed VISA19.5

4. Installed NI-DCPower

 

Still not able to find NationalInstruments.VisaNS.dll v19.x.x.x.

I can find versions 8.9.35.108 and 13.0.35.167.

0 Kudos
Message 5 of 7
(2,131 Views)

I have Windows 10 v1909 64-bit.

The only VISA DLL is in Sys64WOW

0 Kudos
Message 6 of 7
(2,117 Views)

I have Windows 7 Enterprise (SP1), 64-bit.

BTW, I am talking about NationalInstruments.VisaNS.dll and *not* NationalInstruments.Visa.dll.

I can find NationalInstruments.Visa.dll v4.0_19.0.0.49152 at C:\Windows\Microsoft.NET\assembly\GAC_MSIL\NationalInstruments.Visa\v4.0_19.0.0.49152__2eaa5af0834e221d

0 Kudos
Message 7 of 7
(2,110 Views)