07-03-2008 06:10 AM
07-03-2008 08:09 AM
07-07-2008 10:32 PM
Hi Jeroen,
I understand that you are having trouble updating your analog output waveform’s amplitude on-the-fly. Which specific language and ADE are you using? Also, which actual device are you using for your analog output?
I actually modified an example from CVI 8.5 that performs continuous generation using the internal clock by replacing all of the DAQmx functions to match those which you included above. I then added a button to the user interface and created a callback for the button that would recalculate the data with the new amplitude and write this new array. I did not experience the same delay that you are experiencing when reading the output channel with an analog input channel. As André stated above, you may want to try disallowing regeneration and simply perform a DAQmx Write for each cycle of the sine wave. You will have to make sure that the cycle time of the loop matches the amount of time that it takes the device to generate the samples. I hope this helps,