01-31-2020 01:30 AM
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:
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.
01-31-2020 02:00 PM
02-02-2020 09:49 PM
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.
02-03-2020 10:32 AM
I would try:
Uninstall NIDCPower.
Install VISA 19.5
Install NIDCPower
02-04-2020 03:32 AM
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.
02-04-2020 10:02 AM
I have Windows 10 v1909 64-bit.
The only VISA DLL is in Sys64WOW
02-04-2020 10:01 PM
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