LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to up convert the number of samples in a waveform

Hi, I have acquired an analog and a digital signal at 1S/s for 10 s . So I have 10 analog samples and 10 digital samples. Now I would like to upconvert the number of samples of the acquired signal to let's say 10kS/s . How can I

do it in labVIEW for the analog and digital signals?

I don't want to change the duration but let's say I have a zero , I would like to make it 10000 zeros. 

Thanks

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

Hi tintin,

 

there's a function named "ResampleWaveform"...

 

Btw. what's the point in upsampling by a factor of 1000?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(3,111 Views)

@tintin_99 wrote:

Hi, I have acquired an analog and a digital signal at 1S/s for 10 s . So I have 10 analog samples and 10 digital samples. Now I would like to upconvert the number of samples of the acquired signal to let's say 10kS/s . How can I

do it in labVIEW for the analog and digital signals?

I don't want to change the duration but let's say I have a zero , I would like to make it 10000 zeros. 


The LabVIEW math palette has a rich set of interpolation tools that you can apply to the Y data (then you also need to change the timing information).

 

Alternatively, there is the Align and Resample Express VI that could do about the same thing.

0 Kudos
Message 3 of 5
(3,107 Views)

Well, I am not actually acquiring the signal. I build the signal at 1S/s but finally I need to change the sampling rate to somthing else. I think the easy way might be to take the Y array and of r each element add ( lets say 100 elements  if the sampling rate is 100) but how can I do it in LabVIEW?  

 

how can I do this in LabVIEW

Lets say the sampling rate is 5

 

123 

111112222233333

 

Thanks

0 Kudos
Message 4 of 5
(3,102 Views)

A simple Initialize Array inside of a FOR loop with concatinating tunnels works well.  The concatinating tunnels became available with LabVIEW 2012.


GCentral
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 5 of 5
(3,090 Views)