LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Converting screen coordinates to LabVIEW pane coordinates

Solved!
Go to solution

Try something like this:

 

21409iB84900F5FCED0A51

 

The fudge factor is an offset to take the toolbar into account.  You may need to tweak it to get the right result (this is a workaround after all), it may vary depending on OS, this works for me on XP.

Message 11 of 16
(1,517 Views)

Darin,

 

I really like the looks of that.  Could I trouble you to upload the code?  I'm having a hard time reproducing that, I'm not familiar with some of those diagrams. 

 

Or, more specifically, what kind of node is the screen coordinates and panel coordinates in your diagram?

 

I'll keep plugging away at it in the mean time.  Thanks so much everyone! 

0 Kudos
Message 12 of 16
(1,505 Views)

Oops, I was too used to working in LV9+ and assumed I had saved a snippet instead of a simple png. (Deleted the code already).

 

The Screen Coordinates control and Panel Coordinates indicator were created from the troublesome Invoke Node, I right-clicked on the ScreenCoordinates terminal and 'Create Control', same for the other except 'Create Indicator'.  I believe you can also find it in the 'Datatype' subpallete of the Controls subpallete of the Graph pallete, they are Points, just simple clusters of two I16s.

 

 

0 Kudos
Message 13 of 16
(1,497 Views)

Here's my pallete in LV 8.0:

 

 

I've been through every option at least once, and I haven't seen a graph pallete.  When searching available functions for 'graph', I am returned

 

  1. 3D Graph Properties
  2. Graphics and Sound
  3. Graphics Formats

None of which have a datatypes subpallete.

 

I've tried creating an Invoke Node and moving from there, but I could not located a ScreenCoordinates terminal.  Attached is what I have in LV 8.0.

 

What you're saying sounds like it's exactly what I want, I'm just having trouble finding it.  Thanks so much for all of your help, everyone!

0 Kudos
Message 14 of 16
(1,486 Views)
Solution
Accepted by Brent14

Faster just to redo.

 

You should be looking on the Controls Palette (from the Front Panel) since those nodes were Cluster controls.

Message 15 of 16
(1,481 Views)

Ah, got it.  This works perfectly for what I need.  Thank you Darin, and everyone else who has supported this thread.  😃

0 Kudos
Message 16 of 16
(1,473 Views)