LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XY graph plot colour

Hi All,

I have a problem with the XY Graph representation.
I'm trying to show different plot with different colours in the same graph.
I realized a VI (8.2 Labview version), but it is wrong because at every iteration all the trace are re-colored with the same
colour.

I have two 1D array (X array and Y array) and my goal is to show every (X,Y) point with different colours.

 

Could please someone help me?

 

I attached the VI and a Front Panel screenshot.

 

Thanks in advance for your support,


Francesco.

Download All
0 Kudos
Message 1 of 11
(3,525 Views)

Please give more information why you want to do this.

If I understand it correctly you want to display every point with a different colour on your graph.

 

Stefan

0 Kudos
Message 2 of 11
(3,496 Views)

Please take a look at this. Hope it helps.

Message Edited by NitinD on 28-08-2009 07:04 PM
Download All
0 Kudos
Message 3 of 11
(3,492 Views)

Hi Stefan,

 

you have understood correctly.

I want to represent, on the same XY graph, points with different colour (it ins't necessary every point with different colour).

 

Application: I have a network of 10 sensor (10 for example) and I need to capture the temperature per each sensor.

Then I select two temperature, Tmin. and Tmax. from my front panel, and I would like to show all the sensors on the same graph in this way:

 

1) sensors with  T<Tmin              -> blue colour    (freeze)

2) sensors with  Tmin<T<Tmax   -> green colour  (in range)

3) sensors with  T>Tmax             -> red colour     (hot)

 

The VI which I attached is a sinmplifyed version to make the issue understandable.

 

Thanks for your reply,

 

Francesco.

0 Kudos
Message 4 of 11
(3,483 Views)

I Nitin,

 

I tryed your solution, it works well.

 

Thank you very much for the quick and clever answer.

 

Best Regards,

 

Francesco.

0 Kudos
Message 5 of 11
(3,480 Views)

franz_73 wrote:

I Nitin,

 

I tryed your solution, it works well.

 

Thank you very much for the quick and clever answer.

 

Best Regards,

 

Francesco.


 

Francesco,

 

Could you please un-mark your reply as the solution (look undr Options in top right corner)

 

and

 

Mark NitrinD's reply as the solution?

 

It helps others find the solution faster in the future and it adds to NitrinDs solution count. As volunteers we only get paid with "Kudos" and "Solutions".

 

Thank you,

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 6 of 11
(3,474 Views)

Hi Ben,

 

I have just un-marked the solution.

This is my first post, sorry for the inconvenient.

 

Best Regards,

 

Francesco

 

Message 7 of 11
(3,453 Views)

There is a Express-VI that might be interesting for you, called "Mask and Limit Testing". Not sure it it's available in 8.5 because I'm using 8.6 but it should be.

You can take your signals you wire into your graph and set an upper and a lower limit andand the graph will change it's colour when he's outside the limits.

0 Kudos
Message 8 of 11
(3,449 Views)

Cool!

 

and mark NitrinD's messsage so he gets credit for the solution?

 

Thank you and welcome to the Forum!

 

Ben

 

 

PS Stephen. I have a pointed hat at home with that same pattern. My wife brought it home with her after a buisness trip since I was born in Munich.

Message Edited by Ben on 08-28-2009 09:52 AM
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 9 of 11
(3,448 Views)

Hi Nitin,

 

just the last question, I tried your work with LabView 8.5 and it works fine.

Reproducing it with step by step  I have problems to create the bundle by name output with X and Y array.

In the bunble I can view only the Y array, two times (view screenshot attached).

Probably I'm creating in the wrong way the  block on left-top of the block diagram (the input cluster in the bunble).

 

Could you provide further explanation?

 

Thanks for your patience,

 

Francesco.

0 Kudos
Message 10 of 11
(3,433 Views)