当前位置:网站首页>LabVIEW确定控件在显示器坐标系中的位置
LabVIEW确定控件在显示器坐标系中的位置
2022-06-10 22:30:00 【LabVIEW开发】
LabVIEW确定控件在显示器坐标系中的位置
想知道一个VI中控件的位置,但是当使用该控件的位置属性时,与之相关联的是LabVIEW原点,而不是显示器原点。该如何确定该控件在显示器坐标系中的位置。
解答: 前面板对象的位置是是相对LabVIEW坐标系而言的,它所给出的位置关联于前面板的原点。前面板在编辑模式下加深的十字光标就是LabVIEW坐标系的原点。
为了确定控件在显示器坐标系中的位置,用户还需要使用其他一些属性节点。需要的属性在LabVIEW 8和以后的版本中有所不同。根据LabVIEW的版本选择不同的用法。
LabVIEW7.1 和更早版本
用户从前面板边界中减掉前面板的原点属性值就能将LabVIEW坐标转换为显示器坐标,如下图所示。它给出了在显示器坐标系中的LabVIEW原点。具体方法参见附件中的Getting Screen Coordinates Example VI。

LabVIEW8.x 和后期版本
后期版本的实现方法和之前的非常类似,只不过不再使用原点属性。取而代之的是前面板窗格的原点属性,如下图所示。具体的例子程序被包含在了附件中的Getting Screen Coordinates 8x VI中。

更详细的内容,参加如下附件的介绍。
LabVIEW、LabVIEW开发、LabVIEW编程、LabVIEW程序
上文中提到的例子和资料,均在word中的附件里,可点击下载。进一步了解,
边栏推荐
- Before we learn about high-performance computing, let's take a look at its history
- SystemVerilog(十)-用户自定义类型
- Fiddler filtering sessions
- VS 番茄助手添加头注释 以及使用方式
- 云图说|每个成功的业务系统都离不开APIG的保驾护航
- LabVIEW在波形图或波形图表上显示时间和日期
- Ma8601 pin √ pin replaces Tang Ming fe1.1s without changing the circuit board | perfectly replaces fe1.1s scheme
- Is it safe to open an account online in Shanghai?
- OSS stores and exports related content
- Is it safe to open an account for tongdaxin stock? How to open an account?
猜你喜欢

About not being able to create a new package under Src in idea

Project training 11 - regular backup of database

Font spider Teaching -- ttf/otf font file compression

300题 线代第一讲行列式

执行Oracle的SQL语句报错【ORA-00904: “CREATETIME“: 标识符无效】、【ORA-00913: 值过多】解决办法

考研英语词汇 unit1

Leetcode 501: mode in binary search tree

Chapter 6 - branch and bound method

PwnTheBox,Pwn:tutorial1

mysql 表机制
随机推荐
Solutions to the error reported by executing Oracle SQL statement [ora-00904: "createtime": invalid identifier] and [ora-00913: too many values]
[Video] kmeans mean clustering and hierarchical clustering: R language analysis life happiness index visualization | data sharing
VS的常用设置
[论文分享] PATA: Fuzzing with Path Aware Taint Analysis
LabVIEW中创建毫秒时间标识
It is known that the transverse grain pressure resistance of a certain wood obeys n (x, D2). Now ten specimens are tested for transverse grain pressure resistance, and the data are as follows: (unit:
The shell script of pagoda plan task regularly deletes all files under a directory [record]
How to generate automatic references (simple drawings)
LeetCode+ 21 - 25
LeetCode+ 16 - 20
30 | 怎么重设消费者组位移?
The data file insurance CSV contains 1338 observations, that is, the registered beneficiaries of the insurance plan and the characteristics that represent the characteristics of patients and the total
Is it safe to open an account in Shanghai Stock Exchange?
leetcode 130. Surrounded regions (medium)
Redis data structure
Dell R730 raid5 安装Server 2016(解决磁盘大于2T)
Unity script cannot display Chinese comments of C # source code or the script created by vs does not have comments of C # source code
【视频】KMEANS均值聚类和层次聚类:R语言分析生活幸福指数可视化|数据分享
Electronic Society C language level 1 7. Draw rectangle
redis列表list常用命令大全