From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Values not updated after case structure

I have a for loop inside a timed loop. Inside the for loop has a case structure which performs some operations. The values are not updated after the for loop. I attached the VI for reference. The image below shows where to place the probes.

Did i missed out something or was i careless??

I'm running LV2011

 

werild.png

0 Kudos
Message 1 of 4
(2,342 Views)

Sorry, i was too careless. I should have added shift register in the inner loop.

 

Cheers!

0 Kudos
Message 2 of 4
(2,335 Views)

You need a shift register on your internal while loop.  Every iteration resets it to the empty constant.

0 Kudos
Message 3 of 4
(2,334 Views)

More than that, There is a difference between "No updates" and updates with wrong values.

 

When you use a probe, you should see that the value is "not executed" if it was really not updated. In this case, the values were updated, but with default values.

 

Regards,

Olivier L. | Certified LabVIEW Developer


0 Kudos
Message 4 of 4
(2,314 Views)