LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to access plot properties at run-time

I am currently using Labview 7.1.1, and I am creating a general plotting and analysis program for deployment at our facility.  I would like the user to be able to access the plot properties dialog box that I can get to when the VI is not running.  This would allow them to change colors, plot types, plot names, etc.  I know that the properties menu item is not available at run-time, but has anyone been able to get around this?  If not, and I need to write a subVI to get there, how can I access the symbols for all of the plot types, point styles, etc, that I would put in the listboxes (I guess that would be the best way to do it??)?
 
Thanks!
 
Robert Hoffman
0 Kudos
Message 1 of 3
(2,587 Views)
Hello Robert,

enable the plot legend and the user can select colors, line width and so on...
To change plot names: use property nodes, get name from user and set correct plot name (first set property "active plot", then set "plot.name" [or similar, can't use Labview at the moment]).
Nearly all things you can do at development by right-click menus can be done via property nodes at runtime!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 3
(2,577 Views)
GerdW,
 
I have the user currently able to do that, but I was trying to get away from that for several reasons:
 
  • I am trying not to limit the number of plots, but I have to limit the legend size to keep the front panel sized properly.  If I do this, I can't have access to all of the plots at once.
  • I would like the user to be able to access plot names, and other functions and not depend on the legend for all the properties.
  • I think it would be more user-friendly to have a plot configuration "utility" where they can access all the properties for the plot.  This could be misconceived on my part, but I think it is worth trying.

I like the layout of the plot properties panel, and if I can mimic that, that would be great.

I could be splitting hairs, but because this program is going to widely deployed, user-friendliness is at the top of my priority list.

Thanks!

Robert

0 Kudos
Message 3 of 3
(2,562 Views)