LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Digital Waveform with different color error indication (given Nth samples)

Solved!
Go to solution
Hi,
 
I am doing the HSDIO 6552 project and have some problem on result display.
Result output= Digital Waveform (01110011), Location (nth of samples) of error happen.
 
For example,
Digital Waveform = 01110011
Error location = 0,1,5
 
Then, the waveform graph will plot in color
01110011
 
Can someone pls advise me on how to do it ?
 
I m thinking of taking out the samples on error location, then concatenate back with the original waveform, (to produce different color in waveform portion) like what has done in http://forums.ni.com/ni/board/message?board.id=170&message.id=149003&query.id=35864#M149003
But, I need the error samples differentiate in red color only, and the rest in white color.  
 
The description above only involve 1 signal, and there is actually 20 signal in 1 digital waveform and error locations for 20 signal will be listed.
 
Pls help .. Smiley Indifferent Thanks in advance..

Message Edited by engwei on 06-23-2008 10:52 PM


Message Edited by engwei on 06-23-2008 10:54 PM
0 Kudos
Message 1 of 4
(4,036 Views)

Tyring to change colors of individual samples on a digital graph is very difficult. I have never tried doing what your forum link was trying to do, but it might work for digital. Personally, I prefer to see a highlight around my bits that are in error. And adding highlights to a digital graph is alot easier than changing the plot colors on a sample by sample basis.

I've included a VI written in LV 8.5 that shows an example of how to highlight samples in a digital graph. This VI uses some method nodes that are only available in 8.5 so hopefully that is the version you are using.

In 8.5 you now have the ability to draw custom images in the plot area. I've written a VI that calculates the 4 coordinates for a rectangle that when drawn on the graph looks like a bit is highlighted. Give it a try and see if you can adapt it to your application.



Message Edited by JaredW on 06-24-2008 12:17 PM
Message 2 of 4
(4,006 Views)
Solution
Accepted by topic author engwei

This may be of interest.

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 3 of 4
(4,001 Views)
Really thanks to you all, JaredW and Ben. Ya, I m using 8.5 version. Thanks again for the great idea and code.  Smiley Happy
Message 4 of 4
(3,980 Views)