I am trying to output different waveforms on different channels of my NIDAQ 6713. To do this, I am loading a waveform from 5 unique buffers onto each channel (1-5) separately using WFM_Load. However, when I call WFM_Group_Control to start the output, only the channel that I loaded last (channel 5) outputs its waveform. Any ideas? My code is as follows:
for (i = 0; i < 5; i++) {
iStatus = WFM_Scale(1, (i16)i, 3000, iGain, iVolts[i], iVoltsBin[i]);
iStatus = WFM_Load(1, 1, indiv_channels[i], iVoltsBin[i], 3000, iIterations, 1);
}
iStatus = WFM_Rate(iRate, 0, &iTimeBase, &iUpdateInterval);
iStatus = WFM_ClockRate(1, 1, 0, iTimeBase, iUpdateInterval, 0);
iStatus = WFM_Group_Control(1, 1, 1);
Thanks,
Adit Koolwal