cancel
Showing results for 
Search instead for 
Did you mean: 

save

SOLVED
vsa
Member
Member
Solved!

save

Message contains an attachment

Hi all

I have this code that I attached it and I want to save my datas but every time I do that and saving ,the program ask me about direction of  the file but I like it does Automatically. so after I choose the saving, it saves all of data whitout aske the direction.

How can I do that?

thanks

20 REPLIES 20
df86
Member

Re: save

Message contains an attachment

Find the VI attached which represents what I think you are trying to get across.

It will show you how to build the path. Make sure you save the VI on your desktop, and you should see the folder Example appear on you desktop.

Also it doesn't do any checking to see if the path exists, so it will generate and error if the folder already exists on your desktop, you can find all of the necessary tools you need to setup a solid path building in the programming->File I/O tool pallet. I tried to keep it as simple as possible so I don't confuse you.

 

Good luck,

 

Ranjeet_Singh
Active Participant

Re: save

Why dont you use system checkmark with name automatic loggin with case structure and perform all the logging opertion inside case structure

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
vsa
Member
Member

Re: save

thanks

df86, your solution is good but I can use for first time and if I use for second time it has error and I need change the name of file.My aim is save  also   the name of file automatically like it recognize the date of computer and match the file name with that.

is it possible?

MStewart
Member
Solution

Re: save

Message contains an attachment

Yes, you can check for the existance of the folder, before trying to create it; use the date as the file name; and append the file, if it already exists.

 

I am sure you will need to tweak this, but it should give you a start.

Highlighted
vsa
Member
Member

Re: save

Message contains a hyperlink

Hi MStewart

Your code is so excellent and I changed it for my work but I have another problem. my code is work  only with 7.1 version of LV and it cannot work with another version.so when I want to change your code to mine , I cannot find some Icons like Creat Folder and ... in 7.1 version. is there any way  to use this code with this version?

Best Regards

Yamaeda
Proven Zealot

Re: save

There must be a Create folder somewhere in LV 7.1. If by some wonder it isn't, make a System Exec run "md [path]"

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
camerond
Active Participant

Re: save

Is there "Build Path"? That creates a folder in LV2012.

 

Cameron

To err is human, but to really foul it up requires a computer.
The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
Profanity is the one language all programmers know best.
An expert is someone who has made all the possible mistakes.

To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):

LabVIEW Unit 1 - Getting Started</ a>
Learn to Use LabVIEW with MyDAQ</ a>
JuDa
NI Employee (retired)

Re: save

Message contains an attachment

Que tal camerond:

 

Te pido en el futuro que generes un nuevo post para cada pregunta nueva.

 

Te adjunto un VI para revisar si existe la carpeta que pongas en un Build Path y crearla en caso de que no exista.

 

Saludos

Juan Arguello Director Support Services @NI
MStewart
Member

Re: save

Message contains a hyperlink

vsa,

 

I have not worked with 7.1 much, so I am not sure what the best practices are for file I/O in that version.  I did a search of the knowledge base and found this: Create Nested Folders, but I don't know if it addresses your specific needs.

 

Any 7.1 experts out there that could help us out?

 

Edit: Looks like JuDa offered a fix right before I posted this.  Is that what you needed?