LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Update Front Panel Picture Control from Sub VI

Solved!
Go to solution

My main UI screen has a picture control that updates as the user interacts with it.  For example, when the user clicks a certain place on a picture control, the machine that I'm controlling goes to the location that corresponds to the click.  I use this screen to setup experiments.

 

When the user has completed the setup phase of the experiment, I want to be able to use the same picture control to update the status of the experiment (which can run indefinitely).  So I start a sub VI that runs the experiment.

 

The problem I'm having is that I don't know how to update the picture control on the main UI screen from within a sub VI.  I can't think of a way to use a reference, and network shared variables with data binding don't seem to work for my picture control (unless I'm missing something).

 

If anyone has any suggestions, I'd love to hear them.  Perhaps there's another way I could approach this that I'm just not thinking about...

 

Thanks

0 Kudos
Message 1 of 3
(3,218 Views)
Solution
Accepted by topic author Gerry_Ford

Use a control ref from the Picture and then use property node >>> Value to update the image. This images shows one example where I did this.

 

Picture_Update.PNG 

 

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
(3,209 Views)

Brilliant, Ben.  I didn't realize I could update a picture control using the value property.

 

Thanks much!

0 Kudos
Message 3 of 3
(3,195 Views)