03-13-2015 01:40 PM
i am having two diffrent digital waveforms with two diffrent sampling rates..and i want to append them but each of them must preserve it's own
sampling rate for example the photo below
the first one it's sample rate is 1/25microseconds
the second one it's sample rate is 1/50microseconds
so how can i append them so that the Time axis will show till 75microseconds..(each one will preserve it's own proprties) ??
03-13-2015 01:54 PM
Resample the first waveform to be at 1/50us. This will require you to repeat every sample (for loop will help here). Then you can append the waveforms since they will be at the same rate.
03-13-2015 02:40 PM
i didn't understand what you mean...i don't want them to be the same rate i want each one to preserve it's own rate but be appended together
can you post a VI explaining .
Thank you
03-13-2015 03:56 PM
03-13-2015 04:33 PM
@Eldokch wrote:
i didn't understand what you mean...i don't want them to be the same rate i want each one to preserve it's own rate but be appended together
can you post a VI explaining .
Thank you
They must have the same rate in order to append. So you make it so the slower rate waveform acts like the faster. So if you had an array {1,2,3,4} sampled at dt and a second array {5,6,7,8} sampled at dt/2, you want to resample the first waveform. This will make the first array {1,1,2,2,3,3,4,4} sampled at dt/2. Then you can append the two arrays to make {1,1,2,2,3,3,4,4,5,6,7,8} sampled at dt/2.