03-01-2014 07:15 PM
Buenas, soy nuevo en esto y quisiera preguntar como podria ligar un programa que tengo el cual contiene 10 productos, en este caso una taqueria, la cual quiero que se le puedan modificar los precios de los productos y que se guarden para poder ser usado por otro vi el cual dandole click a un boton contabiliza la cantidad del producto seleccionado, y un total a pagar. Necesito ayuda ya que estoy en acto desesperado :c
03-02-2014 11:25 AM
03-02-2014 03:14 PM - edited 03-02-2014 03:15 PM
As Dennis said, you have a jumble of local variables, many identical, and many directly next to their respective terminals. If you do an equal comparison of a terminal with it's own local variable, you will get an equal unless there is a random race condition. Storing the same value in a shift register and via a local variable makes no sense either.
You boolean logic seem to be completely useless. to have a value equal to itself AND equal to zero can only happen if everything is zero and there are easier ways to test for that. Why don't you connect your indicators to the code?
I won't guess on greedy loop conditions, because we don't see the entire diagram, so there could be a wait somewhere. 😉
Can you attach the actual VI? All you probably need is a while loop and a small event structure.