LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Data link between vi's

Every second, I would like to collect data (from some instrument) in one VI (collector.vi) and then add the point to a graph in another VI.

 

I've seen the "Dynamic Load" examples to use "Call SubVI by Reference."  However, it seems like the data is simply passed once rather than continuously updated.

 

What is the simplest / best way to update a separate window (subvi) with periodic data?

0 Kudos
Message 1 of 3
(2,368 Views)

You have a variety of choices beyond the dynamic call option you mentioned. You can also use a queues, notifiers and user events. Each has their benefits and their limitations. Check out the design patterns in the templates that ship with LV. From the file menu, select New... and in the resulting dialog, expand:

VI

From Template

Frameworks

Design Patterns

These templates show everything in one VI but the basic techniques are the same when the loops are in separate VIs. Pay particular attention to the Producer/Consumer Loop pattern.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 2 of 3
(2,355 Views)
You could pass a reference to the plot to the VI that acquires the data and use a property node to update the value (which will update the plot).
-Matt Bradley

************ kudos always appreciated, but only when deserved **************************




0 Kudos
Message 3 of 3
(2,347 Views)