09-12-2013 04:21 PM
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
Solved! Go to Solution.
09-12-2013 04:53 PM
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,
09-13-2013 01:05 AM
Why dont you use system checkmark with name automatic loggin with case structure and perform all the logging opertion inside case structure
09-13-2013 09:59 AM
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?
09-13-2013 04:08 PM
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.
09-24-2013 07:44 PM
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
09-25-2013 05:13 AM
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
09-25-2013 07:51 AM
Is there "Build Path"? That creates a folder in LV2012.
Cameron
09-25-2013 08:51 AM
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
09-25-2013 09:00 AM - edited 09-25-2013 09:06 AM
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?