LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to create 1 file per second

Solved!
Go to solution

Hi,

 

I am new at LabVIEW and I found a VI example similar to my needs. But I need it to create 1 file per second with a date/time stamp going automatically to the name of the files. Is there a way to do it?

 

Thanks,

Luis

0 Kudos
Message 1 of 7
(3,403 Views)
Solution
Accepted by topic author LuisAlonso

Hi Luis,

 

surely there's a way!

 

See this:

check.png

(FormatDateTimeString is found on the Time functions palette...)

Use this filename with a BuildPath function to create a path for your next file...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 7
(3,388 Views)

Thanks GerdW!

I am still having a problem to make it save automatically without I having to press the OK button, is there a simply way to do it? I updated the attached VI with the GerdW tips

Thanks,

Luis

0 Kudos
Message 3 of 7
(3,362 Views)

Hi Luis,

 

please resave your VI for older LV versions...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 7
(3,357 Views)

Do you still have the file dialog.vi in ?

Please remember to accept any solutions and give kudos, Thanks


LV 8.6.1, LV2010,LV2011SP1, FPGA, Win7
Message 5 of 7
(3,353 Views)

I think it will work for older versions now.

 

I dont have the dialog.vi

 

Thanks,

Luis

0 Kudos
Message 6 of 7
(3,327 Views)

Hi Luis,

 

so now you create one file (and its name) once before the loop. But your goal is to create a new file each second...

 

I would try to open a new file in the loop when you want to change filenames with a regular interval...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 7 of 7
(3,325 Views)