cpubbs论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

LabVIEW+单片机学习套件全套教程资料下载[免费]LabVIEW论坛精华列表贴USB0816数据采集卡《LabVIEW宝典》
LabWindows/CVI论坛精华贴NET0816以太网数据采集卡RC0210远程设备授权系统 关闭关停锁定打开设备 户外分布式数据采集
NET1624低速高精度以太网数据采集卡WIFI0824SD无线WIFI网络数据采集卡脱机运行 SD存储 小尺寸微型 串口采集远程采集 安卓 手持移动采集 纪录仪
查看: 800|回复: 4

[labview求助] LabVIEW条件结构中小于某个数而不等于这个数怎么表示?

[复制链接]
发表于 2017-9-25 21:32:51 | 显示全部楼层 |阅读模式
LabVIEW条件结构中小于某个数而不等于这个数怎么表示,小于或等于0表示:..0,那小于0怎么表示?我用..0 0 0..三个表示3个函数提示出错,因为0重叠了,这个怎么解决?

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2017-9-26 10:01:25 | 显示全部楼层
好像用这种表示法实现不了,只能在CASE外面再加一层来判断,先判断是否等于0,不等于0执行里面的..0和0..,因为没有了0,所以里面的界限还是很清晰的。
发表于 2017-9-26 10:02:33 | 显示全部楼层
除了这种方法,不知道有没有其他方法解决了,你知道后也说一下,我也很想知道更简便的方法。
发表于 2017-9-26 10:03:26 | 显示全部楼层
我看labview的手册中说明都是包含了这个起始的端点的,没有说明不包含的表示方法。For each case, use the Labeling tool to enter a single value or lists and ranges of values in the case selector label at the top of the Case structure. For lists, use commas to separate values. For numeric ranges, specify a range as 10..20, meaning all numbers from 10 to 20 inclusively. You also can use open-ended ranges. For example, ..100 represents all numbers less than or equal to 100, and 100.. represents all numbers greater than or equal to 100. For string ranges, a range of a..c includes all strings beginning with a or b, but not c. A range of a..c,c includes the ending value of c.  Note  String ranges are case sensitive. For example, a range of A..c will behave differently than a..c because LabVIEW uses ASCII values to determine a string range.
 楼主| 发表于 2017-9-27 13:37:58 | 显示全部楼层
Obama 发表于 2017-9-26 10:03
我看labview的手册中说明都是包含了这个起始的端点的,没有说明不包含的表示方法。For each case, use the  ...

嗯,我新手一个,也是看帮助手册里面没提到这点,再加一个CASE看起来界面太复杂。目前还没解决办法。谢谢你的回复。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|cpubbs论坛. ( 粤ICP备09171248号 )

GMT+8, 2025-5-2 19:09 , Processed in 0.378623 second(s), 8 queries , Gzip On, File On.

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表