Hello,
I am trying to program a DAQ6731 to simultaneously output different analog signals at separate channels. I am using Microsoft Visual C++ and shaping my code after the AO Examples that came with the package. First, my program reads in number data in f64 (double) format. It puts the data points into dynamic arrays (buffers). Then it passes these buffers to WFM_Scale. Then I use the series of WFM_Group_Setup, WFM_Load, WFM_Rate, WFM_ClockRate, and WFM_Group_Control/START to begin outputting the analog signals.
My problem is that I can't figure out how to output more than one signal at the same time. I call WFM_Load several times, once for each waveform (and each one goes to a different channel). When I run t
he program, it seems like the last call to WFM_Load supercedes and cancels out all previous calls. At first, I put all channels in the same Group, Group 1.
I noticed in the Traditional NI-DAQ Function Reference Help Version 7.1, in the description of WFM_Load, it says that "for 673X devices, you cannot load multiple buffers for a single group." So I tried to create several Groups, one for each waveform I wanted. But this generates errors in the program which say that I've used invalid Group numbers.
What is the correct way to program the DAQ6731 so that it will output different analog waveforms at different channels, all at the same time?