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