08-24-2023 02:31 PM - edited 08-24-2023 02:38 PM
Is there a version of the libraries that work with .Net Core? The dlls and example code are all in .NetFramework. I tried to add them (Ivi.Visa.dll and NationalInstruments.Visa.dll) as assemblies in my .NET Core project and the ResourceManager class works fine for finding resources. Once I try to get a MessageBasedSession though, I get an System.IO.FileNotFoundException - Could not load file or assembly NationalInsturments.Common, Version=13.5.40.173 Culture=neutral The system cannot find the file specified
08-25-2023 07:35 AM
You may want to look here:
https://forums.ni.com/t5/Measurement-Studio-for-NET/Ni-DAQmx-NET6-Support/m-p/4298564#M21998
It's basically a .Net Interop library for the C DLL of NI VISA (which I suppose is the VISA .Net Framework also, but precompiled as .Net Framework library so not compatible with .Net Core).
08-25-2023 01:18 PM
Will give this a look. Thank you!
08-31-2023 08:21 PM
I ended up converting the project to .Net Framework.
12-13-2023 12:34 PM
Hi, did you trying the latest NI-VISA 2023 - Q4 to see if this fixed the issue?
We are desperate to move to .NET 6 or probably 8 now
12-13-2023 12:57 PM
I had to redirect my focus to other projects for the past few months. I will be picking this project back up in January more than likely. I will grab the latest version of NI-VISA and and post my findings here. My life would have been much easier if I could have used .Net Core over Framework for sure, so I feel your pain.