当前位置:网站首页>LabVIEW determines the position of the control in the display coordinate system

LabVIEW determines the position of the control in the display coordinate system

2022-06-10 23:47:00 LabVIEW development

LabVIEW Determines the position of the control in the display coordinate system

Want to know one VI The location of the control in the , But when using the location property of the control , Associated with it is LabVIEW origin , Instead of the display origin . How to determine the position of the control in the display coordinate system .

answer :  The position of the front panel object is relative LabVIEW In terms of coordinate system , The position it gives is related to the origin of the front panel . The crosshairs deepened on the front panel in edit mode are LabVIEW Origin of coordinate system .

In order to determine the position of the control in the display coordinate system , Users also need to use some other attribute nodes . The required properties are LabVIEW 8 Different from later versions . according to LabVIEW Choose a different usage for the version of .

LabVIEW7.1  And earlier

By subtracting the origin attribute value of the front panel from the boundary of the front panel, the user can LabVIEW Convert coordinates to display coordinates , As shown in the figure below . It gives... In the display coordinate system LabVIEW origin . For specific methods, see... In the annex Getting Screen Coordinates Example VI.

LabVIEW8.x  And later versions

The implementation method of the later version is very similar to that of the previous version , It's just that the origin attribute is no longer used . Instead, the origin attribute of the front panel pane , As shown in the figure below . Specific example programs are included in the attachment Getting Screen Coordinates 8x VI in .

More details , Participate in the introduction of the following annex .

LabVIEW、LabVIEW Development 、LabVIEW Programming 、LabVIEW Program

Examples and information mentioned above , Both in word In the attachment in , Click to download . Learn more ,

原网站

版权声明
本文为[LabVIEW development]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/161/202206102229544142.html