Hi,
I'm very new to this group and NI-DAQmx. I started using provided ansi-c header and library to write applications for my PCI-6221. I was writing a wrapper class and program halts. Debug takes me to nidmxfu.dll and points:
_RELIABILITY_CONTRACT
void __CLRCALL_PURE_OR_CDECL _Mtxlock(_Rmtx *_Mtx)
{ /* lock mutex */
#ifdef _M_CEE
System::Threading::Thread::BeginThreadAffinity();
#endif
EnterCriticalSection(_Mtx);
}
in xmtx.c
My class is very simple including <iostream> and "NIDAQmx.h". All variables are private and DAQmxReadAnalogF64 is wrapped as :
void VoltageRead::readDAQ(void)
{
DAQmxReadAnalogF64(taskHandle,1000,10.0,DAQmx_Val_GroupByChannel,data,1000,&read,NULL);
}
I'm using VS 2005. Thanks for your help in advance.
emrah