LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reset the For loop

Solved!
Go to solution

I am Reading a Spreadsheet File from my computer and editing it Using For loop, I have a problem when i run the program more than once i got an error

For Example I have a sheet with 50 columns
When i run the program at the first time and it works well .. at the second time i run the program, it starts to read from column 51 to 100 and actually there is no data to read in the sheet so i got an error and the program stops.
I have to change something in the VI or reopening the vi to work again

How can i reset the for loop to read from first column again ?

0 Kudos
Message 1 of 3
(2,282 Views)
Solution
Accepted by topic author El-Awny

Please post your code.  It sounds like you have an uninitialized shift register that holds the column index. 

aputman
------------------
Heads up! NI has moved LabVIEW to a mandatory SaaS subscription policy, along with a big price increase. Make your voice heard.
Message 2 of 3
(2,265 Views)

Yes, You are right.
I didn't notice that i didn't put a constant 0 wired to the shift register
Thanks  a lot.

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