LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a XY Graph with wanted axis and grid

I want to create XY graph where I can set the:
-Ymax
-Ymin
-Xmax
-Xmin
-Number of gridlines

I just made a XY graph and now I want to set the above items with a numerical control before i run my vi...
How do I do this????
I know you can do this by adjusting the axis by doubleclicking the Ymax, but how do i do this with a numerical control?
0 Kudos
Message 1 of 3
(2,838 Views)
You can control these things using property nodes. The first thing to read is Chapter 17 "Programmatically Controlling VIs" of the LV user manual. Second, search the help for "properties". You will find a bunch of shipping examples on how properties can be used.
0 Kudos
Message 2 of 3
(2,838 Views)
Right click the graph and select Create>Property Node. On the diagram, find the property node, right click it and first select Change All to Write. Right click again and if you select Properties, you will see a list of all the available properties for the graph. The properties you want are XScale.Minimum, XScale.Maximum, XScale.Increment, YScale.Minimum, YScaleMaximum, and YScale.Increment. You can grow the single property node to have as many properties that you want. Once you have all the properties created, create front panel controls and wire them to the property node. See the attached picture.
Message 3 of 3
(2,838 Views)