LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

after last iteration set output to zero

Hi,

i have some for loop with 100 iterations. i start with "i=0" and i increment it by 1 (i=++i). Thats working perfect, but i have in this loop a daq assistent wich produce output voltage, and this voltage value is 0V in first iteration and 100V in the last iteration. what i want is to set output AFTER last loop iteration again to 0V, beacuse when the application ends there's still 100V at output and that's not what i want.

thanx in advance
0 Kudos
Message 1 of 2
(2,437 Views)
Set the iterations to 101 and place a case structure in the loop. Compare the value at the iteration terminal and if it is equal 100, set the voltage to zero.

Alternatively, place another voltage update right after the loop.
0 Kudos
Message 2 of 2
(2,437 Views)