LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XY graph - multi-plot problem

Hi,

 

I'm experiencing a problem using a multi-plot xy graph. I have to display 2 plots together, and make them appear and disappear many times during the program running.

But when I close LV and restart it, the second plot (plot1) doesn't appear, and also I lose all the properties I've set for it (name, color,...). If I don't shut down LV everything works well.

 

What can I do?

0 Kudos
Message 1 of 8
(3,568 Views)

Try saving your plot as default after the first time your run it.

 

What version of LV are your running?  There is a bug with regard to XY plots in 8.6.1 reported in this thread.  I am wondering if you are seeing the same problem.

0 Kudos
Message 2 of 8
(3,550 Views)

Hi, 

 

I'm using LV 8.6.

The problem I have is similar to the one shown in that thread. Do you think adding a third dummy plot can solve it?

0 Kudos
Message 3 of 8
(3,532 Views)
No idea.  Try it!Smiley Wink
0 Kudos
Message 4 of 8
(3,512 Views)

Hi Stefano, You can of course also set all properties needed during run time, using property nodes, to be sure that at all time you have the correct plots settings. It's a little more coding but at least you're sure of what you get 🙂

0 Kudos
Message 5 of 8
(3,508 Views)

I've had that problem before.  Then I solved it.  I don't know how.

 

Sorry for the useless postSmiley Indifferent

--
Tim Elsey
Certified LabVIEW Architect
0 Kudos
Message 6 of 8
(3,496 Views)

Ahah, very nice reply 🙂

Anyway, I'm using a dummy plot now and everything seems to work properly.

 

When you write about use property nodes, I'm using the "visible" one.

Your suggestion is to try also to set all the properties from there? Maybe it's a good idea, I'll try.

 

0 Kudos
Message 7 of 8
(3,480 Views)

Stefano Moret wrote:

When you write about use property nodes, I'm using the "visible" one.

Your suggestion is to try also to set all the properties from there? Maybe it's a good idea, I'll try.

 


Here are some code snippets I used once to initialize the graph and later on change legend entries depending on user selection.

SNAG-003.jpg

 

You can also change the way plots are represented during run time. You always have to start with ActPlot do selct one of the plots.

Good luck Smiley Happy

0 Kudos
Message 8 of 8
(3,462 Views)