LabVIEW条件结构中小于某个数而不等于这个数怎么表示?
LabVIEW条件结构中小于某个数而不等于这个数怎么表示,小于或等于0表示:..0,那小于0怎么表示?我用..0 0 0..三个表示3个函数提示出错,因为0重叠了,这个怎么解决?好像用这种表示法实现不了,只能在CASE外面再加一层来判断,先判断是否等于0,不等于0执行里面的..0和0..,因为没有了0,所以里面的界限还是很清晰的。 除了这种方法,不知道有没有其他方法解决了,你知道后也说一下,我也很想知道更简便的方法。 我看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.NoteString 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.
Obama 发表于 2017-9-26 10:03
我看labview的手册中说明都是包含了这个起始的端点的,没有说明不包含的表示方法。For each case, use the...
嗯,我新手一个,也是看帮助手册里面没提到这点,再加一个CASE看起来界面太复杂。目前还没解决办法。谢谢你的回复。
页:
[1]