LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Passing indicator values between vi%27s

Solved!
Go to solution

Hi

I'm trying to pass indicator values between two vi's but I'm not having much joy. I'm trying to use a  Bool Refnum and a property node to facilitate the exchange it doesn't seem to work. I'm sure I'm missing something simple but I can see it. Attached are two simple vi's illustrate  the issue.

 

The ultimate aim is to run a solenoid pump at around 2 Hz.

 

cheers

Download All
0 Kudos
Message 1 of 3
(2,186 Views)
Solution
Accepted by topic author Diatom

This is a classic race condition.  It is most likely that the property node will execute before the TRUE value is written to your local.  And the property node won't update again until the next iteration.  But by then the local has already been set back to FALSE.  Write directly to the property nodes instead.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 3
(2,184 Views)

Thanks Crossrluz, much appreciated!

0 Kudos
Message 3 of 3
(2,149 Views)