LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use ctrl val.get on a running subvi?

Solved!
Go to solution

Hello,

I'm trying to use the Ctrl Val.Get method from "Invoke Node" on a running subvi to obtain the values of some controls to display in a tab. It does obtain the control value but doesn't update as the subvi runs. This particular subvi will display some temperature readings (for now it's just connected to a random number generator for the sake of debugging). I've attached my files and I'd appreciate any help I can get. Ultimately the purpose of this exercise is to display a large number of temperature readings on many tabs with the front tab showing a little bit of summary information.

Thanks in advance,
Chad

Download All
0 Kudos
Message 1 of 4
(3,316 Views)

Your code does not make a lot of sense.

 

If you want the numeric to update at regular intervals, you need to place the ctrval.get and associated code insde the while loop, else it executes only once and never again.

 

You also should not close the reference in the upper part if you still want to use it in the lower part. Closing the reference should be done after the while loop.

 

 

0 Kudos
Message 2 of 4
(3,307 Views)
Solution
Accepted by topic author chadj

Try something like this....

 

Message 3 of 4
(3,300 Views)

Thank you! That is exactly what I want.

0 Kudos
Message 4 of 4
(3,292 Views)