LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Data Flow Methods Instead of Using Local/Global Variables

Is there any good documentation out there that discusses data flow methods instead of using Local or Global Variables?

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

Not at the top of my head because it really depends on what exactly you are trying to do.

 

Most of the time, the abuse of locals can be simply replaced with a wire.  Second most common reason can be solved with a shift register (to pass data from one iteration of a loop to another).  After that, you are looking into Notifiers, Queues, Action Engines, Data Value References, etc.

 

If you have a specific situation to talk to, we can offer all kinds of alternatives.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 3
(2,147 Views)

Yes, but the basic concept is simple:

 

Unlike primitive languages such as C++ or Java where execution order is defined by the order of words in a file, execution of a LV node (VI, structure, whatever) in is determined by when it gets the data it needs. Any node that has all its inputs satisfied will begin executing in parallel, regardless of where they are on the diagram, and regardless of how many of them there are.

 

Likewise any node will only output data when it finishes executing.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

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

For help with grief and grieving.
Message 3 of 3
(2,143 Views)