LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

question of the coordinate of Graphics

When use subVIs of Graphics,coordinate is enquired to locate the pictures.For example,point(x,y) in  the Draw Point,
 
point(x,y) is the coordinate of the pixel to set in the resulting picture relative to the current location of the origin.
 
I don't know the relationship between  the coordinate and the  location , I have to guess and try again and again .Is there any document discrible the relationship. Thanks
0 Kudos
Message 1 of 9
(3,862 Views)

I have to admit I don't understand what "current location of the origin" means either. I would expect the origin to always be 0,0.

Can you post an example where it isn't 0,0?

___________________
Try to take over the world!
0 Kudos
Message 2 of 9
(3,854 Views)
Draw Point is a subvi of  labview. Used to draw point  on  picture
0 Kudos
Message 3 of 9
(3,836 Views)
point(x,y) is the coordinate of the pixel to set in the resulting picture relative to the current location of the origin.
 
I copied these words from the help document.
 
0 Kudos
Message 4 of 9
(3,835 Views)
Yes, the help wording is a bit odd.
 
The coordinates for "Draw points" are absolute  (relative to the origin!) and not relative to the current position.
 
(Maybe they meant "current location of the origin" with respect to the entire screen?)
0 Kudos
Message 5 of 9
(3,832 Views)
what is the  max value of the absolute coordinates for "Draw points",if the picture takes up the  whole monitor
0 Kudos
Message 6 of 9
(3,823 Views)

Now I see. You can set the origin programmatically.

In that case, I have to agree with Altenbach - when changing the origin the point moves. If it was relative to the origin, the point would stay in its place and we would get a line of past points. I think they just got the documentation wrong - the point is always in absolute picture coordinates (relative to 0,0) regardless of where the origin is.

As for your question, there is no maximum value. You can draw a point which will be of the screen. Let's say your screen is 1024x768 and you filled it with your indicator. You can still draw a point at (2000,1500), you will just have to scroll or change the origin to see that point.


___________________
Try to take over the world!
0 Kudos
Message 7 of 9
(3,818 Views)
I was playing around with picture controls recently and found that I could not make them wider than 4096 pixels.
0 Kudos
Message 8 of 9
(3,802 Views)

OK, I will correct my statement.

I didn't mean there is no limit, but that the actual point can be located after the edge of the picture control, but if you'll make the control larger, you will see it's there. Since the representation for the position is I16, the maximum value is probably 32,767, which I would call "no maximum value", because an image 32,000 pixels wide is something that's a bit hard to look at.


___________________
Try to take over the world!
0 Kudos
Message 9 of 9
(3,794 Views)