02-25-2009 06:09 AM
Hi,
I'm using a PCI-DIO-32HS card (NI 6533). An error happens during the writing (DAQmx) of the data to the card, after wich I can't reset the card using the DAQmx tools nor the MAX (reset devic). I always get "Error -50002 occurred at Device Reset". A self test on that device works. The only way to use the card is to restart the computer, which is pretty irritating when searching for the bug. Is there any other way of reseting the card without restarting the computer.
Add. Info:
Windows XP SP 3, LabView 8.0
Cheers.
Solved! Go to Solution.
02-26-2009 09:36 AM
02-26-2009 09:49 AM
Does this error occur everytime you run your code?
Yes, unfortunately it is quite reproducible.
Also does this error occur within MAX or LabVIEW?
In LabView. It is the fault of my code which causes the crash. The cards are OK and run under other circumstances perfectly. I just need to debug the code, which is difficult if you have to wait 3-5 minutes between every shot.
On a fresh restart, without opening LabVIEW, can you Reset/Self-test etc within MAX?
Yes, that works (cards are OK).
Cheers.
03-02-2009 03:32 AM
Hi Benami,
I know you can force windows to remove and redetect a usb device, and I am wondering if you can do the same with a PCI card.
http://digital.ni.com/public.nsf/allkb/1D120A90884C25AF862573A700602459?OpenDocument
I wonder if that is of some help. It definetly sounds like the way you are coding. I have heard sometimes using the reset device.vi twice in LabVIEW can help, but I have never tried this personally.
I hope you manage to get down to the coding issue you have!
03-10-2009 03:47 AM
Hi Ashish N,
thanks for the tip. DevCon does the job with the drawback that the device is really re-installed, which is not really fast in Windows. Anyway, faster than rebooting and it shouldn't take too long to find the error.
Cheers.
03-10-2009 03:54 AM
Glad I could help!
Good luck in finding your coding issue!