LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Passing dynamic captions from program to program

Solved!
Go to solution

Hello,

 

I am trying to construct a relatively simple program to read back captions dynamically. Program1 will get the values and caption names from a secondary program called Program2 using an invoke node method. Program1 will then readback the captions and values using a property node. Ideally, I will be able to add an event structure for both programs, so that I can update the values and captions between programs.

 

The problem I am running into is that when I change the name of a caption in Program2, the updated name does not get reflected back in the first program. I know that LabVIEW cannot dynamically change a label, but I was under the impression that it was possible with captions. I'm not sure what I am doing wrong, but I can't seem to get the program to work correctly. Thanks for any feedback.

 

 The two programs are attached below.

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

Hi Newbie,

      The attached VI shows one way to obtain the captions of controls on another VI's front panel - is this what you want to do?

 

Cheers!

"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
Message 2 of 3
(2,634 Views)

Hi tbd,

 

Yes, this is exactly what I was trying to do! Thanks so much for the solution! It works perfectly. Cheers!

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