Network Shared Variable Value Not Updating Until VI Runs 2 Times

Updated May 28, 2018

Reported In

Software

  • LabVIEW

Other

LabVIEW

Issue Details

I have a network shared variable on my project and it does not update it's value until I run the VI for a second time. I write to the variable and then read it, but the value changes until I run the VI 2 times.

Solution

Check if you have buffering enabled for this variable, it may be causing the value to be stored and released until the second time the VI runs, which updates the value of the indicator to the saved value, and stores the new selected value.

Additional Information

More information on network shared variables buffering and usage can be found here: Using the LabVIEW Shared Variable

WAS THIS ARTICLE HELPFUL?

Not Helpful