LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

[Help] How to Change the number of samples X axis?

Solved!
Go to solution

Please if any body can help me with this.

 

When FFT sampling frequency is 1000 [Hz] 

the x axis for first graph will have 200, the second will have 500 and the third will have 500 as well. Here is the question How could I decrease the samples for the first waveform from 200 to 1 ( 0.1 0.2 0.3 ... 1)Without changing the number of samples for other graphs.

 

0 Kudos
Message 1 of 10
(2,351 Views)

Can you convert your Vi to LabVIEW 2020 ("save for previous") and attach it again?

0 Kudos
Message 2 of 10
(2,350 Views)

To be honest I don't know how this could be done

0 Kudos
Message 3 of 10
(2,347 Views)
0 Kudos
Message 4 of 10
(2,334 Views)

I did but I'm still not sure if the alright or not.

0 Kudos
Message 5 of 10
(2,332 Views)
Solution
Accepted by Amer1233

You don't want to change the number of samples, just the x-axis scale (as I already mentioned in the other message:

 

altenbach_0-1636907366642.png

 

(Right-click the graph terminal...create...property node...x-scale...offset and multipler...multiplier)

 

0 Kudos
Message 6 of 10
(2,304 Views)

Screenshot 2021-11-14 at 17.39.01.png

Unfortunately it didn't work.

0 Kudos
Message 7 of 10
(2,290 Views)

Actually It did work now I got it. However the x axis is from 0 to 1. My goal to get 0.1 0.2 0.3 0.4 till 1 in the x axis.

Screenshot 2021-11-14 at 17.51.02.png

0 Kudos
Message 8 of 10
(2,277 Views)

You need to wire from the sampling frequency control, not from the data array.

 

Right-click the x-axis and change the formatting to show 1 decimal digits.

 

altenbach_0-1636913906464.png

 

0 Kudos
Message 9 of 10
(2,258 Views)

There are great training resources links at the top of the forum. Please use them!

 

(Who wrote the VI, it is a mess! For example I am not sure why you think you need to run two waits in parallel. In any, the longer one wins and the shorter one is irrelevant.)

0 Kudos
Message 10 of 10
(2,247 Views)