04-23-2009 11:21 AM
Hello!
I have trouble to Synchronizes the Digital Output with the Analog output.The Daqmx that i'm using is NI-USB-6229 and i'm programming in VisualStudio .NET 2003
I want to generate in the analog chanel a continuos sine wave with a variable frecuency and in the digital output a signal that changes in the cross of the wave by zero (DO= f(t)>0)
I create two Task, one analogic for the chanel A0.0 and one digital for de line P0.0. Both task are configured DoNotAllowRegeneration
I create the analog buffer with the wave and the digital buffer.
then in a loop i do
while(1)
AnalogMultiChannelWriter.WriteMultiSample(true,AnalogBuffer)
DigitalSingleChannelWriter.WriteMultiSamplePort(true,DigitalBuffer)
FillBuffers //Call a function that fill the buffer with the new data
end while.
Using an osciloscope, the signal are generated, but the signals aren't syncronizated .
Any idea about this problem??
Thanks
PS1: This is my second app using DAQmx and it's very simple, the further app is to use the 4 Analog Output, so using anothe AO for the digital output isn't the solution
PS2:Sory for my english
04-24-2009 04:37 PM
Hi,
I'm sending to you some forum posts that have some solutions for problems similar to yours.
http://forums.ni.com/ni/board/message?board.id=232&requireLogin=False&thread.id=3591
http://forums.ni.com/ni/board/message?board.id=232&requireLogin=False&thread.id=3569
http://forums.ni.com/ni/board/message?board.id=232&requireLogin=False&thread.id=2558
Cordiales Saludos
Luciano Borges
National Instruments Brazil