LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

set x axis

Solved!
Go to solution

hello 

 

i want to set my x axis according to my stp value

 

here i want to set my x axis according to below value 

present step no.             want to set value on x-axis

            0------------------------------>2.1(GHz)

            1------------------------------>2.2(GHz)

            2------------------------------>2.3(GHz)

            3------------------------------>2.4(GHz)

            4------------------------------>2.5(GHz)

            5------------------------------>2.6(GHz)

            6------------------------------->2.7(GHz)

            7----------------------------->2.8(GHz)

           8--------------------------------->2.9(GHz)

           9--------------------------------->3.0(GHz)

 

after that i want to find my maximum and minimum peak and according that peak i want to find what will be my value of x-axis.

 

thanks

 

 

Download All
0 Kudos
Message 1 of 9
(2,660 Views)

You will need to use and XY Graph.

Chris
Certified LabVIEW Architect
Certified TestStand Architect
0 Kudos
Message 2 of 9
(2,654 Views)

Actually, all that you need to do is set the offset and multiplier of the graph.

0 Kudos
Message 3 of 9
(2,650 Views)

hi

 

sorry i tried that option but not getting any correct output.

 

can you give any example or you can make correction in given vi file

 

thanks

0 Kudos
Message 4 of 9
(2,635 Views)

@husssey wrote:

 

sorry i tried that option but not getting any correct output.

can you give any example or you can make correction in given vi file


We cannot tell what you are doing wrong unless you show us your code.

 

Easiest is to bundle an offset and multiplier before wiring the data to the graph as follows:

 

 

 

(you can also use a property node to write these values once before the loop. You can even enter them in the graph properties and just wire the array)

 

 

0 Kudos
Message 5 of 9
(2,631 Views)
Solution
Accepted by topic author husssey

@husssey wrote:

after that i want to find my maximum and minimum peak and according that peak i want to find what will be my value of x-axis.


Do you want to show the current peak or do you want to see the highest peak of all traces?

A simple array ma&min will give you the index of the peak, and knowing the offset and multiploer, you can calculate the frequency from that easily (not shown). All this can be done in the same loop.

 

Anyway, here's how your program could look like, just add the above mentioned features.

 

Download All
0 Kudos
Message 6 of 9
(2,628 Views)

hi

 

at in my first post i atteched code of labview

0 Kudos
Message 7 of 9
(2,607 Views)

husssey wrote:

at in my first post i atteched code of labview


earlier, you wrote:


husssey wrote:

sorry i tried that option but not getting any correct output.


 

I was talking about the code where you tried "that option" (whatever that means) and it did not work. You did not show us that!

 

Does the code I attachad above work for you?

0 Kudos
Message 8 of 9
(2,605 Views)

thanks

 

to

 

0 Kudos
Message 9 of 9
(2,600 Views)