Hello,
I use MeasurementStudio 8 with VS2003 C#
In my program I use 2 tasks , each with a single analog channel each , one task is for writing the output signal , and the other is for reading the input signal.
The output signal is passed through a external device , then it is read with the input task.
My current approach is this :
I create the 2 tasks
I attach to each task an analogsinglechannelreader and a analogsinglechannelwriter
I generate the desire waveform and save it into an array
I plot the signal onto the graph
I write the signal with writemultisample method
I read the input signal with readmultisample method
I plot the input signal onto the graph
I analize the input signal in correlation with the output signal
here is the code I use:
graph.outputsignal.PlotY(amplitudiniOutput);
writes.WriteMultiSample(true,amplitudiniOutput);
amplitudiniInput=reads.ReadMultiSample(amplitudiniOutput.Length);
graph.inputsignal.PlotY(amplitudiniInput);
Now the BIG problem
😞 , in the graph the inputsignal is shown before the outputsignal with an offset of about 15ms (which is impossible) , that would not be a problem if the offset would be always the same ....I could translate the array)
I'm don't have now access to the computer with the daq card so I can not add a printscreen of the graph
If I use the simulated card the problem with the offset does not appear.
So I ask .. what am I doing wrong ?
Thank You in advanced
Message Edited by amutianu on 05-17-2007 02:51 PM