Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

ni-daqmx example project not working with Visual studio 2019.

I think there is only one way to downgrade NI-DAQmx, and that is to uninstall it and install the version you need. Check the third sentence under "Solution" here. You'll likely have to go to the NI Package Manager to uninstall all the entries that start with NI-DAQmx. If you select category "Drivers" in the package manager it will simplify finding those entries. I would screenshot them before removing them to make sure you reinstall the packages you need in version 20.7. Then you can select and download NI-DAQmx V20.7 here by selecting that version. Run that downloaded installer. After reinstalling, go back to NI Package Manager to verify that all the NI-DAQmx packages you need are installed. If not, you should be able to install them using the package manager.

0 Kudos
Message 11 of 17
(3,358 Views)

Yes, the project was OK after the ver. 21.00 removal and a new 20.70 installation.

 

But in my case the NI Installation Builder project did not work anymore. It was complaining, that some installers are missing. Then I removed all NI SW including Measurement Studio and all files from “C:\ProgramData\National Instruments” folder and installed all pieces back. Now everything is OK..Uh huh.. 😉

0 Kudos
Message 12 of 17
(3,353 Views)

To roll back nidaqmx I used package manager and wen to drivers. I did a search for Ni-Daq and got the NI-DAQmx button and clicked on it.  The latest version available to install shows in the version drop down.  I changed this to 20.7 and hit install and it rolled everything back for me.

 

Anyone try 21.3 yet?

Grant M. Johnson
Project Engineer
LECO Corporation
0 Kudos
Message 13 of 17
(3,292 Views)

Hi Grant and the ".NET team",

 

21.3 is OK. I tested it quickly. Can build and run a DAQmx based project and deploy the application into another computer.

 

BR,

Ilkka

Message 14 of 17
(3,278 Views)

I had same loaderlock error with daqmx 21.0 and meaqsurement studio and solved it by upgrading 21.3.

 

I couldn't downgrade daqmx because I use latest version of labview (2021)

 

0 Kudos
Message 15 of 17
(3,153 Views)

I was getting the LoaderLock issue in C# with Visual Studio 2022 and DAQmx 21.3.  On a freshly built computer, I installed LabVIEW 2021 (with DAQmx, VISA, etc.) first, then Visual Studio and the LoaderLock problem happened.  The NI examples wouldn't even work.  I teach at a university and I noticed that none of my students were having the LoaderLock issue with DAQmx 21.3.  My computer was having issues booting up, which turned out to be an unsupported graphics card with the newer version of Windows 10, so the IT person ended up rebuilding my computer again in the process of trying to figure out the issue.  I thought about installing DAQmx 20.7 with Visual Studio, but since my students weren't having issues I went ahead and installed version 21.3.  This time I installed Visual Studio 2022, then DAQmx 21.3 before installing LabVIEW and everything worked great.  I thought I'd share this in case it helps someone else.  

0 Kudos
Message 16 of 17
(3,128 Views)

Same to me. My PC had to be completely new installed. After I have installed all the software needed and executed my C# Software, i got exactly this message described here.

 

Solution: DAQmx 21.0 --> DAQmx 21.3

Description: After the upgrade to "DAQmx 21.3" I got a new NationalInstruments.DAQmx.dll which works fine.

0 Kudos
Message 17 of 17
(2,980 Views)