10-19-2007 12:13 AM
@unclebump wrote:
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.
See Ben's reply earlier. NaN wony work with Digital Waveform Graph.
Or, the other way round - Digital values cant ve undefined numbers. I mean Nan.
10-20-2007 12:45 PM - edited 10-20-2007 12:45 PM
Actually uncle's suggestion is not that bad!
Put the theoretical correct on top with a transparent background.
Put the actual data in the background graph with a contrasting color.
This will illustrates the bad states but may be hard to find if the graph is busy. Annotations can help direct attention to failing states.
The code looks like this.
Ben
Message Edited by Ben on 10-20-2007 12:49 PM
10-20-2007 12:58 PM
Note:
Annotations were not available in LV 7.1 I believe.
Cursors can be used similarly but require a bit more code to do what the annotations do better.
Ben
10-20-2007 03:00 PM - edited 10-20-2007 03:00 PM
LV8 also added the ability to control imbedded images. The same effect could be accomplished in LV 7.1 but a seperate picture control was required for that.
Ben
Message Edited by Ben on 10-20-2007 03:03 PM
10-22-2007 12:09 AM
10-22-2007 07:33 AM - edited 10-22-2007 07:33 AM
Message Edited by Ben on 10-22-2007 07:33 AM
10-22-2007 07:45 AM
Surely I ll update here.
But is this prpperty available in 7.1 ?
Moreover, the Digital Graph I use is NOT of this datatype of a bool cluster.It is of the Digital array type.
10-22-2007 07:50 AM
No its not in LV 7.1.
I found it in LV 8.2.1 and am not usre about LV 8.0.
Ben
10-22-2007 09:45 AM
@Ben wrote:
I'll give out bonus points (Stars) for anyone that can produce a demo that show me how to use the "Darken Compare..." property node.
Naturally, I can't give a demo, but it seems to me that you can't get much simpler than a boolean input.
My guess would be that if you wire T it would highlight (or darken, as the help says) the T sections of the graph and vice versa for F. Does it not do that?
Also, is this property private?
10-22-2007 09:54 AM
Always on me to be precise in my questions.
OK I admit I was lazy and used the plot position property which is private.
The "Darken..." is not private (not blue) but I could not see any difference on my graphs when I set the property true.
Not knowing what that property does I was hoping I could use that to highlight differences between a "good and bad" signal. But I have no justification for that idea.
Ben