05-09-2009 04:42 AM
Hello..
Let me define my final goal: building a modern spectrum analyzer by the SR-760 model.
The Problem:
i need to add a MARKER to the Spectrum graph output.
MARKER mean that in the real spectrum analyzer there is a "turning scroll button" that you rotate it and on the screen you see a cursor running on the Spectrum lines
( all the cursors and markers in this forum relate to the graph itself, regarding the lines that display on the graph...)
my question: how do i add a cursor to the graph that change accordinly to the signal displayed on the graph??
basicly i would love to get any information about this subject - for instance, later on i need to add a "Next Peak" button - that related to the signal as well..
hope i was clear abot the question.
another example - Let say i have a 3 sin wave in different frequencies. fft(signal) -> result 3 main harmonic,
display on the graph - three impulse.
marker cruise on the signal lines on the graph , and on the side display each time what is the x value and y value.
later adding next peak button and now each time you press it the cursor jumps between the impulses..
05-09-2009 11:17 AM
Seems like you want a cursor that is locked to a plot.
Here's a quick example (LV 8.5.1) where you can pick the plot # and cursor X with controls and it will give you the corresponding Y. Modify as needed.
05-09-2009 03:22 PM
YES - this is exactly what i need.
but im trying to imply your code on my VI, i think something missing,
i didnt add the TIMEOUT thing - im not really sure how to use it, the steps iv done:
1.right click on the grap->creat->Property Node->Cursor->Cursor Position->Cursor X ( did the same to Y)
2. add Cursor to graph through the "Front Panel"
3. made cursor X as Write
4.made cursor Y as read ( cause i just want to display the Info from the graph)
result: the program runs, but im not controlling the cursor and im not see any value of cursor y
my guess im not using reference or something like that..
my question is:
1.how do i connect the cursor from the property node to the cursor iv added in the front pane?
2.is it posible to create a "Maximum" and "minimum" buttons, so the cursor will jump to that area in the graph...
thank for the help altenbach
05-09-2009 03:56 PM
It would be much easier to tell what's wrong if you could attach your VI. 😉
05-09-2009 04:53 PM
Ok sure, the are is in the top left
the graph caled "simulate Signal"
05-09-2009 06:19 PM