LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx Error -200398

From what I can gather this error (-200398) means that the DAQmx function I am calling from CVI is not found in the DAQmx DLL.

I am calling the function from my own DLL, which is being called by a top-level application (both written in CVI 7.1). 

The error occurs when calling DAQmxCreateTask.  The code all works great in debug mode (calling the functions from the DLL's source).  I imagine that this is a linking issue or build procedure issue with either my DLL or top-level application executable.

Can anyone help me out?
CLA, CCVID, Certified Instructor
0 Kudos
Message 1 of 3
(4,100 Views)

Hello JS,

You are correct.  That error means that the function could not be found in the dll file, but it is able to find the dll file because you are getting an error number/status back.  I have seen cases of this when you develop an application with one version of DAQmx, and run it on a machine with another version.

I see that your application works in the development environment when you are using debug mode.  Are you only having problems when you run the code on another machine, or does it not work when you run it on the development machine in release mode? 

Finally, what versions of DAQmx and CVI are you running?

Regards,

Jesse O.
Applications Engineering
NIC

Jesse O. | National Instruments R&D
0 Kudos
Message 2 of 3
(4,074 Views)
Thanks for the reply.  You are absolutely correct.  I fixed the issue yesterday, and I should have posted the answer, but I completely forgot all about the post (you know how it goes!).

The version of DAQmx on the remote machine I was testing on was different from the version I was using to build the DLL locally.  I fixed this by simply rebuilding the DLL on the remote machine using the same code.  There were no problems after that.

Thanks again, and sorry for now updating this sooner to save you some time.
CLA, CCVID, Certified Instructor
0 Kudos
Message 3 of 3
(4,070 Views)