LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Access front panel objects from another VI

I have 2 forms and want to set values on form2 from form1.  In text world, I would do something like:
 
  form2.txtBox.text = "Hello world"
 
Is there a way in LV where I can access 1 or more controls on form2 from form1 without passing control references?  I found the "Controls[]" array, but it looks like I have to search that array to find the control I am interested in before using it.  Is there a more direct way?
-cb
 
0 Kudos
Message 1 of 5
(2,885 Views)
I guess you could always do it via globals.
0 Kudos
Message 2 of 5
(2,871 Views)
If you don't want use a control reference, then you can use the Set Control Value [Variant] method.
 
btw, LabVIEW does not have forms. LabVIEW has front panels and diagrams. VB has forms.
 

Message Edited by Dennis Knutson on 10-24-2007 02:04 PM

Message 3 of 5
(2,872 Views)
Thank you.  This is exactly what I was looking for.
-cb
0 Kudos
Message 4 of 5
(2,856 Views)
Nice one Dennis!
0 Kudos
Message 5 of 5
(2,851 Views)