LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting data from while loop!

Solved!
Go to solution

Dear colleagues,

 

I'm newer in Labview, and I have many doubts!


 

But now I need a help with a simple issue!

 

timer.JPG

 

I need to get a boolean status inside a while loop and set a DAQ digital output status, but as I read in this forum, is impossible to use a tunnel to do this!


 

I tried to use a LOCAL VARIABLE, but I think I don't know  how to use this!

 

Please, check the picture and help me if possible... How can I get the real time status of the boolean (saída)?

 

 

 

Thank you!

0 Kudos
Message 1 of 3
(2,310 Views)
Solution
Accepted by topic author Braglin

Use a single while loop that keeps running and place all code, including the DAQ output inside (why use seperate loops if the all run at the same rate?).

 

For better help, attach the actual VI instead of a picture. What are typical values for MP1..MP3? What is the significance of the division by one?

 

You could also write single lines after each loop, removing the data dependecy of built array, which can only proceed once all loops have stopped.

 

(I also would not use one of those weird Start case strucures. Is there a while loop around it or are you using "continuous run" mode?)

 

 

Message 2 of 3
(2,295 Views)

Hi altenbach, thank you for your help!

 

Use a single while loop that keeps running and place all code, including the DAQ output inside (why use seperate loops if the all run at the same rate?).

Yes, you right! ^^

 

For better help, attach the actual VI instead of a picture. What are typical values for MP1..MP3? What is the significance of the division by one? 

MP1 ~ MP3 are liquid quantity for a recipies! So just for test I set the value one, but I will use a pump to drain the liquid, so this constante will be changed, but I need to calculate yet!

 

 

(I also would not use one of those weird Start case strucures. Is there a while loop around it or are you using "continuous run" mode?)

In true, this is just a little part of all process of my project, so I will use this solution in other vi, with all process together! This is just for learning!

 

 

 

Now I'm working, but when I go to the university (night) I will change my VI and post the results!

Thank you!

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