LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to append two digital waveforms

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

Untitled.png

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)  ??

0 Kudos
Message 1 of 5
(3,282 Views)

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.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 5
(3,277 Views)

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

0 Kudos
Message 3 of 5
(3,273 Views)
To append them together, they both have to be at the same rate. What you are asking for does not make much sense.
0 Kudos
Message 4 of 5
(3,261 Views)

@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.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 5 of 5
(3,256 Views)