LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I display a specified y-constant line on a graph where the input variable is a spike graph?

I currently have a signal going into a graph which displays the value over time as a spike graph around zero. I want to add onto this graph a line which shows a limit that the signal should fall within at say +-10. ie a horizontal line added to the graph. Is there any way that I can do this.

Thanks

Ross
0 Kudos
Message 1 of 3
(3,076 Views)
> I currently have a signal going into a graph which displays the value
> over time as a spike graph around zero. I want to add onto this graph
> a line which shows a limit that the signal should fall within at say
> +-10. ie a horizontal line added to the graph. Is there any way that
> I can do this.
>

Your easiest option is probably to use a cursor's horizontal line --
place it with an X value that is offscreen and turn off its Allow Drag
property on the diagram if you don't want the user to move it.

Another option is simply to add another plot with points that go from
edge to edge. If you already have a multiplot, just bundle in another.
If you currently have a single plot, make an array of your current
type and add another element.

Greg McK
askle
0 Kudos
Message 2 of 3
(3,076 Views)
You could use the cursors to do this. Set up the graph to have a cursor with the cursor style set to horizontal line. Since this graph is vs. time, set the x cursor value to -1, and the y cursor value to whatever you need. This can be done via the cursor pallet on the graph (if you make it visible) or programmatically using property nodes for the graph.

Dave.
==============================================

0 Kudos
Message 3 of 3
(3,076 Views)