LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array in diferents colours in graph xy

Solved!
Go to solution

Hello to all.

First of all thanks a lot for reading this post and being able to help.

 

I have a XY Graph which has an array of 30 elements. Each 500ms a element is replace for another random number.

This is the code:

 

So this is: 1,2,3.......30 and then another time which diferent numbers: 1,2,3.....30.

The plot is always in the same colour so some times I can not differentiate which element is replaced.

How can i do that the element replace appear in diferent colour?

So imagine, from 1 to 30 in blue, and now in the next loop imagine that it has to replace element 15, so from 1 to 15 in colour red and from 15 to 30 in colour blue.

 

How can I do that?

 

thanks a lot!

0 Kudos
Message 1 of 6
(3,155 Views)

Use a second plot!

(Each plot can have its own color…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(3,147 Views)
Solution
Accepted by topic author A.Salcedo

Having some fun with this xD. I hope is what you wanted!

Download All
Message 3 of 6
(3,120 Views)

Friday playground 😄

 

Friday-playgroundbd.png

Friday-playground.png

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


Message 4 of 6
(3,104 Views)

That is exactly what I want. 

 

Thanks a lot!!!!

0 Kudos
Message 5 of 6
(3,091 Views)

Thanks a lot friend!

Very usefull!!!

 

0 Kudos
Message 6 of 6
(3,090 Views)