LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to add more samples to a waveform

Solved!
Go to solution
I have a waveform of 100 samples. I want to make the no: of samples to 1000 without changing the shape of the waveform. How can I do this.
0 Kudos
Message 1 of 12
(5,188 Views)
Solution
Accepted by topic author Flamboyant

Hi

 

The Append Waveforms.vi. You can find it in the Functions palette under Programming->Waveform->Analoge Wfn.

Make sure you read the help concerning how the dt and t0 of the waveforms you are appending behave.

 

Best Regards

 

David

NISW

0 Kudos
Message 2 of 12
(5,186 Views)
I am not trying to append two waveforms. I just to increase the number of samples in the exixting waveform without affecting its shape. To be more clear just the opposite of Decimation.
0 Kudos
Message 3 of 12
(5,174 Views)

Oh, so you want to interpolate to get an additional 900 samples in the same timeperiod? Is that what you want to do?

 

Best Regards

David

0 Kudos
Message 4 of 12
(5,167 Views)
Exactly..........
0 Kudos
Message 5 of 12
(5,157 Views)

Hi Cooldude,

 

But what extra values should be allocated to the 900 samples? They do not exist actually.

Regards
MY
0 Kudos
Message 6 of 12
(5,151 Views)
I don't know whether it is possible. I am just checking out whether this is possible without affecting the shape of the waveform
0 Kudos
Message 7 of 12
(5,146 Views)

Hi

 

Something like this could do the trick.

 

You would just have to build the X array from dt and t0 and also the Xi array with the new X values you want new Y values for. Standard interpolation

 

Best Regards

 

David

Message Edited by Davidek on 08-06-2009 04:03 AM
Message 8 of 12
(5,138 Views)

oh, and you would have to input the new dt into the build waveform as well. Sorry, forgot that part

 

/David

0 Kudos
Message 9 of 12
(5,134 Views)

Hi David,

 

that is amazingSmiley Very Happy

Regards
MY
0 Kudos
Message 10 of 12
(5,124 Views)