LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

create automatic folder

Hi all

 

Please see this attach file ,,, I build vi ,, that create folder and file

 

I have 3 problems

1- if the folder exit an error appeared told  " Duplicate path." , how can I over take this problem

2- how can I create file without File Dialog pop out ,, as you see a file dialog appear that to where to save ,, I want to this automatically to save without this pop out.  

 

Thanks

 

0 Kudos
Message 1 of 4
(3,165 Views)
Hi elyan,

1) Always use "build path" instead of string operations to build a filepath!
2) remove the "file dialog" when you don't want that file dialog popup!
3) First you write to a file, than you read from it? What's the reason for this?
4) You create the file with "write only" access mode, but want to read from it?

The attached vi runs without any error messages for me...

Edited: I added a simple error check to the folder creation part, as the original vi only runs without error for the first call...


Message Edited by GerdW on 12-19-2007 01:29 PM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(3,154 Views)
1. Check if the path exists before trying to create the path
2. Remove the "File Dialog" function and build the file path with "Build path" and wire it to the file path connector of the Create file.

The are options in the labVIEW options menu that allow you to disabled automatic error handling by LabVIEW when the error cluster of a functin is not wired.
Regards,
André (CLA, CLED)
0 Kudos
Message 3 of 4
(3,151 Views)
thanks you
0 Kudos
Message 4 of 4
(3,150 Views)