08-08-2019 07:51 AM
Hello LabView enthusiasts,
I use multiple sensors to measure the pressure in a room. I have a task to store the measured data in a csv- file. The storage of the data and its timestamp is possible by my written program. However, I don't want to enter the file path every time I open my program (because the task is extended by 30 additional sensors and this would be quite time-consuming). For this reason I considered to create a File in a folder when starting the program, in order to save time and make the programm more efficient.
Is it possible to generate several different files with different data in a common folder?
Unfortunately I did not find a successful solution. Does anyone have an idea or a starting point how to solve this problem?
In the apendix the vi and one image of the programm with multiple sensors.
Thanks for any help!
Cheers
Jason
08-08-2019 09:16 AM
08-08-2019 11:18 AM - edited 08-08-2019 11:18 AM
Personally, I like to put Date/Time stamps in my data file names. So I can use Format Into String and Build Path functions to create the file path that I need.
08-08-2019 02:11 PM
@crossrulz wrote:
Personally, I like to put Date/Time stamps in my data file names. So I can use Format Into String and Build Path functions to create the file path that I need.
That is usually a good idea. And doing it in YY-MM-DD_HH:MM:SS format and the alphabetical sorting of the filenames will also coincide with chronological ordering.
11-06-2019 04:40 AM
Hey Gerd,
unfortunetaly I have Labview 2013 which doesn t support the "Create File with Incrementing Suffix" Vi. Can I program it by myself or is it even possible??
Cheers
Jason
11-06-2019 04:53 AM
Hi Jason,
@J_Print wrote:unfortunetaly I have Labview 2013 which doesn t support the "Create File with Incrementing Suffix" Vi. Can I program it by myself or is it even possible??
Yes, you can program it for yourself!
11-06-2019 07:49 AM - edited 11-06-2019 07:50 AM
@RavensFan wrote:
@crossrulz wrote:
Personally, I like to put Date/Time stamps in my data file names. So I can use Format Into String and Build Path functions to create the file path that I need.
That is usually a good idea. And doing it in YY-MM-DD_HH:MM:SS format and the alphabetical sorting of the filenames will also coincide with chronological ordering.
Just to close this loop...
I actually tend to use YYYY-MM-DD HH-MM-SS format. Y2k (and Y3k) compliant! It also makes it very obvious what is the year. And, yes, the sorting is a bonus. Here is a somewhat typical way I will create a log/report file path.