LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Plotting multiple measurements with same color and one reference with different color.

Hi!

 

I have a problem with plot colors. My vi plots a number of "Measurements" according to "No of Loops". It also plots one "Reference". This vi now works when making 3 "Measurements"(3 loops)+"Reference". It plots "Measurements" in white and the "Reference" in green. Otherwise the colors aren't right. I know why it works only in 3 loops because there are three cases for it(cases5..7). How can I use the "No of Loops" variable to make the vi work in all loop counts?

 

The variables are in quotation marks.

 

Thanks in advance!

 

0 Kudos
Message 1 of 3
(2,360 Views)

Hi Seessami,

use a case structure with true and false cases. Go to the true case if "i" is smaller then "number of plots -2" and to the false case otherwise.

 

Hope it helps.

Mike

Message 2 of 3
(2,356 Views)
Thanks Mike! You're the man.
0 Kudos
Message 3 of 3
(2,341 Views)