Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

daqmx with measStud in dll

hi,

 

i have written a dll that is supposed to handle all the datat aquisition for my gui app.

now when i start the app without any hint of measStud in the dll, everything runs fine. only if i add the line

 

CNiDAQmxTask* m_task = new CNiDAQmxTask();

 

 in the dll, my app will not even start. the vs2008 debugger shows no error messange at all. dependency walker shows me two missing dlls when profiling: mxsout_logger.dll and mxsout_profiler.dll. these are national instruments dlls.

 

what is the problem here?!?

how can i use a measurement studio dll in a non-mfc app?

 

thanx!!

 

0 Kudos
Message 1 of 3
(6,722 Views)

Hi,

 

if you anyway want to work without MFC, why don´t you use the DAQmx C API?

You can find the examples somewhere like

 

C:\Dokumente und Einstellungen\All Users\Dokumente\National Instruments\NI-DAQ\Examples\DAQmx ANSI C

 

regards

 

Marco Brauner NIG

0 Kudos
Message 2 of 3
(6,704 Views)

Hi,

 

I have exactly the same problem. I try to use  C and C++ libraries but it doesn't work.

My programming code is a DLL project using MFC in a shared DLL in Visual Studio 2005.

I'm using it like this:

 

 Cpp:

 

CNiDAQmxTask* myTask = new CNiDAQmxTask();

 

 

 

 C:      

 

DAQmxErrChk (DAQmxCreateTask("",&task));

 

 

But both pauses the program with no event. (No error or breakpoint or anything) The program is not stopped, it's just paused...

 

Regards,

Nicolas

Message Edité par Nicolas.RDVision le 05-11-2010 10:19 AM
Nicolas Abreu
0 Kudos
Message 3 of 3
(6,155 Views)