I cannot configure a PXI-6602 counter to use Interrupts"
"I am trying to collect data on 4 channels. Each channel uses a counter of the NI-DAQ PXI-6602.
For the first three channels I use DMA by default.
I have added this line of code for the fourth channel which uses counter 3, before I PREPARE & ARM this counter:
Set_DAQ_Device_Info (device,
ND_DATA_XFER_MODE_GPCTR3,
ND_INTERRUPTS);
but I always become a SetupError (-10600)
I've tried several different things, also:
GPCTR_Change_Parameter(device, ND_TRANSFER_MODE, ND_INTERRUPTS);
but it does not work.
I am obviously not setting the last channel to use interrupts correctly. Am I supposed to do something else besides Set_Device_Info? Is ND_PROGRAM initializing
the counter back to use DMA?
Any help?