04-08-2019 02:27 AM
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."
Solved! Go to Solution.
04-11-2019 03:46 AM
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
04-11-2019 07:23 PM
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.