cancel
Showing results for 
Search instead for 
Did you mean: 

How to show x-axis value corresponding to max value of y axis of the graph on front panel?

SOLVED
Rashid931
Member
Solved!

How to show x-axis value corresponding to max value of y axis of the graph on front panel?

How to show x-axis value corresponding to max value of y axis of the graph on front panel? If i plot power spectrum of real time input signal, then how can i show the x-axis frequency value corresponding to maximum y-axis amplitude value of the signal on the front panel?
6 REPLIES 6
AdnanZ
Active Participant

Re: How to show x-axis value corresponding to max value of y axis of the graph on front panel?

Not sure how you graph your data but you could take the array and search for the max y-value and then look for the corresponding x-value. There might be a better way to do this; try to isolate your code to your specific issue and post it over here, if possible.
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
Rashid931
Member

Re: How to show x-axis value corresponding to max value of y axis of the graph on front panel?

Message contains an attachment
I want to show the x-axis value of this vi graph on the front panel.
James@Home
Member
Solution

Re: How to show x-axis value corresponding to max value of y axis of the graph on front panel?

Message contains an attachment

Is this what you were wanting to do?

If not, sorry for the confusion.

 

 

James

 

 

LabVIEW 5.0 seems so long ago...
Highlighted
Rashid931
Member

Re: How to show x-axis value corresponding to max value of y axis of the graph on front panel?

Thanks james. You are great.
James@Home
Member

Re: How to show x-axis value corresponding to max value of y axis of the graph on front panel?

Message contains an attachment

Glad to help.

Not sure if you need it, but after my previous post realized it could be more complete.

If your frequency range doesn't start at zero, as in this example VI, you'll need one little change.

 

 

 

 

LabVIEW 5.0 seems so long ago...
Rashid931
Member

Re: How to show x-axis value corresponding to max value of y axis of the graph on front panel?

Thanks James. I was actually looking for the last solution which you provided now. Great help.