LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to place markers on the plot ?

Dear All,

I have a graph where i am plotting 4 channel data.

I want to put markers on each channel.

By Markers, i mean small dots on the plot which gives me the x-difference between the two. And, one more thing, the markers should only move on the plot and not elsewhere.

 

I know something can be done with the cursors in the graph pallete. but, they take a lot of place in the graph. 1 horizontal and 1 vertical line for each plot would add to alot more confusio.

 

I am putting a picture to make things more clear of what i want. Black line represents the data and on it i have placed 2 red markers.

Juat have a look at the pic and let me know if that thing is possible in LabView??

 

Thanks

0 Kudos
Message 1 of 10
(3,433 Views)
Yes, it is possible and you would use cursors. You can customize the appearance of a cursor and the vertical/horizontal lines are optional. Make the Cursor Legend visible and create a cursor. Right click on it and select Attributes. You will be able to see the different options. All of these are also settable with a property node.
Message 2 of 10
(3,419 Views)
Definitely try thte cursors first, as Dennis suggests. If that doesn't work for you, you can always use annotations. Check the LabVIEW Help and the shipping examples.
Message 3 of 10
(3,415 Views)

Hi,

Thanks alot for the sloution.

Yes, with the Attributes i just got what i was looking for.

but somehow i couldn't get how to play around with them via property node.

I have placed 2 cursors on the plot. i want to display the x-difference between the 2 cursors. With the property node, i was just able to manipulate the 1st Cursor, and not the second. Any idea how can i play around with the 2nd Cursor.

And also i want an indicator just above the 2nd Cursor which shows the x-difference between the 2 Cursors. How is this possible?

 

Thanks

0 Kudos
Message 4 of 10
(3,387 Views)

Use the active cursor property as shown in attached VI

 

Read each cursor's x co-ordinate using 'cursor.PosX' property node and find their difference

 

Regards,

Dev

Message Edited by devchander on 09-10-2008 06:33 AM
0 Kudos
Message 5 of 10
(3,372 Views)

Thanks alot.

I got the way.

 

Is there anyway i can place an indicator just on top of the 2nd cursor(and moves along with it) which displays the x-difference b/ween the 2 cursors ?

I can place an indicator on top of the cursor but its position remains static. I want the indicator to move with the cursor.

 

0 Kudos
Message 6 of 10
(3,365 Views)

Simpler Method>> just keep renaming the 2nd cursor with the x difference Smiley Wink

 

Look at at attached VI

 

Ofcourse you could do further string concatenations/ modifications to customize what you want to display

Message Edited by devchander on 09-10-2008 07:21 AM
0 Kudos
Message 7 of 10
(3,359 Views)

Lollsss...

Your simpler method is just too simple that my mind aint allowing me to implement it.  :smileywink:

i was looking for some tedious methods to do d same. 

you have put my mind on HALT now.  :smileysad:

 

Thanks

0 Kudos
Message 8 of 10
(3,348 Views)

ritesh024: "you have put my mind on HALT now.  :smileysad: "

 

Is that good news or bad news????? Smiley Very Happy

 

regards,

Dev

0 Kudos
Message 9 of 10
(3,345 Views)

It is bad until i found a new problem .:smileywink:

 

Ritesh

0 Kudos
Message 10 of 10
(3,341 Views)