LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using x less then y causing problems

I want to use x
0 Kudos
Message 1 of 8
(3,050 Views)
Please attach your broken VI instead of a picture. The picture is unreadable.
Message 2 of 8
(3,049 Views)
I have attached the LV in 6.0.
0 Kudos
Message 3 of 8
(3,041 Views)

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.)

Message 4 of 8
(3,039 Views)
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 Kudos
Message 5 of 8
(3,034 Views)
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.
Message 6 of 8
(3,033 Views)
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 Kudos
Message 7 of 8
(3,027 Views)
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

Message 8 of 8
(3,014 Views)