LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Property Node - PlotAreaSize problem

Hi All,

I've got a transparent picture indicator (with a bight green border) overlapped on a waveform graph (i want to use this to select a portion of the waveform down the road). I want the picture indicator to be the same size as the wavform graph even if a user resizes the graph. I used a property node to read the PlotAreaSize and PlotBounds and then used them to set the picture so that it would overlay exactly on the waveform graph. As you can see in the attached vi it doesn't quite work exactly.

I think the reason for the error is that the border (in green) round the picture is taking up some pixels that results in an offset. Is there any way of getting rid of the border on a picture (e.g. a custom control?). If not how should i get round this problem? I guess that i could subtract the width of the border from the left, top and that might work.

Any suggestions greatfully recieved.
0 Kudos
Message 1 of 2
(2,526 Views)
The border is the problem. The position of the picture indicator is set from the top/left corner of the entire indicator, not just the draw area.
 
An easy fix is to just subtract a bit from the PlotBounds coordinates before you write to the Position property. It looks like 3 will do the trick. (see attached VI)
 
Ed


Ed Dickens - Certified LabVIEW Architect
Lockheed Martin Space
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
Message 2 of 2
(2,515 Views)