From Saturday, Nov 23rd 7:00 PM CST - Sunday, Nov 24th 7:45 AM CST, 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: 

Error in Ploting Different Points with Different Colours

Solved!
Go to solution

Hi, 

     I'm trying to make a graph with different colours for points. The input is a 2D array with x in 1st column, y in 2nd column, and 3rd column for colours. But the code shows there is an error. What is that, and is there any improvement?

 

thumbnail_image.png

0 Kudos
Message 1 of 2
(722 Views)
Solution
Accepted by topic author WilliamLin39

Hi William,

 


@WilliamLin39 wrote:

But the code shows there is an error. What is that,


Does the plot exist at the specific moment when you try to change it's properties?

From the error message I can say: the answer to this question is "No!"…

 


@WilliamLin39 wrote:

and is there any improvement?


Sure!

You need to create several plots when you want to set properties for several plots!

Right now you create only one plot - and with each iteration of the loop the graph is overwritten…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 2
(710 Views)