From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problem feeding multiple analog physical channels into while loop

Solved!
Go to solution

Hi 

I am reading multiple analog physical channels through DAQ Assistant.

when I split the signal and feed the values to a time loop, they don't update to the current value?

Why is this a problem. The values cannot come out of the while loop. (used probe to check this). How do i achieve the task.

0 Kudos
Message 1 of 5
(1,978 Views)

I don't believe you've taken any LabVIEW tutorials.  I highly recommend you do.
LabVIEW Introduction Course - Three Hours
Learn LabVIEW

 

You missed the concept of data flow.  Data only flows out of a structure or node when all the code inside of it is finished.  Your loop never finishes because it is an infinite while loop.  Also, the corollary is that a structure or can't begin execution until it has received all of its inputs.

0 Kudos
Message 2 of 5
(1,966 Views)
Solution
Accepted by topic author siril01

Hi,

I have solved the problem using QUEUE function.

Thank You.

0 Kudos
Message 3 of 5
(1,955 Views)

I'm every curious to see how you went from the code in your first post to using queues in a span of 1.5 hours.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
Message 4 of 5
(1,940 Views)

I just looked up some examples. Seems its pretty easy.

0 Kudos
Message 5 of 5
(1,901 Views)