Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

How to resetting DMA after failure on NI6601

I try to get buffered semi period measurement to work using NI6601. Whenever the program crashes during the buffered operation, there is no way to recover the DMA. The next call of the function informs me that there is no DMA available. I can only imagine. It is not freed because of the crash. For resetting I tried Init_DA_Brds() which succeeds but has no effect and DAQ_Clear() which returns an error saying the action is not appropriate for the device.
Only way to reset is to reboot the computer.
I am using NI-DAQ 7.1 traditional, W2k, CVI 5.5
0 Kudos
Message 1 of 3
(3,382 Views)
You are right. If your application crashed before releasing the DMA-channel, the computer needs to be rebooted to get the channels available again.
0 Kudos
Message 2 of 3
(3,382 Views)
Is there no way to reset the DMA-Channel in windows?
E.g. Could I monitor if and which DMA-Channel was used (should be alsways the same) and in case of a crash reset the DMA via sys call?

Thanks
0 Kudos
Message 3 of 3
(3,382 Views)