Labview 7.0; Mac or PC
OK, so it sounds like a simple problem, right:
- bottom line: I want a graphical plane (picture with transparent
background) overlaid on an intensity vs XY data set (Intensity graph).
And I want the two image planes to overlay properly, so I want to do
the alignment programmatically (draw/plot areas of picture and
intensity graphs to be the same size and in the same location).
Here is the problem that I run into:
- summary: Some of the (important) property node positional and size
attributes of the intensity graph return strange values that therefore
can not be used as input to positional properties of the picture.
OK, more specifically, what I tried and saw:
- create a picure, of any size, on a front panel. Make the background transparent, and make the label not-visible
- create an intensity graph, of any size, on a front panel. Make the label not-visible.
- make a property node for the intensity graph and another one for the picture
- set the draw area of the picture = plot area of the intensity graph.
OK, that was easy, and works fine (you can manually align the two to
see that this works, but then mis-align the two to continue)
- note that there is no property to identify the origin of the plot area of the intensity graph directly.
- Hmmmm, maybe the scale marker bounds on the graph can be used to
(somewhat closely,but maybe not exactly) identify the origin of plot
area of the graph...
- set the position>left property of the picture = X scale>marker>position>left
- set the position>top property of the picture = Y scale>marker>position>top
- IT WON"T BE ANYWHERE even close (the alignment is way off)
It gets better:
- on the front panel, move the graph up maybe 50 pixels, and to the right about 50 pixels
- run the vi again and see that the picture moves to the right as expected, but has not moved up at all
There's more, but I don't want to complicate the picture any more. I'll
just summarize by saying that it appears that some of the intensity
graph-components position/size properties change in value based on the
number or types of properties requested.
I haven't tried aligning the graph to the picture instead, but I'm
guessing that I'm missing something stupidly simple in this example,
and someone can help to restore my sanity.
Thanks, in advance