03-23-2007 05:44 PM
03-25-2007 10:12 AM
03-26-2007 11:39 AM
03-26-2007 01:14 PM
03-26-2007 01:46 PM
Thank you so much for your help and time, but I still have a problem, I'm not using Labview, I'm using C++, what Nidaqmx function can use to do that?? to pipe the analog waveform.
03-27-2007 06:33 AM
Hi elenac,
I'm attaching a modified example that comes with NI-DAQmx in c:\...\Program Files\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Analog Out\Generate Voltage\Cont Gen Volt Wfm-Int Clk. The important function is DAQmxCreateAOVoltageChan where you have to change the channel string from "Dev1/ao0" to "Dev1/ao0:1". Hope this helps.
Regards,
ErinB.
NI Mexico
03-27-2007 10:38 AM
03-28-2007 02:22 AM
You need to generate the data for the two waveforms in one of 2 ways:
1) Group by channel (non-interleaved) - the data buffer looks like {i(0), i(1),..., i(N), j(0), j(1), ... , j(N)} where i is Channel 1's data and j is Channel 2's data.
2) Group by sample (interleaved) - the data buffer looks like {i(0), j(0), i(1), j(1), ... , i(N), j(N)} where i is Channel 1's data and j is Channel 2's data.
The example that I attached has a data buffer of 2000 points. The first 1000 points are AO0's data and the last 1000 points are AO1's data. The parameter DAQmx_GroupbyChannel is passed to the function DAQmxWriteAnalogF64 to indicate that the data is organized according to option #1 described above.
The data buffer always has the size N*X where N is the number of samples per channel passed to the parameter sampsPerChanToAcquire of the function DAQmxCfgSampClkTiming and X is the number of channels in the task.
Hope this helps.
Regards,
ErinB.
NI Mexico
03-28-2007 10:32 AM
10-03-2007 11:37 AM
Hi,
Can someone send me an image of this vi as i cannot run this vi on labview 7
Thanks
nirav