ni.com is currently experiencing unexpected issues.

Some services may be unavailable at this time.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can i get rid of Backup Files?

Solved!
Go to solution

Hi,

 

whe using "Write To Measurement File" and  "Read From Measurement File" i read and save to the same file (i.e. "example.lmv"). When i run the program and the signal is saved in this file, the information is saved in the file but at the same time it creates a "backup" file; I noticed that this is caused when i use "Read From measurement file". Is there any way that i can run the program, without creating this backup files? I run the program many times a day and i dont want to fill my computer with these files every time i run it.

 

Thank you for your help,

 

Guillermo 

 

P.S: I attached an example VI and the file where the signal is saved. 

Download All
0 Kudos
Message 1 of 7
(4,130 Views)

You get a backup file because a setting in the Express VI is set to rename existing files.  Try append to file.

 

Please don't post .xlsx files to the forums.  They require special conversion tools in order to be viewed.

0 Kudos
Message 2 of 7
(4,117 Views)

I tried it but this doesnt work. Thank you. 

 

I wont post those files. It is just an excel file and didnt know it would be much of a problem. 

0 Kudos
Message 3 of 7
(4,111 Views)

In what does it not work?  Does it give any error?  Please provide some detail on what you really want it to do.

 

The .xlsx format is MS's new proprietary file format.  Why they came up with it makes no sense.  You need to have special converters to be able to open it which many people don't have or don't even want to have.

0 Kudos
Message 4 of 7
(4,096 Views)

Thanks for your help again.  The VI that i sent you was a mere example of the true program that I am working on. This program controls a motor and rotates it counter clockwise and clockwise. I can only rotate the motor a maximum of 360 degrees so i set up the program to give me an error whenever I rotate the motor 0 degrees or less and 360 degrees or greater. To do this, I write the mount of degrees desired on a file ("Write to Measurement File") and the next time i rotate the motor I use the "Read from Measurement File" to read the previous amount of degrees that i wrote and adds it to the new one and saves it again on the same file. When this number of degrees reaches 360 degrees, it gives me the a message that i have to change the direction of the motor. The issue that i want to fix is that every time i write to the file it also creates a backup file and i want to get rid of it so i dont have a new file created every time i run the program. I noticed that whenever i use a program that just writes on a file using "Write to Measurement FIle" it writes on that file, only, and  does not create a backup file. Whenever i use "Read to measuremnet file" to then write the signal in "Write to Measurement File" the backup file is created; so i came to the conclusion that is the "Read to Measurement File" that is creating this backup. Is there any other way to call a file without creating this backup file? 

 

Here i will add the three VI's so you can see what i mean. I will add the full program, and the two examples that i explained above.

 

Thank you,

 

Guillermo Naranjo. 

Download All
0 Kudos
Message 5 of 7
(4,081 Views)
Solution
Accepted by topic author Gant88

Read from Measurement file is not creating a backup file.    The Write to Measurement File is because the setting is to rename the existing file if the file already exists.

 

If you want it to just overwrite the existing file, then pick the Overwrite File setting in the properties of the Express VI.

0 Kudos
Message 6 of 7
(4,071 Views)
You were right thank you. I didnt see that option in the properties. 
0 Kudos
Message 7 of 7
(4,063 Views)