05-01-2009 04:29 PM
05-01-2009 04:37 PM
05-02-2009 06:17 AM
05-02-2009 12:48 PM
05-04-2009 05:23 PM
Here is a copy of my vi. Channel 0 is the one in question. Channel 1 is not functioning at this time. Once Channel 0 works, I'll apply the same logic to channel 1. When you run the vi the actual toneburst is correct. However, the averaged waveforms are not correct. Channel 0 is out of phase with the generated toneburst but it is the same signal only averaged. Also, the amplitude varies greatly in the averaged signal, which is not correct either. Now I'm thinking it has something to do with the way I dis-assembled and reassembl;ed the wavefrom components and the time stamp function. Yo help is greatly appreciated.
Jeff
05-04-2009 06:58 PM
05-04-2009 07:21 PM
05-04-2009 07:32 PM
05-04-2009 08:30 PM
I will now begin to show my ignorance as I am learning this stuff on the fly and I am not sure exactly what you're asking. The plot of the waveform component shows the same erroneous results as the waveform graph. As far as the array size goes for the waveform, isn't the dt a single value and the t0 a single value timestamp? However, all of the array sizes for the y value of the waveform are the correct size.
05-04-2009 08:36 PM
Look up "probe" in the help and it will tell you how to see the data during execution at different points. I was also thinking it would be a good idea to plot the data, so I would put a temporary plot after the add. As for the array sizes, for each of the wires going to the add node, hook up an array size node and put an indicator on the output of the array size. If they aren't the same size -- that's the problem. Array size can be found in the upper left corner of the array functions.
And the dt, etc., is not what I was referring to. So see if you can figure it out from there and let me know if you need more help.