LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

2013 Bug (?): Graph Line Style not preserved

Since upgrading to LV2013, we have seen several of our GUI windows that contain XY Graphs revert the "Line Style" property that was saved. We have some graphs containing multiple plots, some of which have solid lines and dashed lines in them. We typically just configure the plot properties at edit time and save the VI. Starting with 2013, we started seeing problems where lines saved as "Dashed" style were reverting to "Solid" in compiled executable.

 

We have tried re-saving with the property asserted again, but it always seems to revert when we build and run the exe.

 

We can certainly do this programmatically. We'll probably create a subvi that accepts a graph reference, and then an array of (plot index + line style) clusters, so we can drop that everywhere we need it. But that sucks for the following reasons:

  • it's brittle; if we change the order of plot items in the graph, we have to remember to update the inputs to that subvi
  • it's not very extensible; it's easy enough to do for LineStyle, but if we find other properties we need to update like this, it quickly turns into a big ordeal
  • it used to work
0 Kudos
Message 1 of 4
(2,541 Views)

Do you see this effect in the development environment or only in executables?

 

Does it happen every time or is it irregular?

 

Does it happen with a new graph or only with ones which existed before the upgrade? What was the original version in which the graph was placed on the VI?  Sometimes old front panel stuff gets corrupted during upgrades.  I do not recall the line style issue but in such corruption cases placing a new graph on the panel may help.

 

Sorry, no solutions yet. Just trying to narrow down the parameters of the issue.

 

Lynn

0 Kudos
Message 2 of 4
(2,504 Views)

Happens in compiled EXE.

Happens consistently.

Happens with pre-existing graphs; haven't created any new ones.

0 Kudos
Message 3 of 4
(2,327 Views)

Hello Phil,

 

I have been able to reproduce the behavior you are experiencing.  It seems that the Line Style is not preserved when opening an older VI in a newer version of LabVIEW.  This behavior also occurs when you save a newer VI as an older version of LabVIEW.

 

As you said, the work around for this would be to specify the graph properties in a Property Node.

 

I have reported this unexpected behavior to the R&D department.  It was filed as CAR# 491374.

 

Thank you very much for bringing this to our attention.

Thomas C.
FlexRIO Product Support Engineer
National Instruments
0 Kudos
Message 4 of 4
(2,284 Views)