03-18-2010 06:20 PM
Thanks DianaS, the code works. I am getting a graph just the way I was expecting.
The next step is to get the time difference it takes for the two transducers to reach a certain pressure to measure the speed of the wave.
I have attached a screen shot after the experiment was done so you can check it out.
Thanks a lot, you have no idea how much I appreciate your help.
03-18-2010 10:44 PM
Nicely done! And I am very happy that I was able to be of some help.
For getting the time difference, here's a nudge.
You have collected two waveforms, one from transducer 1 and one from transducer 2. Element 0 of your waveform array is the data from transducer 1. Element 1 is the data from transducer 2.
Both waveforms contain timing information as part of their datatype.
Take a look at that timing information.
Alternatively, just have a look at your graph...