LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading from spreadsheet causes error 7

Solved!
Go to solution

I'm reading from a .dat file that is constantly (not controllable) updated by another program.

Every once in a while the error window pops up, displaying error 7.

 

I guess that is when the other program is updating the file. My problem is that everytime the error message pops up the program stops until i hit continue. The read from spreadsheet function doesn't have a error output so i can't wire a clearerror.vi to it. I already disabled the automatic error handling for the vi and the block diagram but the error still pops up.

 

How can i ignore an error like that?

0 Kudos
Message 1 of 4
(2,975 Views)

Hello,

 

I used to get the same error, but in my case the VI "Open File +.vi" was missing and hence it was throwing out the error,

 

Are you running any executable of your own to collect the data?

0 Kudos
Message 2 of 4
(2,967 Views)
Solution
Accepted by eMKay
Edit the Read Lines From File subVI an remove the General Error Handler or change the type of dialog to 'No Dialog'. You'll want to give this a new name and save to a new location. Same with the top level. Adding an error out connection would also be a good idea.
0 Kudos
Message 3 of 4
(2,959 Views)

Thank you that would be a very elegant way to do it.

I figured out a shady way. I used the "check if file or folder exists.vi" and wired the True/False output to a select block. So if the file exists it selects the path of my file if it doesn't exists it selects a path to an empty textfile that is always available.

 

Your solution is way better though. Thank you.

0 Kudos
Message 4 of 4
(2,946 Views)