Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmxResetDevice never returns. PC must be rebooted

Hello VeeJay,

 

This error just happens with certain USB host controllers. The alternatives are given in the KnowledgeBase: How Do I Force Windows to Remove and Redetect a USB Device?. If you’re not getting this problem, keep working normally. If you’re getting a similar problem, can you please describe it more? This has been fixed for some cases, others aren’t.

 

Thank you, 

0 Kudos
Message 11 of 13
(2,942 Views)

Where in a program is the best place to use DAQmx reset device function? Before opening channel resources or after closing resource? Can Reset fucntion be used while a program is running, a.k.a while ""while loop"" is not yet terminated?

I may not be perfect, but I'm all I got!
0 Kudos
Message 12 of 13
(2,939 Views)

Hello VeeJay,

 

The Reset Device function is usually used at the beginning or end of a program. If the Reset Device is used in the middle of a program it will immediately abort all active tasks associated with a device, disconnect any routes, and return the device to an initialized state. Aborting a task immediately terminates the currently active operation, such as a read or a write. Aborting a task puts the task into an unstable but recoverable state. To recover the task in DAQmx, use DAQmx Start to restart the task or use DAQmx Stop to reset the task without starting it.

 

Regards,

 

Jeff L.

0 Kudos
Message 13 of 13
(2,924 Views)