LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Save a file in a very particular path - help needed

It is necessary, otherwise it will error if a directory you are trying to create already exists and everything will fall over!


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 21 of 39
(764 Views)

in which way can i handle error?

 

new dir.VI --> no error (my path didn't exist and now it's created) --> build path --> save file

new dir.VI --> error (my path existed) --> build path --> save file

 

is it correct?

 

i don't thinks so...in this way i recognize if my path existed but in my control i do the same things... i use build path VI and i save my file in it

Using LabVIEW 7.1
0 Kudos
Message 22 of 39
(758 Views)

@gigi85 wrote:

in which way can i handle error?

 

new dir.VI --> no error (my path didn't exist and now it's created) --> build path --> save file

new dir.VI --> error (my path existed) --> build path --> save file

 

is it correct?

 


Yes


 

i don't thinks so...in this way i recognize if my path existed but in my control i do the same things... i use build path VI and i save my file in it


Sorry Dont understand what you mean


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 23 of 39
(755 Views)

after NewDir VI i make the same things, if there is error or no error 🙂

Using LabVIEW 7.1
0 Kudos
Message 24 of 39
(752 Views)

So is your problem fixed?


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 25 of 39
(750 Views)

no, i make as in image but it doesn't work...

 

in this way i can't find new dir, and i can't find my file too...they didn't wasn't create 😞

 

in image i show both cases, with error and without error...

 

from datalog file name subvi i got my relative path, that i would to sum to datalog path.

Using LabVIEW 7.1
0 Kudos
Message 26 of 39
(746 Views)

Below are two screenshots which shows the true and false cases. Hope that helps

true.png

 

false.png

 


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 27 of 39
(735 Views)

if you have time could be so gentle to explain me your program? why is it done in this way? 

 

i'm trying to understand it but... 😞

Using LabVIEW 7.1
0 Kudos
Message 28 of 39
(729 Views)

Go back and look at my example.  In it you will see that I am looking for a particular error code (10).  This error code is generated when you try to make a directory that already exisits.  If you get this error, simply clear it.


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 29 of 39
(722 Views)

the icon to create folder what is?

in labview 7.1 i don't find it...what can i use? the mine one, new directory? 

Using LabVIEW 7.1
0 Kudos
Message 30 of 39
(718 Views)