I am using NI-6013.
Use Scan_op Command, 3~16 Channel Scanning does not.
Describe Source under.
i16 iStatus = 0;
i16 iRetVal = 0;
i16 iDevice = 1;
i32 lTimeout = 180;
i16 iNumMUXBrds = 0;
i16 iChan = 1;
i16 iGain = 1;
f64 dSampRate = 10000;
f64 dScanRate = 0.0;
u32 ulCount = 1000;
f64 dGainAdjust = 1.0;
f64 dOffset = 0.0;
i16 iIgnoreWarning = 0;
i16 iNumChans = 3;
static i16 piBuffer[20000] = {0};
static f64 pdVoltBuffer[2000] = {0.0};
iStatus = Timeout_Config(apADv.iDevice,apADv.lTimeout);
iRetVal = NIDAQErrorHandler(apADv.iStatus, "Timeout_Config", apADv.iIgnoreWarning);
iStatus = SCAN_Op(iDevice, iNumChans,
piChanVect, piGainVect, piBuffer, cnt * iNumChans, hzval, apADv.dScanRate);
apADv.iRetVal = NIDAQErrorHandler(apADv.iStatus, "SCAN_Op", apADv.iIgnoreWarning);
apADv.iStatus = DAQ_VScale(apADv.iDevice, apADv.iChan, apADv.iGain, apADv.dGainAdjust, apADv.dOffset, uiCount * iNumChans, piBuffer ,pdVoltBuffer);
iRetVal = NIDAQErrorHandler(iStatus, "DAQ_VScale", iIgnoreWarning);
iStatus = Timeout_Config(iDevice, -1);
---------------------------------------------------
iNumChans = 1 or 2 is OK.
But iNumChans = 3 or High is Program Down.
Desire solution, Please~~~~