By "Grp2" do you mean that you are using two groups, or your groupsize is two?
NI-DAQ uses both DMA channels (by default) for the double-buffered operation; therefore, when the second group is used, there are no DMA channels available. If you are using two groups you need to use the Set_DAQ_Device_Info to change both the "data transfer mode for digital I/O group 1" and "data transfer mode for digital I/O group 2" to use "up to 1 DMA channel".
To clear the operation make sure that you call the following functions:
/* Clear the block operation. */
iStatus = DIG_Block_Clear(iDevice, iGroup);
/* Clear DB mode for the device. */
iStatus = DIG_DB_Config(iDevice, iGroup, iDBModeOFF, iOldDataStop, iPartialTransfer);
/* Unconfigure group. */
iStatus = DIG_Grp_Config(iDe
vice, iGroup, 0, 0, 0);