NI Home > Community > NI Discussion Forums

LabVIEW

Showing results for 
Search instead for 
Do you mean 
Reply
Member
engwei
Posts: 183
0 Kudos

Display value of Y-axis of each lines on Graph or Right side of Graph

Hi All, 

 

Nice day to all.. before my question,  please refer to the attachment. 

 

Let say, the digital waveform consists of value 1 or 0 on each line, and I would like to drag the cursor by X-axis to view the value of Y-axis on each Lines(signals).

 

I would like to display the value on the right side, like show in the attachment. Any idea to do it ?

If there is no way to do it, display the value on graph considered ok too..

 

Please help .. thanks !!! 

Member
Sappster
Posts: 178

Re: Display value of Y-axis of each lines on Graph or Right side of Graph

Hi Engwei,

 

You can use the Cursor Position property as an output to an indicator for the y value of the cursor. However, you will have to create a cursor for every plot, link them to a plot and then make them move in synch to read all the y values at the same time.

 

You could also read the x position and look up the y values from the data you are writing to the graph. This will eliminate the need for multiple cursors.

Sappster
Member
engwei
Posts: 183
0 Kudos

Re: Display value of Y-axis of each lines on Graph or Right side of Graph

Hi Sappster,

 

Thanks for your suggestion. 

 

Since the number of plot in the graph is not constant, it is ranging from 1-60. So, create multiple cursor ( 60 cursor ) in the graph but with only 1 plot seems very weird right?

 

I will try to read back the source data to create the value. Thanks again. 

Member
Sappster
Posts: 178
0 Kudos

Re: Display value of Y-axis of each lines on Graph or Right side of Graph

Hi Engwei,

 

You could programmatically create the cursors based on the number of plots and then link them programmatically. But it might be easier to get the data from the graph input.

Sappster
Member
engwei
Posts: 183
0 Kudos

Re: Display value of Y-axis of each lines on Graph or Right side of Graph

:smileyhappy:

 

I see, thanks ya !!

Member
No_RegreTs
Posts: 181
0 Kudos

Re: Display value of Y-axis of each lines on Graph or Right side of Graph

Can we show these values ​​on the graph where cursor represented?


Yasemin Barutçu
Electrical And Electronics Engineer