LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 8 when trying to run a project.

Solved!
Go to solution

I'm using LabVIEW 2014 and when I try to run my project I get the following error message:

 

Error 8 occuered at Open/Create/Replace File in Write Spreadsheet String.vi->Write To Spreadsheet File(DBL).vi->Batch Kinetics.vi

 

Possible reason(s): LabView: File permission error. You do not have the correct permissions for the file.

 

When we used this project file on Labview 8.0 and older versions and the Spreadsheet files that you mentioned in the error message have never existed.

 

Any assistance with this would be greatly appreciated!

0 Kudos
Message 1 of 22
(7,346 Views)

Are you talking about a "LabVIEW project" or are you using the term generically?

 

Are you trying to open, create, or replace a file? Where is it located? Is it already open in a different application (e.g. excel, etc.). can you show us some code (batch kinetics.vi)

0 Kudos
Message 2 of 22
(7,341 Views)

Check your file path. It sound like it is pointing at the wrong place and you do not have permision to write where it is pointing.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 22
(7,331 Views)

I am talking about a LabView project. I am trying to open the file.

 

It is located in the user.lib in the LabView 2014 folder. It does not open in excel as we have the student manually input the data into excel. We have been using this project for the last 12 years without any issues.

0 Kudos
Message 4 of 22
(7,327 Views)

I have checked the path and it is located in the correct location. I have full administrator permissions for the software and computer. I've also tried running all the files as "Read-Only" and get the same error message.

0 Kudos
Message 5 of 22
(7,325 Views)

Have you tried setting the string control to "limit to single line"? (right-click)

Why are you using a string control instead of a path control?

0 Kudos
Message 6 of 22
(7,320 Views)

I do not know how to do that or what that entails. I did not write the code, it was a former co-worker that had experience in using LabVIEW.

0 Kudos
Message 7 of 22
(7,309 Views)

You simply right-click the string control and select "limit to single line". This ensures that the user cannot accidentally append an invisible return character to the file name.

 

Limit1line.png 

 

(A path control would be preferable. You can replace the string by a path control and remove the "string to path" on the diagram.)

0 Kudos
Message 8 of 22
(7,304 Views)

@KSedore wrote:

I am talking about a LabView project. I am trying to open the file.

 

It is located in the user.lib in the LabView 2014 folder. It does not open in excel as we have the student manually input the data into excel. We have been using this project for the last 12 years without any issues.


Are they saving it as a CSV file and not a Excel file?

 

Is the target file there?

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 9 of 22
(7,301 Views)

Thanks for showing me where to locate the "Limit to Single Line". I tried it and unfortunately I still get the error message when I run it.

0 Kudos
Message 10 of 22
(7,286 Views)