LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to read a same file several times in a loop?

Hi Mike

Now the whole VI can run as I want, Thank you so much!

If you have time, can you tell me why it can work well when we put the "read from a measurement file" to the outside of the "for loop" and from my side, I always think that if you want some block to run again and again, you should put it into a loop. So why we put that outside the loop, but it can run several times.

Ok when you have time, please tell me the reason.

Thank you again!

Jing

0 Kudos
Message 11 of 14
(891 Views)
Hi jing,
normally it should also work in a loop. I don´t know why there is the error. You can also use the "Read From Spreadsheet File" vi.
But in your special case, it is ok if you read the data once outside the loop, because you read everytime the same file. Smiley Happy
 
Mike
0 Kudos
Message 12 of 14
(887 Views)
Thank you Mike!
You are so nice !Smiley Very Happy
 
Jing
0 Kudos
Message 14 of 14
(880 Views)