ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Writing Data to a File

 Hello Everyone,

 

How can I have my data be written to the same file for a week and then automatically start writing to a new file for the following week? How can I make it write to the same file for sometime and then automatically make it write to another file for another period of time.

 

Thank you in advance,

Corina

0 Kudos
Message 1 of 4
(2,913 Views)

I do a simillar thing all teh time but for new files every day.

 

Use the Format Date/Time String function to keep track of the week number (in my case I look at the date) and change the file when the week nimber changes.

 

I have attached a screen capture of a code snippet so you can see what I mean.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 2 of 4
(2,895 Views)

Hello Corina.. 🙂

 

    I tried something in LabVIEW 7.1... Hope you are looking for the same... 🙂

Message Edited by Rupali on 01-10-2009 04:38 AM
0 Kudos
Message 3 of 4
(2,845 Views)

Hi Corina,

you can use a function to calculate the week number from the current date. Use the calcualted number in your path and you automatically get a new path for a new week. With this you don't need to remembe/check the last used path.

 

Mike

0 Kudos
Message 4 of 4
(2,816 Views)