ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to change colour of particular ticks in receive data of digital waveform graph?

I am using digital waveform graph for displaying drive & receive ticks.The digital waveform graph consists of 16 channels drive & receive datas.I am comparing each drive channel ticks with receive ticks(for example :-compare CH1 Drive & CH1 receive) and get the fault ticks in the receive channel. How to change the  colour of fault ticks in a particular receive channel tick ?
 
For example,
 
I have 100  receive channel ticks(in blues) I find 10th tick is fault.I like  to change the colour(to red) of 10th tick only .Other ticks colour should not changed . Is it possible?
 
 
-Kumar.B
Message 1 of 24
(6,572 Views)

I think ur not understand correctly. I dont need to change the colour of plot ,i need the colour change in the plot for particular values.

I am using Labview 7.1

See the attachement

 

 

-Kumar.B

Message 3 of 24
(6,547 Views)
Hi Kumar,

Try right-clicking on the plot and selecting properties.  Then select the plot tab, and you can change the color per channel, as seen in the attached image.

Trey B | Applications Engineering | National Instruments
Message 4 of 24
(6,513 Views)

Both Christian and myslef have posted examples of how to do this, but I don't have time to find the links.

This can be accomplished by using "extra plots" that are not shown in the plot legend. The extra plot will under normal circumstances, get updated with "NaN" so that they do not plot on the graph. When a "bad" reading is detected, the "extra plot" gets updated with the bad reading, and the "normal" plot gets "NaN".

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 5 of 24
(6,511 Views)
My concern is how to achieve it in  Digital Waveform Graph.(attached example vi & screen shot in previous posts).
 
Shall u post any small example vi?
 
I am using Labview 7.1
 
 
-Kumar.B
 
Message 6 of 24
(6,482 Views)


Ben wrote

This can be accomplished by using "extra plots" that are not shown in the plot legend.



I dont get your point.

I did try out with so many options, but there seems to be no way to change the colour of just a single digital sample (tick) on the Digital Waveform Graph.

Also the vertical scrollbar for all the types of graphs (esp, the Digital Graph) is of utmost necessity. Smiley Happy

Can some lead experts file a feature request for this, or should we file on our own ?! Smiley Wink

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 7 of 24
(6,479 Views)

Will not work with digital.

With LV 7.1 you will have to implement your own using a picture control (lotta work!).

There is no way (that I know of) to lift the pen since you can't use "NaN" as boolean.

In LV 8 or better a XControl could be developed to do this (but still a lot of work!).

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 8 of 24
(6,465 Views)

Ben,

I wonder why none of you had asked for the vertical scrollbar in the graphs all these years! Smiley Indifferent

When you play with digital graphs for more channels, say >32, it is necessarily needed. Smiley Happy

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 9 of 24
(6,460 Views)
How about using two plots on top of each other that are identical in size. Make one transparent. Use one to hold the normal data with NaN replacing the values you want to highlight. This will leave gaps in the data. On the other chart, it is normally NaN and shows nothing. Then make the highlight region equal to one. This chart could have all signals with the highlighted color.
Message 10 of 24
(6,447 Views)