Ammar Posted July 11, 2009 Report Share Posted July 11, 2009 hi does any one know how to divide long measurment excel file in day by day i have program but the all daye write in one file i need to make it in Separate file and each file take new name for example (d13m5y2009)i mean the real date plz hlpe me thanx see Attached file my project project .vi Quote Link to comment
Ammar Posted July 13, 2009 Author Report Share Posted July 13, 2009 does any one know how to divide long measurment excel file in day by day i have program but the all daye write in one file i need to make it in Separate file and each file take new name for example (d13m5y2009)i mean the real date plz hlpe me thanx Quote Link to comment
Irene_he Posted July 13, 2009 Report Share Posted July 13, 2009 does any one know how to divide long measurment excel file in day by day i have program but the all daye write in one file i need to make it in Separate file and each file take new name for example (d13m5y2009)i mean the real date plz hlpe me thanx This shouldn't be too hard to do. By using the combination of "Get Date/Time in Seconds", "Format Date/Time String" or "Seconds to Date/Time" functions in LabVIEW "Time/Dialog" pallet, you can check if a new day starts or not, so that you will close previous file and create a new one until another new day begins. File name can just use the date/time string. Hope this will help a bit. Irene Quote Link to comment
Kurt Friday Posted July 14, 2009 Report Share Posted July 14, 2009 Hi Ammar I think what you want to do can be achieved with a vi like the following. Each time the date changes a new data file is generated. 1 Quote Link to comment
Ammar Posted July 14, 2009 Author Report Share Posted July 14, 2009 thanx alot i will try it Ammar Quote Link to comment
Ammar Posted July 15, 2009 Author Report Share Posted July 15, 2009 hi i try your program but it does not work i do not know why plz can you add your program to my attached file mey be i made some mistake in some where thanx for helping me Ammar Quote Link to comment
Kurt Friday Posted July 15, 2009 Report Share Posted July 15, 2009 hi i try your program but it does not work i do not know why plz can you add your program to my attached file mey be i made some mistake in some where thanx for helping me Ammar Sure here it is, done in LV 7.1 LogDat.WriteDaily.vi Quote Link to comment
Ammar Posted July 16, 2009 Author Report Share Posted July 16, 2009 Sure here it is, done in LV 7.1 LogDat.WriteDaily.vi thanxxxxxxxx alot Ammar Quote Link to comment
Magreent Posted November 12, 2009 Report Share Posted November 12, 2009 I want to write data every minute using an example from LabView as shown. It doesn't work: the data is not being written every minute. Any help will be appreciated. Mac. LogDataWriteMinutely.vi WriteEveryMinute.tiff Quote Link to comment
Cat Posted November 12, 2009 Report Share Posted November 12, 2009 I don't have LV9, so I'm assuming your tiff is of the actual block diagram. If so... Your current code takes temperature data every 200 milliseconds, stores it to an array, and after 5000 samples (~ 17 minutes) writes that data to a file. If what you want to do is every minute take a sample and then write it to file, you need to wire a 60000 (ms) to the metronome ("Wait until next ms multiple") where the 200 is wired. Then you need to move the file writing code inside of the for/next loop. If you want the data displayed as you go along, you need to move "Temperature Graph" inside the loop, also. Check your delta-x value -- it's not going to be ".25". If you want to wait till the end to write/display, leave those parts outside of the loop, but you still need to use 60000. Also, check out the file I/O functions. There are a lot newer ones available than you're using. Cat Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.