LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why do I keep getting different results for similar labview code? Can someone please please help ????

Solved!
Go to solution

The goal is to insert element into an array one at a time and CODE #1 below is able to do that without any issue when I click enter number (see attached VI).

I tried the same method for CODE #2, I am getting different results. For example whenever I enter number 2. I get 2 in all the rows continuously. The goal is to to enter number in each row only when I send signal to enter. I also attached VI and type defs for code # 2. The circled code is how I am trying to insert element one by one.

 

 

To avoid broken VI for code#2, make sure you save everything (type def) in the same folder as code#2

Thanks guys for your help!

Capture.PNG

 

 

0 Kudos
Message 1 of 3
(828 Views)
Solution
Accepted by topic author GRCK5000

If any one of those buttons is false, your state output will be "Account created Msg", which will loop back and execute the same case.  And since your buttons have latching action, it's a 100% guaranteed infinite loop.

You could have found this yourself very easily by turning on execution highlighting

paul_cardinale_0-1647988547893.png

 

"If you weren't supposed to push it, it wouldn't be a button."
Message 2 of 3
(823 Views)

Thanks Paul for the information. Nice catch. Problem is fixed.

0 Kudos
Message 3 of 3
(797 Views)