LabVIEW色带生成功能

简介: LabVIEW色带生成功能

LabVIEW色带生成功能


在寻找一种方法来为正在制作的XControl图形创建色带。项目需要一种方法来更详细地处理色带,而不是已经是某些控件一部分的色带。在一个NI示例中发现了相关内容,并编写了一个演示程序。


功能:


ChooseColor Ramp.vi是一个顶级程序,可以交互运行,以允许用户定义适合的色带。运行VI,然后更改颜色数量,选择是否将渐变中间固定到第三种颜色(或仅用两个端点定义它),然后选择每种颜色。色带的示例如下所示。如果按下“应用”,则会将生成该色带所需的信息发送到Cluster。


执行代码的步骤:


打开“ChooseColor Ramp.vi”。


按下运行按钮。


使用各种控件来获得适合所需要的色带。


按应用完成并通过Cluster发送色带定义。

Function:


TheChoose Color Ramp.vi is a top-level program that can be run interactively toallow the user to define a color ramp suitable for his/her purpose. Run the VI, then change the number of colors,choose whether or not to pin the middle of the ramp to a third color (or justdefine it with two end-points), and choose each color. An example of the color ramp is shownbelow. If Apply is pressed, theinformation needed to generate that color ramp is sent out a cluster.


Steps toexecute code:


Open"Choose Color Ramp.vi".


Press therun button.


Play withthe various controls to arrive at a color ramp that works for your situation.


PressApply to finish and send the color ramp definition out through a cluster.


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

目录
打赏
0
0
0
0
112
分享
相关文章
LabVIEW开发LabVIEW类
LabVIEW开发LabVIEW类
126 0
LabVIEW
【7月更文挑战第6天】
171 1
LabVIEW编程LabVIEW开发 控制雷赛运动控制器SMC604A例程与相关资料
LabVIEW编程LabVIEW开发 控制雷赛运动控制器SMC604A例程与相关资料
76 0
LabVIEW减压阀和温控阀综合测试系统
LabVIEW减压阀和温控阀综合测试系统
54 1
|
10月前
|
LabVIEW开发牵引控制动态仿真器
LabVIEW开发牵引控制动态仿真器
61 2
LabVIEW开发牵引控制动态仿真器
LabVIEW设计程序框图
LabVIEW设计程序框图
89 1
LabVIEW设计程序框图
LabVIEW编程LabVIEW开发Memmert oven温箱例程与相关资料
LabVIEW编程LabVIEW开发Memmert oven温箱例程与相关资料
69 9
LabVIEW编程LabVIEW开发高级数据采集技术 同步 例程与相关资料
LabVIEW编程LabVIEW开发高级数据采集技术 同步 例程与相关资料
78 7
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等