Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Exceptions thrown from DAQmxReadAnalogF64

I am using a NI USB-6009 OEM with the NI-DAQmx C Library. Recently I am running into a problem where exceptions are happening in NI functions. i.e. DAQmxReadAnalogF64. Normally when an problem occurs in a NI function, it returns an error, however we are having a few boards causing exceptions randomly. Any ideas on how to found out what is causing the problem? (We are using the 8.7 drivers for Windows XP Embedded.)

I have also noticed on Windows 7 64-bit using the latest drivers, if I am using a NI USB-6009 and I unplug the USB cable, the computer Blue Screens pointing to an NI dll.

 

Is it safe to assume an exception happening in DAQmxReadAnalogF64 is due to a hardware issue? Any suggestions?

 

I have attached an image of the exception.

 

Thanks

0 Kudos
Message 1 of 4
(6,559 Views)

Hi c++Programmer,

 

At this point, I don't think there's enough information to safely say it is definitively a hardware issue. What happens when the exception is thrown? Could you try catching the exception for more information and effectively handling it?

 

Cheers,

KyleP
Applications Engineer
National Instruments
0 Kudos
Message 2 of 4
(6,534 Views)

 

I have been able to reproduce the problem on my laptop running Windows XP or Windows 7 (NI drivers 9.2.3) but instead of an exception, Windows Blue Screens. When our program is running, if I unplug the USB cable, Windows will blue screen pointing to nimxdfk.dll.

 

Attached is a screen shoot of the STOP (Blue screen)

 

0 Kudos
Message 3 of 4
(6,496 Views)

Hello c++Programmer,

 

Hvae you been able to capture any more information related to the exception/crash? You could try updating your XP or 7 machine to the latest version of NI-DAQmx.

 

Cheers,

KyleP
Applications Engineer
National Instruments
0 Kudos
Message 4 of 4
(6,476 Views)