LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot configure a counter to use Interrupts on a NIDAQ 6602.

I am attempting to collect data on 4 channels. Each channel uses an onboard counter of the NI-DAQ 6602.

The first three channels of my DAQ program use DMA by default.

I have added this line of code for the fourth channel which uses counter 3:
Set_DAQ_Device_Info (device,
ND_DATA_XFER_MODE_GPCTR3,
ND_INTERRUPTS);


When I do a
iStatus = GPCTR_Control(device,
counter3,
ND_PROGRAM);


I get a runtime error: "No DMA available."

I've tried several different things. I am obviously not setting the last channel to use IRQ correctly. Am I supposed to do something else besides Set_Device_Info? Is ND_PROGRAM initializing the counter back to use DMA?


Any help?


Kay
0 Kudos
Message 1 of 2
(3,120 Views)
Kay,

Have you tried using this:

GPCTR_Change_Parameter(device, ND_TRANSFER_MODE, ND_INTERRUPTS);

Hope that helps!

Derek

0 Kudos
Message 2 of 2
(3,120 Views)