LabVIEW在不按Control键的情况下选择列表框中的多个项目 点击:138 | 回复:0



fjczd

    
  • 精华:0帖
  • 求助:0帖
  • 帖子:552帖 | 36回
  • 年度积分:703
  • 历史总积分:1294
  • 注册:2008年8月14日
发表于:2023-04-16 20:29:22
楼主

LabVIEW在不按Control键的情况下选择列表框中的多个项目

若要在列表框中选择多个元素,必须在选择时按住Control键。在有的场合这样操作感觉不是太方便,如果想一键选择多个,可以按照如下的方法进行。

VI中,列表框的元素只能通过单击来选择。它在事件结构中检测何时选择或从选择中删除元素,将新选择和未选择的元素添加到数组中,将其删除,并将其反映在列表框中。最后,如果按下布尔按钮,则可以获取所选元素。

                                              image.png

实现和执行方法

1.运行VI

2.随意在列表框中选择一个元素。

3.按布尔按钮验证是否已检索到所选元素。

 

Changing the Item List Colour of a Menu Ring in LabVIEW

When I click the menu ring control on the front panel, the colour of the list is always grey even if I coloured the menu ring itself another colour. Can I change the colour of the list for a menu ring to something other than grey?

It is possible to change the menu colour for all of your VIs if you step through the following procedure:

For LabVIEW 2009 and later:

From the toolbar, navigate to the Tools menu and select Options... from the drop down list.

Under Category, select Environment. On the right hand pane, scroll down and uncheck Use default colours.

Click on the colour palette under Menu Background and select your colour of choice. Click the OK button as shown below:

image.png

For LabVIEW 8.6.1 and earlier:

From the toolbar, navigate to the Tools menu and select Options... from the drop down list.

Under Category, select Colours. On the right hand pane, uncheck Use default colours.

Click on the colour palette under Menu Background and select your colour of choice. Click the OK button.

 

 

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

LabVIEW程序,如下附件所示。




楼主最近还看过


热门招聘
相关主题

官方公众号

智造工程师