From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting an Error 5 message when writing to a file

Solved!
Go to solution

Running Windows 7 and getting this error 5 when trying to write to a file

It seems such a simple thing to do, I have used the write to file on other projects with no issues but

on this Win 7 machine ( and another also) it just doesn't want to play

Download All
0 Kudos
Message 1 of 7
(2,724 Views)

What does the error message say?  "File Already Open."  That tells you everything you need to know.  You still have a reference open.

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 2 of 7
(2,718 Views)

In the future do not post Powerpoint presentations for a screenshot. PowerPoint is a proprietary format. Attach a PNG, JPG, or GIF (in that order of preference). DO NOT POST BITMAPS. And do not change the filename of a bitmap to get around the ban.

0 Kudos
Message 3 of 7
(2,709 Views)

Sounds like you are trying to view the file with another program while trying to write to it.

 

Also, please post pictures as a PNG or JPG.  Viewing images in a power point or word document is annoying.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 7
(2,708 Views)

@crossrulz wrote:

Sounds like you are trying to view the file with another program while trying to write to it.

 

Also, please post pictures as a PNG or JPG.  Viewing images in a power point or word document is annoying.




 

I believe the OP pasted his screenshot into power-point.

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 5 of 7
(2,693 Views)
Solution
Accepted by Nick5405
Spoiler

The reason the file was in a .ppt was because I did a screen snapshot and had to paste it into something.

I never knew about the Powerpoint thing.

The file was not open in anything, I canged the file so it left the default location that LV puts them in to a memory stick

and that worked fine and then I made a new folder on my C drive and that worked also.

I don't understand why it wouldn't work on the default Folder but I don't really care about that anymore.

Maybe just a Win7 thing

 

0 Kudos
Message 6 of 7
(2,688 Views)

@Nick5405 wrote:
Spoiler

The reason the file was in a .ppt was because I did a screen snapshot and had to paste it into something.

I never knew about the Powerpoint thing.

The file was not open in anything, I canged the file so it left the default location that LV puts them in to a memory stick

and that worked fine and then I made a new folder on my C drive and that worked also.

I don't understand why it wouldn't work on the default Folder but I don't really care about that anymore.

Maybe just a Win7 thing

 


Is there a solution here?

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 7 of 7
(2,680 Views)