Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Though 2 channel Scan becomes, 3~16 channel does not become.

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~~~~
0 Kudos
Message 1 of 2
(2,504 Views)
Greetings,

I am truely sorry, but I am having difficulty helping you. I'm affraid that your post makes very little sense. I have no idea what is meant by "Program Down". What does "channel does not become?" What does "3~16 Channel Scanning does not" do?

From looking at your source code, you are configuring 3 channels for scanning.

i16 iNumChans = 3;

This will be channels 0, 1, and 2. Perhaps this is why you are not seeing response from 3-15.

Again, I wish I could be of more help.

Regards,
Justin Britten

Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,504 Views)