08-16-2006 01:42 PM
There are some artifacts I don't understand - when the frequency is really high, the yellow window DOES NOT cover up the gray signal. But if you make the graph larger, it does. It's some sort of drawing artifact.
In my case, I don't want the WIDTH control to be separate - I want a START and an END cursor and to move both together normally, or if SHIFT is down, you move only the one you grab. But that should be do-able.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
08-16-2006 03:07 PM
I think your strategy using the 'SHIFT' key is really good and the example (Sliding_Window_method_CMB_lv8.vi) I posted using that technology was just a variant of what you had done earlier (with few locals and all event-based now that LabVIEW 8 has cursor events). My only problem with it is that it is not cross-platform.
If you need cross-platform solution, I think the 3-cursor method I showed in my other example (Sliding_Window_method_roth_lv8.vi) is the possible solution. Not sure without the 3 cursors how you would be able to adjust the window width without a separate width control.
For some reason, I had thought MIchael was actually sliding the window just using the mouse with no cursor at all. But I guess I had NIWeek euphoria to have thought that. But maybe there is a way to do that with two stacked slides placed directly onto the waveform graph similar to my original implementation but with the slides being transparent. Hmm, might have to try that at some point.
Sincerely,
Don
08-28-2006 03:06 PM
09-08-2006 12:12 PM
11-06-2006 06:40 AM
03-23-2009 02:34 PM
Hello to everyone in this thread,
I am trying to do an sliding window to a waveform to analyze just a portion of time that it might to be selected in the graph ..
I have been trying to modify the examples that you posted here in the past but my problem focus on make an analysis in another graph .. not just to appear in another color in the same graph ..
Let me explain better ..
The selection that i made by the graph needs another analysis in other graph .. like some FFT analysis ... but I have been trying to get and output of the selection in another graph and I can't ...
Please somebody can send me a hint or way to do it ?? ..
Thanks ..
03-23-2009 02:45 PM
03-23-2009 02:58 PM
You can read the cursor values via properties in the selection graph, then use those values to pick out a piece of the data for further processing.
Just use a property node and choose the CURSOR LOCATION property (probably just the X value).
Blog for (mostly LabVIEW) programmers: Tips And Tricks
03-25-2009 10:06 AM
Thanks for your reply ..
I will try the option of the array subset .. because I dont have a good knowledge of the cursor properties ... but sure that I am going to review it later ...
I will tell you any problem that I have ..
Thanks ..
03-25-2009 11:25 AM
Ok is working for what I need ..
There is still one single thing ... in the waveform that I am working, the Xaxis is in time (usec) and the sliding window works for the number of elements in the array (which is logic) .. I just need to change in the Xaxis the number of elements by the time of the waveform ..
I could be easy if you know the right blocks to figure it out .. let me check .. and if you have any suggestion please let me know ..
But how to change only the Xaxis ?? .. I just need to multiply it by 0.2 usec ...
I really appreciatte your help
Thanks ...