Hi all,
I have a big problem on my project.
First, I use PCI-6711 DAQ board and visual studio 2008(C++) for controlling my system.
I made hyper threading software with three analog output signal from three channel of DAQ BNC block.
But One of signals delay 10ms. It is my problem.
This signal is saw tooth wave consist of 2000 steps. The others are square wave.
The period of all signal is 30ms but it is delayed 10ms to 40ms.
I made saw tooth wave from equation and I confirmed that using MATLAB.
I write saw tooth wave value on taskhandle using DAQmxWriteAnalogF64 function on visual studio 2008.
DAQmxCfgSampClkTiming(AOTask, "", 70000, DAQmx_Val_Falling, DAQmx_Val_FiniteSamps, 2000);
DAQmxWriteAnalogF64(AOTask, 2000, 0, 0, DAQmx_Val_GroupByChannel, Abuffer, NULL, NULL);
When I change above code to comment code, 10 ms delay disappeared.
Also I changed DAQ board to PCIe-6353 but delay problem is still exist.
Please help me