LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

calculation using formula node needs two clicks

Solved!
Go to solution

I tried with highlight execution (I did wait for the execution to complete properly), and here's what I got.I had the same problem before.

0 Kudos
Message 11 of 14
(844 Views)

Hi prafullashahi

 

I have been checking your code using Highlight execution and what I see is that data read from Point 10 is not always catch in the event structure. Sometimes, as you said before it takes wrong data, corresponding to the before number written in the control. To understand better this I use the same numbers in every point you used in the screenshot you sent us, but I change the humber in Point 10 to "329". I made the first save of data and everything goes fine, but when I change the number of the Point 10 control to "3290" this happened.

 

 

Missmatch number.png

 

It just happens to the Point 10 in every test I made. I would continue working on it, I have tried deleting and making a new control but it does not solve the issue. 

Message 12 of 14
(809 Views)

Well, you loop doesn't iterate until you press the save button so the controls are not read until then. I would first try to change the event to value change instead of mouse down that might give the time neede to read all terminal before processing it. If this doesn't work try setting the timeout terminal to 100 ms (let the timeout case empty), by doing so the controls would be read every 100 ms.

 

Ben64

0 Kudos
Message 13 of 14
(796 Views)

I did change the event to Value change, and it seems to solve the problem for now. If the issue comes up again, I'll try using a timeout.

Thanks for your suggestion!

 

0 Kudos
Message 14 of 14
(774 Views)