LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

when is shared variable updated?

A boolean network-published shared variable "No Emergency Stop" is bound to a control and inverted in the error detection vi then passed to the operator interface vi for display via a single-process shared variable called "Alarm". Distributed System Manager verifies "No Emergency Stop" is read as true. When I run the top level vi, the operator interface vi opens and displays "Alarm" as true. This is not what I expect it to be, so I open the error detection vi while running. As soon as I open it, "Alarm" goes false. What is happening here?

 

 

0 Kudos
Message 1 of 2
(2,367 Views)

My experience with published SV's is that you have to "run the node" once before getting the expected reading out of it. I remember reading something about this as well, but I can't find it right now. I'll repost if/when I find it.

At any rate, on the last system (RT) where I had several NP SV's, I had an intialization VI which wrote and read dummy data before I read the SV in the main program. That worked for me.

Richard






Message 2 of 2
(2,356 Views)