LabVIEW快速创建事件插件

简介: LabVIEW快速创建事件插件

LabVIEW快速创建事件插件

此插件包含在LabVIEW2018及更高版本中。如果使用的是LabVIEW2017或更早版本,则只需从此处下载并安装它。

在控件和控制终端上添加新的“创建>事件结构”:

选择此选项将在控件上为指定事件配置新的事件结构:

一些附加说明:


仅当关系图上已有一个事件结构时,才会显示该菜单。它出现在控件和控制终端上。它不支持多选。


如果控制终端未接线,并且尚未放置在该控件的另一个事件帧中,则它将被移动到新帧中。如果为嵌套控件(即群集中的控件)配置事件,则不会移动终端。


事件数据节点缩小为单个元素并移动到下角。


特定于类的事件显示在列表中。例如,如果右键单击树控件,将看到“项目打开”、“项目关闭”等,除标准控制事件之外的事件。


菜单不会出现在显示控件上。


如果控件的指定事件已存在,则事件结构将切换到该现有帧并突出显示。


Note:This plugin is included in LabVIEW 2018 and later. You only need to downloadand install it from here if you are using LabVIEW 2017 or previous.


Adds anew Create > Event Case pull-right on controls and control terminals:



Selectingthis option creates a new Event Case configured for the specified event on thecontrol:



Someadditional notes:


The menuonly appears if there is exactly one event structure already on the diagram. Itappears on controls and control terminals. It does not support multi-select.


If thecontrol terminal is unwired, and not already placed within another event framefor that control, it will be moved into the new frame. The terminal will not bemoved if an event is being configured for a nested control (i.e. a controlwithin a cluster).


The EventData Node is shrunk to a single element and moved to the lower corner.


Class-specificevents are shown in the list...for example, if you right-click on a Treecontrol, you'll see the Item Open, Item Close, etc. events in addition to thestandard Control events.


The menudoes not appear on indicators.


If thespecified event already exists for the control, the event structure will beswitched to that existing frame and highlighted.


Attachement is saved in LabVIEW 2015. Forinstall instructions, go here.




Bug Fix for ALL Right-Click Menu Plug-Ins(LV2015 to 2019)

by AristosQueue(NI) on


‎02-19-2020 10:49 AM


- edited on ‎02-26-2020 09:20 AM by: AristosQueue (NI)


Issue: Customers have noted that every once in a while,right-click operations implemented in G do not work, but when they try toreproduce the issue, everything works fine. Some users have written the issueoff to "I must have clicked the wrong thing." But, no, it turns outthat there is a rare race condition in the transaction logic for theright-click plugins.



Fix: This issue will be fixed in LabVIEW 2020. We may at somepoint issue a patch for some older versions, but that will take time, and wemight not ever patch all the way back. Luckily, this issue can be fixed in allolder versions now by modifying one shipping VI. If you are seeing this problem,you can download the attached VI (saved in LV 2015, the oldest version whereright-click plug-ins are supported) and replace this file:


resource\plugins\PopupMenus\support\Call Popup PlugIn Execution VI.vi

Lesson: As I have often taught: programming with refnums isinherently dangerous because it creates the possibility of the worst class ofbugs. Race conditions can make customers think they're going insane andsecond-guess their own confidence... they're sure they did it right the firsttime (and they did!). I apologize for the confusion this bug caused. So, folks,stick with by-value dataflow where ever you can, so you can minimize having toapologize like this to your own customers!



需要说明的是,上述的例程和文档,都是可以下载的,双击即可打开,其中压缩文件是可以采用粘贴复制的方式,拷贝到硬盘上。这不是图片,各位小伙伴看到后尝试一下,这个问题就不用加微信咨询了。有关LabVIEW编程、LabVIEW开发等相关项目,可联系们。附件中的资料这里无法上传,可去公司网站搜索下载。

相关文章
|
22天前
|
iOS开发 MacOS
LabVIEW如何使用热键去触发自定义的事件
LabVIEW如何使用热键去触发自定义的事件
17 1
|
22天前
|
XML 存储 文件存储
LabVIEW使用自定义模板和示例项目来开发LabVIEW项目
LabVIEW使用自定义模板和示例项目来开发LabVIEW项目
13 0
|
22天前
LabVIEW动态加载VI到子面板速度优化
LabVIEW动态加载VI到子面板速度优化
13 0
|
22天前
|
存储 算法 API
LabVIEW创建自定义书签管理器
LabVIEW创建自定义书签管理器
|
22天前
|
数据采集 监控 异构计算
LabVIEW编程LabVIEW开发高级数据采集技术定时与触发 例程与相关资料
LabVIEW编程LabVIEW开发高级数据采集技术定时与触发 例程与相关资料
28 7
【51单片机】一文带你利用【Keil软件的模板功能】【自定义模板】简化操作(带图详解)
【51单片机】一文带你利用【Keil软件的模板功能】【自定义模板】简化操作(带图详解)
|
22天前
|
监控 C++
C++ Qt开发:QFileSystemWatcher文件监视组件
QFileSystemWatcher 是 Qt 框架中提供的一个类,用于监视文件系统中的文件和目录的变化。它允许你在文件或目录发生变化时接收通知,并可以用于监视文件的创建、删除、重命名以及内容修改等操作。这对于需要实时监控文件系统变化的应用程序是非常有用的。
52 5
C++ Qt开发:QFileSystemWatcher文件监视组件
|
22天前
|
小程序
Uniapp 解决组件在官方文档不支持的事件上,接收小程序原生组件事件
Uniapp 解决组件在官方文档不支持的事件上,接收小程序原生组件事件
66 0
|
6月前
|
图形学
Unity——音频管理器(附例子)
Unity——音频管理器(附例子)
|
7月前
|
前端开发 C# 开发工具
Unity快手上手【熟悉unity编辑器,C#脚本控制组件一些属性之类的】
Unity快手上手【熟悉unity编辑器,C#脚本控制组件一些属性之类的】
113 0

热门文章

最新文章