From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I programmatically change the plot legend names on my xy graph?

PAY ATTENTION!!

The properties of Settings are NO PARALLEL! They are sequencial!

 

They will be executed in seqeunce.

 

I attach 2 examples:

  • The first is KO -> You we'll experience an error!
  • The second OK -> No Error

In my opinion this is a bug.

For now this is the correct solution.

 

Ciao!

Carmine

Download All
0 Kudos
Message 11 of 16
(1,988 Views)

Hello Carmine.


@cderrico wrote:
In my opinion this is a bug.

 

This is not a bug. This is expected behavior. The help for property node clearly states: 'The node executes from top to bottom.'

 

How would you handle something like the attached picture in parallel?

 

 

 

UliB

0 Kudos
Message 12 of 16
(1,965 Views)

Thank you for your answer! Smiley Happy

 

Your example is so clear, in no way it can bring us to a not wished situation.

 

For example in my real time application I need to customize the name of graph-lines.

In this case (please see my examples) you can have e total wrong name configuration.

 

From a function that i call, the expected behaviour is that it wait for all input and set it all together with priority for "ActPlot" number.

 

If you have a complex software this behaviour can conduct you to lose so many times.

 

Thank you for your attention!
Carmine

0 Kudos
Message 13 of 16
(1,956 Views)

What about multiple graph lines... Plot 1, Plot 2, Plot 3.... is it really just the first name element? or can I get to the other plot name labels too?

0 Kudos
Message 14 of 16
(1,479 Views)

You're replying into a 2 year old thread and your questions aren't clear as to what message you are referring to.

 

What specifically do you mean by "first name element"?

 

If you are having an issue with your VI, it would be best if you create a new message thread and include your VI along with an explanation as to where you are having problems.

0 Kudos
Message 15 of 16
(1,475 Views)

I figured it out.  ActPlot was the key.

0 Kudos
Message 16 of 16
(1,461 Views)