LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Resetting Numeric values each time a loop executes.

I want to run a loop say 100 times.
Outside the loop I want to have a start value Numeric Control.
Inside the loop is a adjustment or a fine tune Numeric Control.
When the first loop starts the fine tune is zero.
The user adjusts the fine tune for the desired value.
After the loop completes the first run the fine tune is no longer zero.
I want the fine tune to be zero every time the loop starts.
How can I do this?
 
See attachment.
 
0 Kudos
Message 1 of 2
(2,078 Views)
Just place a single-frame flat sequence around the "start Attenuation" terminal. Inside that frame, write a zero to a local variable of "Adjustment".
 
(On a sidenote, your while loop probably needs a small wait statement, or even better an event structure, so it only spins if needed. I would also replace the FOR loop with another while loop so the program can be stopped early if desired.)
Message 2 of 2
(2,072 Views)