Labview:编号颜色框数组

时间:2015-12-24 01:56:57

标签: arrays labview

我有一个彩盒数组,如下所示。

enter image description here

现在,我想对数组进行编号,如下图所示。

enter image description here

为了进行编号,我只是手动将文本放在数组元素上。

我想自动编号。

任何人都可以给我一个如何自动编号数组元素的解决方案吗?

提前谢谢。

2 个答案:

答案 0 :(得分:3)

我会添加2D数值数组。调整大小以使其具有颜色框的大小,使其透明并显示我想要的内容。

enter image description here

请从我的保管箱(LV 15)下载示例代码:https://www.dropbox.com/s/wevy0sgqnhgvh8p/Example%20on%20color%20box.vi?dl=0

和LV11:

https://www.dropbox.com/s/zmrg66fai8cg3w6/Example%20on%20color%20box_11.vi?dl=0

答案 1 :(得分:3)

我会使用不同的方法。 1)构建包含颜色框和透明数字指示符的集群 2)将群集放在2D阵列中 如果需要,可以创建集群的typedef。

通过这种方式,您可以轻松地在节目周围播放颜色和数字。

enter image description here

enter image description here

相关问题