10-16-2013 04:20 AM - edited 10-16-2013 04:48 AM
I have been asked to plot some graphs, and to hi-lite certain areas (say between x=10 to x=30, and Y = 0 to Y = 10), ideally with a shaded/hatched rectangle. Is there a way to plot a shape on top of a graph to hilight a certain area.Ideally from VBScript as the ranges will differ dependent on the channel.
I am currently using Diadem 8, (supporting a legacy system to which this function needs to be added), but I also have Diadem 2010 which I can see does provide a GraphObject of type FreeFrame, which looks ideal, but if I can use Diadem 8, I won't have to port lots of associated legacy code!.
With Diadem 2012, I have found that the positioning (for the FreeFrame object) all appears to be as percentages relative to the page. Is it possible to specify positions using the X,Y co-ordinates of the graph over which I wish to plot?
Onkar
10-16-2013 10:16 AM
Hi Onkar,
There is no dedicated feature for this in DIAdem 8.x. The only idea I have for that version is to create new X, Y1, Y2 channels and fill them the right values in order to plot a "differential bar" in the right place and of the right size. If you have the differential bar(s) listed first in the graph configuration, every other curve will be plotted "on top" of it, so that it will function as if it was in the background.
DIAdem 2010 is exactly the version that the "background segments" were introduced for both VIEW and REPORT, and this is what I would recommend for DIAdem 2010 and later. Look for the following two examples in DIAdem 2010 and later:
Background Segments in DIAdem REPORT
Background Segments in DIAdem VIEW
Brad Turpin
DIadem Product Support Engineer
National Instruments