LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

X-Y plot with different colours

Solved!
Go to solution

Dear gredw and everyone,

 

Thanks. I did the timestamp conversion and splitting up the array into 3 parts.

 

Now i face the problem how to i get all the array to be plotted into one x-y graph with different colours. Can you advise me? The arrays (1,2,3 ) may be of different elements and sizes.

 

I have attached the codes. Can anyone guide me on this?

 

I am also wondering are there any plots that can show different colours based on data level threshold? IS there a much simpler plot (intensity map or others etc) that can do similar application?

 

Thank you so  much!

 

 

 

0 Kudos
Message 11 of 12
(478 Views)
Solution
Accepted by topic author Joven

Hi Joven,

 

as said before: build plots from your sorted data, then create an array of plots:

check.png

Two notes:

- don't use local variables when you can use a wire. There are several race conditions in your code! (See those "1", "2", "3" arrays on the left in the image? No more locals of them!)

- you created a lot of duplicated code: you should design your algorithm on a sheet of paper BEFORE you start to code… (See those two loops in the image: they to the very same job! Why not work with arrays and autindexing loops? Or even use subVIs?)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 12 of 12
(471 Views)