Jump to content
Thang Nguyen

What is the most effective method to change the coordinator on picture control?

Recommended Posts

Hi,

In current picture control, the origin start at top left corner and it's positive direction go down to the bottom. I would like to use picture control to draw map for my robot project, but I would like to display as a normal coordinator system which mean vertical positive direction is go up and origin start at bottom left corner. I am trying to shift the origin and swap all y value. I wonder if there is better way than this.

 

Regards,

Thang Nguyen

Edited by Thang Nguyen

Share this post


Link to post
Share on other sites

My first attempt at this would be to have an accessor which does the translation between coordinate systems - anything talking to the accessor will use the bottom-left origin coordinates, but the accessor will output the image as LabVIEW would read it (with the upper-left origin).

Share this post


Link to post
Share on other sites

Changing the Y values seems easy enough to me (just do PicHeight-Y), but if you want another option, you could try using an XY graph instead of the picture control and just set the scales to match what you want. If you want to have an actual image, you can use the graph's picture property (I think it's called plot images) and set the BG picture.

Share this post


Link to post
Share on other sites

Thanks Chris and Yair. I decided to swap the Y to keep it simple :). At the beginning I miscalculated the offset for origin, but I have correct value now.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.