LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

flip files

I am sort of new at LabVIEW and I was hoping that someone might be
able to help me.
I am trying to record information continously over a certain period of
time
(say 1 hour) and store it in a file. At the end of the hour, I want
the program to flip to a new file and continue recordig for another
hour and so on. I am not exactly sure where to start. Can anyone
give me a push on this project. Thanks
morg
0 Kudos
Message 1 of 6
(2,918 Views)
Hello morg,

you can generate the filename including the time (atleast the hours) or just append a number.
If you include the hours, then you will get new files every hour...
If you include just a number, then you need some logic circuitry to increase the number after a certain period of time.

Best regards,
Gerd
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(2,918 Views)
You may want to try something like i've attached
0 Kudos
Message 3 of 6
(2,918 Views)
GerdW wrote in message news:<506500000005000000C4350100-1066448259000@exchange.ni.com>...
> Hello morg,
>
> you can generate the filename including the time (atleast the hours)
> or just append a number.
> If you include the hours, then you will get new files every hour...
> If you include just a number, then you need some logic circuitry to
> increase the number after a certain period of time.
>
> Best regards,
> Gerd

Thanks Gerd,


It is definetly a good start. Thanks for the help, i really needed it.

Morg
0 Kudos
Message 4 of 6
(2,918 Views)
Morg914@aol.com (morg) wrote in message news:<12d6bd96.0311060828.7722ea84@posting.google.com>...
> GerdW wrote in message news:<506500000005000000C4350100-1066448259000@exchange.ni.com>...
> > Hello morg,
> >
> > you can generate the filename including the time (atleast the hours)
> > or just append a number.
> > If you include the hours, then you will get new files every hour...
> > If you include just a number, then you need some logic circuitry to
> > increase the number after a certain period of time.
> >
> > Best regards,
> > Gerd
>
> Thanks Gerd,
>
>
> It is definetly a good start. Thanks for the help, i really needed it.
>
Ok so I tried what you suggested and I understand the concept but i
cant seem to get the code strai
ght. Is there a way you could extend
the explanation or maybe send some code or something. I have to sync
the time that the new file starts with that of the computer also and I
thought i understood but the logic is not working. I just tried doing
a comparison but is that right. Like i said I am new at this and i am
not sure if i am on the right track or not. Thanks a lot. I totally
appreciate any more help
morg
> Morg
0 Kudos
Message 5 of 6
(2,918 Views)
Hello Morg,

the attached VI (LV6.1) shows how to "synchronize" filename with a predefined duration.
Hope this helps.

Best regards,
Gerd
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 6
(2,918 Views)