LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to display subvi string to main FP by using global variable??

Attach with my vi's here.

Any help here.

 

Thanks in advance.

 

regards,

Simon

Download All
0 Kudos
Message 1 of 4
(2,708 Views)

You could add an independent while loop in the main VI that reads the global every second (or so) and displays it in the indicator.

 

(Still, there are probably better ways to do all this ...)

0 Kudos
Message 2 of 4
(2,701 Views)

Hi,

Thanks for the reply and suggestion.

Just come across why not put the whole subvi into my main although look bit messy.

Thanks once again.

 

 

0 Kudos
Message 3 of 4
(2,688 Views)
No, it won't be messy at all if you make a nice state machine and use a single while loop for everything. You don't even need the global variables. Simply update the string terminal outside the state case.
Message 4 of 4
(2,672 Views)