前面板窗口:状态
- 更新时间2025-07-30
- 阅读时长3分钟
前面板窗口的当前状态。
状态
Standard
或 Maximized
表示前面板窗口对用户可见。
如试图对未打开的前面板窗口设置该属性,可返回错误。
在子面板控件中加载VI时,该属性为只读并且始终返回TRUE值。
Hidden
。
显示窗口时,也可通过前面板:打开方法设置前面板窗口的状态。
注释
下表列出了该属性的特性。
| 短名称 | FP.State |
| 数据类型 | ![]() |
| 权限 | 读取/写入 |
| 可用于运行引擎 | 是 |
| 可用于实时操作系统 | 是 |
| 可在VI运行时设置 | 是 |
| 加载前面板至内存 | 否 |
| 使用前必须授权 | 否 |
| 加载程序框图至内存 | 否 |
| 允许远程访问 | 是 |
| 必须等待直到用户界面空闲 | 否 |
| 可用于控件VI | 是 |
| 可用于全局VI | 是 |
| 可用于严格自定义类型 | 否 |
| 可用于多态VI | 是 |
| Invalid | 0 |
If you read this property and an error occurs, the property returns this value. If you set the property to this value, the property returns an error.
|
| Standard | 1 |
The front panel window is open but is not minimized, maximized, or hidden.
|
| Closed | 2 |
The front panel window is not open. If you set the property to this value, the property returns an error.
|
| Hidden | 3 |
The front panel window is hidden. If you set the property to this value and close all references to the front panel, the window remains open but hidden. Because the VI is open, the 入门指南 window does not appear. To solve this problem, open the VI from the operating system. For example, double-click the VI in Windows Explorer to open the VI.
|
| Minimized | 4 |
The front panel window is minimized.
|
| Maximized | 5 |
The front panel window is maximized.
|
范例
请参考LabVIEW附带的下列范例文件。
- labview\examples\Application Control\VI Server\VI Properties\VI Properties - Front Panel States.vi
