LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Real Time extraction from subVIs

Hi,

I'm working on the main VI that calls multiple subVIs.  Each of these subVIs has some interesting info that I want to display in Real Time on the main VI front panel.  Normally, I would use global variables to pass data back-and-forth between VIs.  However, in this design, I have too many info for each subVIs and using global variables could be pretty hard to manage (to make the situation worse, some subVIs will also use the same variable, but locally).  What is the best way to extract RT info from the subVIs to the main VI?

thanks,
Anh
0 Kudos
Message 1 of 2
(2,327 Views)
Hi Ahn,

their are several options. If you are using only one subvi, I'd use 'user events' or a 'queue'. With several VI's  'queus' are still valid, but you need to build some logic. The easiest would be by-ref. So feed the ref of the graph/chart into the subvi and let this feed the data into the graph/chart.

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 2 of 2
(2,322 Views)