LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to switch progamatically between line and symbol plot ?

I am trying to switch between symbol and line plot (XY-graph) programatically. (I know jow to do it on the front panel.) I thought I could do it through property nodes, but there is no PlotType property node, only PointType, LineType, and LineWidth. If I set LineWidth and LineStyle to zero I get a continous line connecting my symbols. If I set LineWidth to zero and LineStyle to 1, althoug, the Legend shows only symbols I get a dashed line connecting the symbols. Also, is somewhere a desciption what the LineType and PointType codes mean?

Thanks,

George
0 Kudos
Message 1 of 5
(2,955 Views)

Hi George,

 

I am not quite sure what you mean by symbol plot.  Do you mean how the points are represented?  Can you please expand on this.  I also do not know what you mean by "LineType" and "PointType".

0 Kudos
Message 2 of 5
(2,930 Views)
TBy symbol plot I mean points. ALso, I meant Line Style and Point Style instead of LineType and PointType, and they are property nodes of the XY-graph. I hope it cleared up my previous post.

George
0 Kudos
Message 3 of 5
(2,910 Views)
When you right click on a plot legend and select 'Common Plots', there are several plot properties that get changed. There is no single property to change between the different option. I would recomend that you place a property node on you block diagram and select Plot.Point Style, Plot.Line Style,Plot.Line Width, Plot.Plot Interpolation, and Plot.Plot Fill To and create indicators for each. Then manually change the Common PLots setting and take note of the diffferences. There is help for each of the properties and the help will refer you to the front panel menu options. For example, the help for Point Sytle says that the values are 0-16 as shown on the menu from top-left to bottom-right.
0 Kudos
Message 4 of 5
(2,903 Views)
OK, it works. The important thing is setting the interpolation to 0, otherwise it always draw a line.

George
0 Kudos
Message 5 of 5
(2,892 Views)