LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to open a subVI on a click of a button

i have a program to run a subvi from a main vi..the problem is how can i link a button click to open a subvi?

thank you

0 Kudos
Message 1 of 7
(4,205 Views)

Hi shafiesani,

there are different capabilities.

 

- You can place the subVi into your code to run it. Set the VI property to open when called.

- You can open a reference to your VI, start it with a invoke node, open it with a property node and ...

 

Hope it helps.

 

Mike

Message 2 of 7
(4,198 Views)
thx..i forget to mention that the subVi must run automatically without closing the main VI..is that possible?
0 Kudos
Message 3 of 7
(4,194 Views)

Launch the vi dynamically in to memory so that it will run in a new thread. This could be achieved in two ways,

 

1) using VI server

2) using the "Call By Reference Node"

 

1.png

Regards
Guru (CLA)
Message 4 of 7
(4,184 Views)

i made a similar diagram exactly like Guru and mike...but i keep getting this message..eventhough the VI path is correct

 

Untitled.jpg

Message Edited by shafiesani on 03-03-2010 05:56 AM
0 Kudos
Message 5 of 7
(4,171 Views)
post your code and the subvi that you wish to launch so that some one can help you out 🙂
Regards
Guru (CLA)
Message 6 of 7
(4,154 Views)
Instead of "\" have you used a "/" or have you defined the filename with some special characters?
Message Edited by muks on 03-04-2010 10:50 AM
0 Kudos
Message 7 of 7
(4,129 Views)