NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
Ronster
Posts: 73
0 Kudos
Accepted Solution

Any way to add harmonic cursors to fft data?

I have a vi that plots vibration data from accels.  I would like to place markers on the fft peaks that identify harmonics of the main cursor.  Anyone out there that has done this?
Thanks in advance,
Ron Brook
 
Member
Nitin_T
Posts: 159
0 Kudos

Re: Any way to add harmonic cursors to fft data?

Hi Ronster
 
I would suggest programatically adding the markers to the graph with the property node XScale.MarkerVals[]. Using the Property Node, you can place the Markers at points of you choice, in this case at the fft peaks. Hope this helps.
Member
Ronster
Posts: 73
0 Kudos

Re: Any way to add harmonic cursors to fft data?

Nitin,

Thanks for the advice.  I have a problem with the property node already that maybe you have seen.  The file is saved with the operating speed as input by the user.  On recall, that variable is read into the cursor property node for x position.  I have three overlays and three cursors on one plot.  It NEVER populates all three cursors.  Maybe two, then the third one is blank. ???

Member
Nitin_T
Posts: 159
0 Kudos

Re: Any way to add harmonic cursors to fft data?

Hi Ronster,
 
One way to work with multiple plots and cursors is to choose the Active Cursor and the Active Plot using Property Nodes. These can be used in a loop to select the right cursor. Once the required cursor is selected, it's positions can be changed. Let me know if I answered your question.
Member
Ronster
Posts: 73
0 Kudos

Re: Any way to add harmonic cursors to fft data?

I assumed that the way to make it work flawlessly would be to use property nodes.  I'll let you know after I get some time to implement that.  I am also working right now on performing a peak search on my fft data.  I have it working, but the peak frequencies don't match the data.  I am still in trouble shooting mode on this one as well.  My basic vi, which saves all six time waveforms and averaged spectra to the server, with another vi to recall all of it, including calculated overalls works very well.

Ron

 

Member
Nitin_T
Posts: 159
0 Kudos

Re: Any way to add harmonic cursors to fft data?

Hi Ronster,

Good to know that most of the code works well. Do post if there are any more difficulties after you finish implementing/troubleshooting.

Active Participant
Jack_A.
Posts: 245

Re: Any way to add harmonic cursors to fft data?

Hey Ron -

 

This might be an interesting XControl for you to take a look at:

http://zone.ni.com/devzone/cda/epd/p/id/6404

 

It doesn't automatically choose the peak values, but does let you interactively move the cursors.  It also has sideband cursors as well.

 

-Jack

Member
Ronster
Posts: 73

Re: Any way to add harmonic cursors to fft data?

Jack,

Thanks, that would work fine.  Unfortunately, I have remained at 7.1, due to the fact that I have multiple sites using my code and it all works, so I felt it best not to rock the boat.

Regards,

Ron

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page