Discusiones sobre Productos NI

cancel
Showing results for 
Search instead for 
Did you mean: 

Operacion matematica

Highlighted

hola que tal buen dia tengo un problema ala hora de ejecutar una operacion matematica ya que cuando hago la resta de 10-8.5 el resultado aveces me lo da correcto pero aveces me arroja 1 u otro numero me pasa en algunos label tendrian alguna sugerencia que pueda ayudarme

0 Kudos
Message 1 of 5
(270 Views)

The diagram would be much more interesting to see. (My guess is race conditions due to local variable over-use).


LabVIEW Champion. It all comes together in GCentral GCentral
0 Kudos
Message 2 of 5
(262 Views)
0 Kudos
Message 3 of 5
(166 Views)

Hard to troubleshoot. Way too much duplicate code and way too many value property nodes.

 

How do you operate it (step by step instructions!), what do you expect to see, and what happens instead?


LabVIEW Champion. It all comes together in GCentral GCentral
0 Kudos
Message 4 of 5
(141 Views)

OK, you need to learn about dataflow. Having 45 instances of a value property node for a given terminal is excessive. You need exactly zero value proprty nodes (or local variables).

Use clusters of buttons for the two types of inputs.

Make the code scalable! Imagine you have 1000 different items. How would your INICIO event case look like :o! How many code changes would you need to do if the price on a single item changes? Unmanageable!

 

Here's a quick draft to give you some ideas how to implement the suggestions. Modify as needed.

 

 


LabVIEW Champion. It all comes together in GCentral GCentral
0 Kudos
Message 5 of 5
(120 Views)