LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Global variable update - does not work after faithfully working for 1+ year

Hi All,

 

We have a Labview program that acquires temperature and pressure. The pressure measurement is initialized to zero by a reset but which feeds the zero value to pressure when the button is pressed. This has been working perfectly for last 1+ year. The LabVIEW version is 6.1 and it is running on WIndows XP. Last week, when I returned to the lab, I found that computer is restarted (doesnt happen that often, except for some microsoft update). Eversince, the reset button seems inactive, like it doesnot feed the zero to the pressure variable. I checked the code, everything is just fine as it was. I am puzzled by this behavior. Anybody reported similar problem? or what might have caused this and how I can eliminate it.

 

Many thanks in advance,

 

Zacharia

0 Kudos
Message 1 of 3
(2,803 Views)

zacharia01 wrote:

Hi All,

 

... Anybody reported similar problem? or what might have caused this and how I can eliminate it.

 

Many thanks in advance,

 

Zacharia


It is very hard to be sure but this sounds like a race condition.

 

I wrote this Nugget on Action Engines to help people get over using global variables and expand their LabVIEW POWER.

 

Have fun!

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 2 of 3
(2,797 Views)
99.99% of all Global variables are evil; you can't trust them.  This one finally turned on you; it probably was planning it for a long time.  I just hope nobody got hurt.
Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

Message 3 of 3
(2,771 Views)