09-27-2005 03:05 AM
I have created a sub vi to use in my main code which reads information from a tag input and measures the min/max and average values of that tag as an output. The outputs are shown as indicators on the sub vi front panel and this information is being collected with no problem. However, as soon as I import my sub vi into my main code I can’t extract the values as outputs, even though the values are shown in the sub vi front panel?
Is there any particular reason outputs would show in the sub vi front panel but not in the main code front panel?
Apologies for the confusing description – I have attached an example of my code which makes it clear what the issue is. I have used a random number generator to simulate the tag input values.
Many thanks,
Stuart Wilson
09-27-2005 03:22 AM
Hello
If you want to show the subvi values in main vi front panel while subvi is running, you will have to pass references to front panel indicators to the subvi . Search "references" in labview examples to learn how to use them.
If not, the from panel indicatos will be updated when subvi stops running.
Hope it helps
Alipio
09-27-2005 03:43 AM
09-27-2005 04:00 AM
09-27-2005 04:15 AM