LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

data from sub vis

Hi

I am having trouble accessing data from sub vis. The data appears in the sub vi but not in the main vi.

Can any one tell me what is going on?

Thank you.
0 Kudos
Message 1 of 4
(2,980 Views)
How are you retreiving your data? If you require the data to be displayed on your main vi, then you have several options such as global variables, references, queues, notifiers. There are several shipping examples that will demonstrate how to use these.
The easiest way is to make your subvi pop-up whenever it is called. On your main VI, Right click on subvi, select Sub-Vi node setup, select 'Show Front Panel when called' and 'Close afterwards if originally closed'.
0 Kudos
Message 2 of 4
(2,969 Views)
If you've wired the terminals from the subVI to indicators on the main VI, the data should appear but only after the subVI is done executing. If you want to update indicators on the main while the subVI is executing, then what you need to do is pass a reference of the indicators to the subVI and in the subVI update the value property of the reference.
0 Kudos
Message 3 of 4
(2,967 Views)
Hi TUDS,

Please try to refrain from posting multiple threads on the same topic. Instead please just "Reply" to the already existing thread to add more information or to ask another question on the same topic. Further more, the Discussion Forum is filled with great helping hands such as DavidT and Dennis Knutson. However, we cannot be expected to debug an entire application (especially without much indication to where or how the error is occurring).

That being said, if you could specify your issue further and post a small VI that exemplifies the problem you are encountering, we would love to help you out!

I hope this clarifies some things,

Travis H.
Application Engineer
National Instruments
Travis H.
LabVIEW R&D
National Instruments
0 Kudos
Message 4 of 4
(2,931 Views)