LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

While Loop Help

I'm trying to simulate pump strokes and my while loops does not seem to be working. I have to stop the entire VI to update the value. I want the vi to continuously check my input value if that's possible.

 

I have attached my VI. I am also running 2010 LABView. Any suggestions on how to change my loop would be great!

 

Thank You

0 Kudos
Message 1 of 5
(2,565 Views)

(You did not attach anything and it is LabVIEW, not LABView)

 

Make sure the terminals are inside the while loop.

Message 2 of 5
(2,564 Views)
0 Kudos
Message 3 of 5
(2,509 Views)

I can't open your VI because I have LabVIEW 2009, but you might want to practice getting the spelling on "LabVIEW" down.  It is not "LABView". 

 

It stands for "Laboratory Virtual Instrument Engineering Workbench".  So that gives you an idea of where the capitalization comes from 😛

 

Source. 

 

And good luck with your While Loop pumping.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If someone helped you out, please select their post as the solution and/or give them Kudos!
Message 4 of 5
(2,500 Views)

You can use the DAQmx Write VI to change the values of your frequency and duty cycle.  I recommend using an Event Structure inside of your while loop and write on the Value Change of your controls.



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 5 of 5
(2,490 Views)