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开发等相关项目,可联系们。附件中的资料这里无法上传,可去公司网站搜索下载。

相关文章
|
3月前
|
人工智能 自然语言处理 API
阿里云Token Plan个人版与企业版支持模型、优惠价格对比与选购指南:新手选择必看
阿里云千问AI平台的Token Plan订阅服务正在进行限时优惠活动(活动期:2026年7月20日—9月30日),个人版三档套餐低至39元/月,团队版标准坐席低至150元/席位/月。面对"个人版"和"团队版(企业版)"两条产品线、六个套餐档位、30余款可选模型,很多新手用户第一次接触时都会陷入选择困难:我到底该买哪个版本?哪个档位?模型够用吗?价格划算吗?本文将基于官方文档,从产品特性、支持模型、价格对比、活动规则、省钱技巧五个维度,为你做一次系统性的梳理,帮助你快速做出最适合自己的选择。
阿里云Token Plan个人版与企业版支持模型、优惠价格对比与选购指南:新手选择必看
|
8月前
|
人工智能 自然语言处理 安全
零基础搭建 OpenClaw 数字员工实操指南
OpenClaw(小龙虾)是GitHub星标超28万的开源AI数字员工,支持Windows一键部署。本地运行、零代码、全自动执行任务(如整理文件、发邮件、浏览器自动化等),10分钟即可上手,隐私安全有保障,零基础用户友好!
|
10月前
|
机器学习/深度学习 算法 安全
超全基于模块化多电平(MMC)两端柔性直流输电系统simulink仿真(仿真模型+毕业设计报告+文献)
超全基于模块化多电平(MMC)两端柔性直流输电系统simulink仿真(仿真模型+毕业设计报告+文献)
528 4
|
11月前
|
缓存 监控 网络协议
【免费开源】基于 STM32 的远程视频监控项目 —— 从无线通信选型到系统架构实战解析
本项目基于STM32实现低成本、低功耗远程视频监控,融合DCMI图像采集、JPEG硬件压缩、Wi-Fi/4G无线传输、MQTT/TCP协议及云端展示。涵盖硬件选型、通信方案对比(推荐Wi-Fi局域网/4G DTU野外)、内存优化与稳定性设计,适配农业、工业、实验室等IoT场景,提供完整开源实战方案。
【免费开源】基于 STM32 的远程视频监控项目 —— 从无线通信选型到系统架构实战解析
|
9月前
|
弹性计算 人工智能 云计算
2026年阿里云最新轻量应用服务器、云服务器、gpu云服务器新购和续费优惠政策介绍
2026年,阿里云推出轻量应用服务器、云服务器ECS及GPU云服务器优惠活动。轻量服务器以2核2G 38元/年、2核4G 9.9元/月起为亮点,适合个人站长和小型应用。ECS覆盖全场景,经济型e实例99元/年,通用算力型u1实例199元/年,全规格折扣低至2.5折。GPU服务器助力AI与高性能计算,按量付费低至1折,新人专享包月/包年优惠。用户可根据需求选择合适配置,享受高性价比云计算资源。
|
10月前
|
机器学习/深度学习 存储 人工智能
阿里云gpu云服务器实例gn7i、gn6i、gn6v、gn6e性能、适用场景与活动价格参考
阿里云GPU云服务器如gn7i、gn6i、gn6v和gn6e实例规格,适合不同的业务场景。gn7i适合高并发AI推理、云游戏及图形处理,gn6v专为深度学习训练和科学计算设计,gn6i则适合中等负载的AI推理和轻量级应用。2026年截至当前有包月5折、包年4折等优惠,用户可通过活动页面获取最新价格信息,并结合优惠券降低购买成本,灵活选择配置以满足不同业务需求。
2435 2
|
存储 编解码 开发者
基于STM32和OLED的小恐龙游戏项目设计与实现【免费开源】
小恐龙游戏最初是作为浏览器离线小游戏而广为人知,其简单的操作与生动的画面使其深受用户喜爱。本项目将经典的小恐龙跳跃游戏移植到嵌入式平台上,使用STM32微控制器作为核心控制器,OLED屏幕进行显示,搭配按键或触摸实现用户交互。通过本项目,既可以体验游戏开发在嵌入式系统上的实现方式,又能掌握STM32 GPIO、定时器、OLED驱动、按键扫描及简单动画实现技术。
基于STM32和OLED的小恐龙游戏项目设计与实现【免费开源】
域名备案
阿里云账号实名认证与域名实名认证可以不一致,备案针对域名实名认证。一个阿里云账号只能有一个备案主体,且主体只能在一个账号上。域名、服务器和备案主体所在账号可以不同,但可通过服务器账号生成备案服务码授权给备案主体账号进行备案。
1584 3
|
数据采集 监控 测试技术
JKI State Machine的特点与详细介绍
JKI State Machine的特点与详细介绍
1055 0
JKI State Machine的特点与详细介绍
|
Ubuntu Linux 数据安全/隐私保护
Linux系统使用Docker部署Cloudreve云盘并实现远程访问
Linux系统使用Docker部署Cloudreve云盘并实现远程访问
847 0