LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to change the colour of the point in the x bar chart according to the limits

ashish its not working in spc

kavi
0 Kudos
Message 11 of 16
(1,032 Views)
Karpaga,

Looking at your vi, and the SPC chart, I have been having a quick experiment and a play around with LabVIEW. You can change, the colour of the UCL, CL and LCL and Points lines, by changing the ActivePlot, using a property node. 

To change the line colour, you use the Plot color property node.

To change the colour of the point, use the Plot.Fill/PtColor property node.

A couple of notes, you have wired an iteration count of 1 into your for loop. This means the loop will only iterate once. However you are wanting it to iterate on a point by point basis. 

I have modified this, and the colours(as I was debugging in hot, cold, normal colours), and if you watch the code on highlight execution, you will see it changes the point colour, however, I (at this point), think of a way of allowing each point to have a different colour.

Hope this may help.

Ashish Naik
Automotive Business Development Manager
National Instruments UK
0 Kudos
Message 12 of 16
(1,011 Views)

thanku for ur valuable reply ashish.my mistake is i forget about the active plot.k..

i come to know now that u clearly understand wat i need i.e different colours for each point according to their classification..

im also trying for that pls try for that and reply me back

kavi
0 Kudos
Message 13 of 16
(1,009 Views)
Hi Karpaga,

Sorry I mistyped in my post above. I cannot think of a method (unless you split the waveform into different graphs) of changing each specific point colour in turn.

Sorry! Could you not workaround this, by having a boolean output to say if the limits have been exceeded or not?

If you do manage to solve this (or someone else), I would love to see a solution!
Ashish Naik
Automotive Business Development Manager
National Instruments UK
0 Kudos
Message 14 of 16
(1,004 Views)
k ashish thanku for the support u given..let see..
kavi
0 Kudos
Message 15 of 16
(997 Views)

Ashish N wrote:
Hi Karpaga,

Sorry I mistyped in my post above. I cannot think of a method (unless you split the waveform into different graphs) of changing each specific point colour in turn.
If you do manage to solve this (or someone else), I would love to see a solution!

Please have a look here. Smiley Happy

 

The solution may be something similar to this. Additional plots may be needed to accomplish this task.

Message Edited by parthabe on 10-20-2009 07:05 AM
- Partha ( CLD until Oct 2027 🙂 )
Message 16 of 16
(992 Views)