Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Microsoft C++ exception: ni::dsc::osdep::WinError

I am trying to figure out what is causing this exception

 

When I call the follwing function it throws this exception

 

DAQmxCreateTask(DAQMXTASKHANDLE_DEV4_AI,&m_tTaskHandle14DEV4);

 

 

As of now it seems to assign the pointer address to the taskHandle okay but I am wondering why it is throwing this excpetion

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

Hi boilermaker74, 

 

Do you have any screenshots or example code that is causing this exception?  It has been noted in the past that this can be more related to a Microsoft first chance exception and not DAQmx but of course that's not always the case.  Please see the document below about First Chance Exceptions and when they can occur.

 

http://blogs.msdn.com/b/davidklinems/archive/2005/07/12/438061.aspx 

 

Also, if possible can you tell me which version of DAQmx you are running and if you have tried any of our example code?  

 

 

Regional Account Manager
NI
0 Kudos
Message 2 of 3
(3,549 Views)

I get the exact same exception in my C++ code when calling:

 

char szDevice[2056] = {0};

DAQmxGetSysDevNames(szDevice,_countof(szDevice));

 

However the call seems to work fine.

 

I'm using DAQmx v9.4.

 

-cpede

0 Kudos
Message 3 of 3
(3,385 Views)