LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert pane to panel coordinates bug ?

The attached VI uses invoke node Convert Pane to Panel Coordinates.  It's in LabVIEW 8.2. 

It returns 0, 46 when run in 8.2.

It returns 0, 0 when run in 8.5.1, and 8.6.

It returns 0, 51 when I copy everything on the diagram to a blank VI in 8.6.

 

Look like a bug to me.  Did I miss something ?

 

 

 

George Zou
0 Kudos
Message 1 of 9
(4,022 Views)

It depends on the position of the scroll bars.

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 2 of 9
(3,998 Views)
TonP wrote:

It depends on the position of the scroll bars.

 

NO. It's not.  The scroll bars was left alone when testing.

George Zou
0 Kudos
Message 3 of 9
(3,976 Views)

Hi Zou,

 

This is not a bug. If you open up your utilted 1.vi in 8.5.1 and scroll up you should see it return 0, 134 if the window isn't expanded. This is because its retriving the position of the pane, which is dictated by the scroll bars.

 

Regards

 

National Instruments
RIO Embedded Hardware PSE

CompactRIO Developers Guide
0 Kudos
Message 4 of 9
(3,944 Views)

Andrew,

 

Thanks for reply.

 

The problem is that it doesn't retrive the correct position of the pane.

 

The position of the pane should be the same for different version of LabVIEW if you don't move the scroll bar.

 

George

George Zou
0 Kudos
Message 5 of 9
(3,917 Views)

Hi Zou,

 

I missunderstood the problem for this one. You are absolutely correct. The vertical origin is off by 46 pixels on 8.2. This was a bug and has been fixed for later versions of labVIEW.

 

Regards,

National Instruments
RIO Embedded Hardware PSE

CompactRIO Developers Guide
0 Kudos
Message 6 of 9
(3,902 Views)
Do you mean it's fixed in 8.5 & 8.6 ?
George Zou
0 Kudos
Message 7 of 9
(3,894 Views)

Hi Zou,

 

Yes the off centered origin issue was solved in 8.5.

 

Regards

National Instruments
RIO Embedded Hardware PSE

CompactRIO Developers Guide
0 Kudos
Message 8 of 9
(3,884 Views)

I'm not sure we are talking about the same thing.

 

Every version of LabVIEW, there is an offset from pane to panel.  That's because toolbar and menubar are not truly Window Objects.  That's OK as long as it's consistant.

 

The Offset for 8.2 is 46 pixels; 

43 in earlier version;

51 in 8.5 & 8.6.

 

The problem is that the VI created in 8.2, upgraded to 8.5 or 8.6, has a different offset (0, 0) compare to other VIs created in 8.5 or 8.6 (0, 51).

 

George

George Zou
0 Kudos
Message 9 of 9
(3,874 Views)