Jump to content

"Convert Panel To Screen Coordinates" method

Recommended Posts

The "Convert Panel To Screen Coordinates" method does not work on VIs in Run mode.

If you use this method on a VI in Run mode, you receive the follow error.

"Error 1073 occurred at Invoke Node in CvtPanelToScreenCoords.viPossible reason(s):LabVIEW: This property is writable only when the VI is in edit mode, or this method is available only when the VI is in edit mode.Method Name: Convert Panel To Screen Coordinates"

The help file indicates this is the correct behavior stating that it is not settable when the VI in running. I brought this to NIs attention and they agree that the method is not very useful on a VI in Edit mode, so they filed it as a bug (CAR # 105629).

Download File:post-47-1209311080.vi

Link to comment
  • 2 years later...

Did you ever find a way around this problem?

I can convert the horizontal coordinate without any problems but the vertical seems to depend on whether the toolbar is on, etc as well as on the windows theme.

I am trying to convert the screen coordinates that I get from Acquire Input Data.vi, i.e. reading the mouse position, into Panel and then Pane and then XY Graph coordinates.


Link to comment

Actually it is still a problem in LV 2009 SP1. It works fine in the IDE but does not work in the RTE.

I did find a workaround.

To get the Pane coordinates you can subtract the Screen coordinates from the top left corner of the Panel Bounds and add the pane Origin.


Link to comment

Join the conversation

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

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.