取消
显示结果 
搜索替代 
您的意思是: 

Using x less then y causing problems

I want to use x
0 项奖励
1 条消息(共 8 条)
3,320 次查看
Please attach your broken VI instead of a picture. The picture is unreadable.
2 条消息(共 8 条)
3,319 次查看
I have attached the LV in 6.0.
0 项奖励
3 条消息(共 8 条)
3,311 次查看

Could you explain what this is supposed to do? It makes no sense. The output of a comparison operation is a boolean (true/false) not a number.

  • You cannot mix numbers and booleans in an array, all elements must be of the same type.
  • You can bundle a boolean and a number, but sending it to an xy graph cannot work. You cannot have a boolean x-axis!
  • Same for the cluster array.

What should happen if the velocity is larger than 20? Please explain!

(As mentioned before, please save as development distribution, not as application distribution. We already have all the vi.lib subVIs so you don't need to include them. Please also edit your llb and specify the toplevel VI.)

4 条消息(共 8 条)
3,309 次查看
If the value of the velocity is less than 20, it should proceed to the next level. If not , it waits for another value. If the next value is less than 20, then it proceeds.
0 项奖励
5 条消息(共 8 条)
3,304 次查看
I don't see any "levels" in your program, so I can only guess what you mean. Could it be that you want to finish the loop if this condition occurs? In this case you need to replace your FOR loop with a WHILE loop and feed the output of the comparison oeration to the loop condition terminal. The loop will stop if the condition is met. There is no need to feed the boolean outside the loop, it is only needed locally.
6 条消息(共 8 条)
3,303 次查看
I want to repeat the sequence 1(0,3) over and over again until I get the the value of the velocity less than 20. Once I get the value of velocity less than 20, then I want to proceed to next stage. How do I get the sequence 1(0,3) to repeat over and over again.
0 项奖励
7 条消息(共 8 条)
3,297 次查看
OK, I see. You want to repeat the code in sequence 1 of the blue little stacked sequence frame until the velocity is less than 20.
 
This is very easy with a while loop. See image (Sorry, I no longer have LabVIEW 6.0 installed).
 

Message Edited by altenbach on 08-22-2005 07:40 AM

8 条消息(共 8 条)
3,284 次查看