03-03-2013 07:21 AM
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
Solved! Go to Solution.
03-03-2013 07:38 AM
You will need to use and XY Graph.
03-03-2013 08:08 AM
Actually, all that you need to do is set the offset and multiplier of the graph.
03-03-2013 01:51 PM
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
03-03-2013 02:00 PM - edited 03-03-2013 02:00 PM
@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)
03-03-2013 02:15 PM - edited 03-03-2013 02:16 PM
@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.
03-04-2013 02:37 AM
hi
at in my first post i atteched code of labview
03-04-2013 02:41 AM
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?
03-04-2013 02:56 AM