LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

add marker

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..

0 Kudos
Message 1 of 6
(3,583 Views)

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.

0 Kudos
Message 2 of 6
(3,568 Views)

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

 

0 Kudos
Message 3 of 6
(3,556 Views)

It would be much easier to tell what's wrong if you could attach your VI. 😉

0 Kudos
Message 4 of 6
(3,549 Views)

Ok sure,  the are is in the top left

 

the graph caled "simulate Signal"

 

 

Download All
0 Kudos
Message 5 of 6
(3,543 Views)
You created "free" cursors. You need to create "single-plot" cursors.
0 Kudos
Message 6 of 6
(3,534 Views)