LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

sampling signal in labview?

Solved!
Go to solution

How i can to sample a signal in labview?
For example if i have a signal in array of data (dbl) and i want to sample this signal how i can do this?

Thank you .

0 Kudos
Message 1 of 11
(5,217 Views)

What do you mean?

Your signal is already in an array - what do you want to do?

0 Kudos
Message 2 of 11
(5,214 Views)

Hi Sarah,

 

what exactly do you want to achieve?

What is your goal with those data in the array?

 

(Just a guess: Use an autoindexing loop to access the elements in the array one by one…)

Best regards,
GerdW


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

I have my signal in array and i want to sample it in graph like this:

28jkjhjkhjkhjkhjkh5780.jpg

0 Kudos
Message 4 of 11
(5,205 Views)

Hi Sarah,

 

decimate your signal as needed!

Maybe ResampleWaveform will do what you need…

Best regards,
GerdW


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

Ok, But how i can get in Resample Waveforms ? ?
 Knowing that I have a random signal.
Sans titre.png

0 Kudos
Message 6 of 11
(5,176 Views)
Solution
Accepted by topic author Sarah_LAB

Hi Sarah,

 

you could convert your array into a waveform.

Or you search for similar functions in the signal processing palette, which work on (1D) arrays…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 11
(5,171 Views)
Solution
Accepted by topic author Sarah_LAB

In the Signal Processing->Signal Operation palette, there is a couple of Decimate VIs for you to choose from.  These should do what you want.


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 8 of 11
(5,146 Views)
Solution
Accepted by topic author Sarah_LAB

here you go.

 

resample.png

 

Attached is the vi.

 

-----------------------------------------------------------------------------------------------------------------------------
Waiting For the inner calling 🙂


Message 9 of 11
(5,120 Views)
Solution
Accepted by topic author Sarah_LAB

a slight change in interpolation view for the plot is neccessary to match the graphs you have posted.

resample.png

-----------------------------------------------------------------------------------------------------------------------------
Waiting For the inner calling 🙂


0 Kudos
Message 10 of 11
(5,110 Views)