Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

NationalInstruments.DAQmx.DLL' could not be loaded in C#

Solved!
Go to solution

I tried to load the NationalInstruments.DAQmx.DLL in Xunit of  C#. We can build the solution, but it failed when running it. The error message is "Result Message: 
System.TypeInitializationException : The type initializer for 'GM_GlobalB_Tests.DiagnosticDTCTests' threw an exception.
---- System.IO.FileLoadException : A procedure imported by 'NationalInstruments.DAQmx.DLL' could not be loaded."

0 Kudos
Message 1 of 3
(3,018 Views)

Hi,

May I know what version of DAQmx you are using?

This problem looks similar to:  Procedure Imported by 'NationalInstruments.DAQmx.dll' Could Not Be Loaded

0 Kudos
Message 2 of 3
(2,986 Views)
Solution
Accepted by topic author judy_chen

I am using the 15.1 DAQmx, and after updating the DAQmx to 17.0, the problem has been disappeared. So I can use the DAQmx now.

Thanks for your help.

0 Kudos
Message 3 of 3
(2,971 Views)