LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to call sub-vis with a click of a button?

hi tbob,

 

i could get the subVi run at the first time but the subVi does not update the  "random value" continuously. or does it? i use enum because i was suppose to open more than 1 subVi  at the same time.

 thanks 

0 Kudos
Message 11 of 12
(559 Views)

fmpfmpf wrote:

hi tbob,

 

i could get the subVi run at the first time but the subVi does not update the  "random value" continuously. or does it? i use enum because i was suppose to open more than 1 subVi  at the same time.

 thanks 


 

Your subvi was not written to update the random value continuously.  It was written to take in one random value and display it in an indicator.  To display continuously, your subvi would have to have a loop in it with the random generator feeding the indicator.  There is no loop in you subvi.  The random generator is in main, not in your subvi.  I will let you try to make those changes for practice.  Let me know if you have trouble.

 

Do you mean you want several choices in your enum, with each choice opening up a different subvi?  If so, then the use of an enum is OK.  You did not mention this in your original post.

 

 

- tbob

Inventor of the WORM Global
0 Kudos
Message 12 of 12
(531 Views)