ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

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,714 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
Message 2 of 3
(2,697 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,688 Views)