LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

best way to run two processes (loops or VIs)

 


@Preetisar wrote:

 


 

Rather than use the sequence structure why not use dataflow to control the order of execution? Use the error wire or the VISA resource name to chain your three subVIs together. This will order the execution for you. 

 


I tried with dataflow... I found the speed to be more or less the same(since the code is not very big). Thanx a lot anyways.. 🙂

 


The recommendation to use dataflow as opposed to sequence structures was not due to performance but rather proper use of the language. LabVIEW is a dataflow language. As such it is using best practices to structure your code using dataflow rather than relying on sequence structures. Sequence structures are not flexible and you will end up developing bad habits using them. There are very few places where they are warranted. Learn to use the language as it was intended which is to use dataflow to control order of execution.

 



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
Message 21 of 21
(597 Views)