I'm writing a VI that updates a file whenever it is running, but on a new day a new file is created that is updated up to what a new day begins.

I wrote a VI to create and update a file as many times as necessary on any given day. Any other day, a new file is created which, from that day there will be updated every time that the VI is executed and so on. The problem is that when I run time VI, the first of a new day, that is to say when the file is created only data are written to the file and not the header data. When the file is added, the data header and regular data is successfully written to the file. Can someone tell me how to fix this? A copy of the VI that I wrote is attached.

Thank you

Chuck M.

You had written header information when it was not an existing file, and then you overwrote this file with another file consisting only of data because you wired the "add to the file? (new file:F)' the same for the two functions (F requires to create a new file).  I put the write function header in a structure of business because you only want to run when it comes to a new file (otherwise it will overwrite what's there).  Wire the straight path through the case of forgery.  I plugged a REAL data entry function to always add (because there's always a file at the time wherever the program there).

Jim

PS - a few other comments

  • Avoid structures of the sequence
  • You don't need the property node
  • Use the features of path (no chain)

Tags: NI Software

Similar Questions

Maybe you are looking for

  • can I use the external drive and a recovery partition on

    I'm doing a recovery on my internal hard drive.  The command + r keys when restarting do not bring up the recovery mode. The diskutil command terminal list, we get: wish list: diskutil / dev/disk0 (internal, physical): #: NAME SIZE TYPE IDENTIFIER 0:

  • Windows7 windows show open on the taskbar, but seem to be out of the screen-how can I get the focus?

    New Windows 7 and Firefox - icon in the taskbar, but will not display the window on the screen. When I put the cursor on the icon the little windows show which is open. It seems that the windows display is somewhere off the coast on the right side of

  • Double y axis scales - how to get the right second scale indicator

    I'm tracing the density compared to the speed and pressure compared to the speed on the same graph XY.  Field Multi-XY seemed the perfect way to do it, until I discovered there is no way to display a scale for the second y-axis (data cannot reasonabl

  • Warranty when purchased in the Canada U.S.?

    Place before the bad Board?If I buy an Acer v7-482pg-6662 (NX. MB5AA.003) from a retailer allowed Acer to the Canada warranty service will cover me USA where I live?  It's cheaper to buy it at the Canada and the United States, and I'm back much. Plea

  • G56 graphics driver

    Hello I managed to install a dual boot XP/7 on my laptop G56 106SA by slipstreaming SATA drivers, but I still have a problem with the graphics drivers.  I have an ATi Radeon HD 4250 and HP or AMD provide a XP driver. I'm stuck someone can help?