Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Resetting DMA after program failure

I'm new to using the Traditional NI-DAQ package, and having some issues with software I'm writing under Visual Studio .NET to drive a PCI-6534 DIO board. Somehow the DMA channel isn't getting released when the program isn't closed normally (i.e. a debugging stop or a program crash). Is there any way, either in code or from a seperate program, to release the DMA channel and reset the board so that I don't have to keep rebooting?
0 Kudos
Message 1 of 3
(3,413 Views)
Try calling the function Init_DA_Brds. Normally, this will reset the device. If this does not work, you might want to try DAQ_Clear and not check the error returned from this function. In the cases where it is not doing anything and the program had exited correctly it will return an error saying it was not doing any thing.

Give this a try to see if it helps.

Joshua
0 Kudos
Message 2 of 3
(3,413 Views)
I share the problem but neither commands solve the problem. DAQ_Clear() even returns an error saying the action is not appropriate for the device. Still struggling...
0 Kudos
Message 3 of 3
(3,413 Views)