Memory issues when saving Excel

All
I recently wrote a small piece of software which is collecting data at a very high frequency and for a long time. This is the first time I am attempting to do something like this and have hit an issue with memory not being enough as the size of the Excel file increased.
Excel has a limit of about 65000 rows, but I have written only ~10000 rows when the following error showed up:
I can briefly tell you how the data acquisition loop works:
1) timed loop has a period of 1 minute.
2) there is a sequence structure in the loop.
3) first - a sub vi goes to agilent equipment and collects all the data
4) second - a sub vi processes all the data into individual arrays in preparation for writing them to the excel file
5) third - a sub vi writes all the arrays into a single Excel file (which is already open) and saves the file
6) then the timed loop checks if the condition is met for termination of the loop. If not, then it repeats steps 3, 4, 5 above.
Possible issues that may be causing the problem:
The period of 1 minute may not be enough. I checked the size of the excel file, and it is right now 23 MB at ~10000 rows. I intend to collect about 20000 rows of data over 250 hours. Now what will happen if 1 minute is not enough to save the Excel file of size 23 MB or above? I am not familiar with timed loops, but can somebody explain will I get an error similar to above if that happens?
How can I create a functionality where the timed loop "waits"  till the Excel file is saved? I basically want the timed loop to keep counting (not stop time) but wait till file is completely saved. In that case the period of timed loop cannot be fixed to 1 minute.  Because as the size of the file increases that period has to increase too.
Appreciate all the help.
Thanks in advance.

Thanks. 
I am attaching the main vi of the application where the main timed loop is located. Hopefully this will help.
Could you please elaborate about buffers?
About the data acquisition freqency : I am acquiring data every minute  - and the intentiion is to do it for 250 hours at least.
Thanks. 
Message Edited by labview_beginner on 10-31-2008 09:22 PM
Message Edited by labview_beginner on 10-31-2008 09:24 PM
Attachments:
data_recording.vi ‏472 KB

Similar Messages

  • Incompatibility issues when saving BW workbook in early excel versions

    When saving a BW workbooks to my desktop for example so that I can then send it to a user to view the report I get incompatibility issues when saving workbook to earlier excel versions.  I am currently using 2007 and when I save the workbook to Excel 97 - 2003 then I get incompatibility messages.  If I ignore these and just save then no one is able to open the workbook.  This means that I cannot also save workbooks on the reporting system as those users not using 2007 cannot view them. The message that I get is that 'the features of this workbook are not supported by the earlier features of Excel.'

    Hi,
    Please refer to this note,
    Note 1152092 - Error opening MS Excel 2007 workbook in MS Excel 2003
    Usually when you do any formatting feature available in Excel 2007 to the workbook it would throw you the error, not sure if you are formatting the workbook.
    Regards,
    Mani

  • How do I get rid of memory issue when exporting in imovie

    How do I get rid of memory issue when exporting in imovie?

    Delete the content that is filling it up. Text messages, iMessages, SMS, emails, Safari Cache; essentially all data for all of the built in apps.

  • Issues when saving?

    Hi All,
    Is anyone else having issues when saving?
    I normally save to our server and sometimes (if I've had a few heavy files open) CS6 wont save to the server 'due to a program error'. Has anyone else had this?
    This is a pretty big deal for where I work because, although I save locally, I have to have my work files on our main server as well. The easiest way is to save the file straight there once I'm ready. My fear is that CS6 may crash while saving (locally or to the server) and I'll loose the work I've done.
    Aside from that, I've been using CS6 for almost a week and I've found it quite an easy transistion from CS5 so far. Fingers crossed that it'll hold true when I work on more demanding images.
    Cheers.

    I hope you are not using work files for PSCS6beta.....(sincere) please don't. That could cost you in revenue if there's an issue,
    (it may apply) make sure you start a specific CS6beta project to test out it's features...keep all business files away until it's retail....just be safe.

  • Premiere Pro CS3-CONSTANT Memory issues when editing/rendering/exporting

    Alright, as said in the title I am currently using Adobe Premiere Pro CS3, and my issues are horrendous
    No matter what, within 10 minutes of editing, Premiere will warn and then crash because of memory issues, starting with the message:
    "Adobe Premiere Pro is running very low on system memory; please save your project and proceed with caution"
    Also, whenever I try to export this project, within 800 frames of a 7000 frame project (currently), it displays the message:
    "Error Compiling Movie", and then the previous message above if that hasn't already happened before
    And eventually, the program will crash out of nowhere, with random windows errors
    Here's my specs:
    Intel i7 920 Processor
    6 GB DDR3 RAM
    Nvidia 480 GTX
    750 watt power supply
    24" Dell Ultrasharp Monitor
    Now, I've noticed that whenever Premiere is getting close to crashing, my RAM gets up to around 4.7 GB being used, and then it crashes.
    I have already gone into Edit-Preferences and tried switching from Performance to Memory; that hasn't fixed anything
    I noticed that when I was just running my video over and over again, it stayed stable at 4 GB or so, so maybe its a rendering issue?
    I have already tried lowering my number of processes running at any given time, including my antivirus program (Kaspersky) and even explorer, but it still crashes no matter what.
    ========================================================================================== ========
    This is a SERIOUS issue for me, as even with all the normal crashes I could finish the video; but now I cannot even export my video at ALL without it crashing, and I have a plenty strong-enough computer to handle this, so what gives?
    Please help

    Ok, well this has been getting me nowhere
    I tried importing (both my CTRL-X method, and literally importing the project), and now the program won't even RENDER the footage, it just errors out at 800 frames (just like exporting)
    What is going on???
    I used to use Premiere Pro 2.0 all the time, on a separate computer, but I have 6 GB of RAM, is this really impossible???
    EDIT:
    And now, even after finally getting it to render (by saving after rendering before what crashed, and then starting it up and rendering again), all my footage looks like crap XP

  • Having a memory issue when trying to process a movie

    I am trying to process a movie using iMovie 6 (I've posted on the iMovie forum as well, but with no response so far) which has always worked fine in the past, but now I seem to be having a memory issue. The movie is 977.9 MB.  At the bottom of the iMovie is says that I have 24.4 GB available.  When I checked the information on the Secondary 120 GB Hardrive which is where the movie is saved, it also said 24.4 GB available.  However, when I process the movie, I immediately get the message "Disk Space is Running Low.  Burning this movie will require approximately 1.74 GB of disk space, which is less than you have right now."  I deleted more items and freed up more space - 32 GB (according to the movie), but it still wouldn't run.  Could it have something to do with iMovie trying to use the startup disk instead of the secondary hardrive which has more memory? Can you help me with allocating more memory so I can process this movie by Thanksgiving?  Thanks!
    Processor: 1 GHz Power PC G4
                      2 MB L3 cache
    Memory:  2 GB SD RAM
    Startup Disk:  Macintosh HD
    Secondary 120 GB Hardrive
    <Re-Titled By Host>

    Hi,
    Please implement the solution from SAP Note # 1309363.
    Regards,
    Yaniv.

  • File formatting issues when saving PDF as PPTX in Acrobat XI Pro

    Hi guys,
    I have some issues when I'm saving my PDF (initially comming from InDesign) as PPTX. The format is suddenly changing, leaving a blank zone, and some of the pages are rotated.
    Is it a problem comming from the Indesign or from the Acrobat options itself? I have already tried changing the chekboxes in the option box when I'm saving, but nothing worked.
    If someone has an idea how to fix that, i would be very grateful! Thanks in advance

    Which dot version of Acrobat XI are you currently using in your export?  Is the PDF file tagged?  If not, then you may want to tag the PDF file before exporting it.

  • Illustrator CS6 color issues when saving JPG

    I have recently gotten rid of the Pantone+ color books and replaced them with the old color books, using the "Workaround 1: Replace Pantone Plus with older Pantone color books" help from Adobe. Followed all of the instrauctions and had no issues until two weeks ago. Then suddenly when saving PDFs I had to start changing the output Color Conversion to ' convert to destination'. I never had to take this extra step before. Now if I do not do this it saves some colors as black. Whatever, I got over that and take the extra step.
    TODAY, now I can't even save JPGs without color issues. Some JPGs save correctly. Then I use the same color in a different file, and it saves completely different. Same color profiles, swatch options, blah blah blah.
    Someone help me. I am extremely fed up with these issues. Like everyone else, this is my job and now it is making a huge impact on my work...

    What program are you using to view the PDFs?

  • Out of Memory Error when Saving SequenceFile generated using API

    I am currently developing an application that creates a SequenceFile using .NET 4.0, C# (2010), Windows 7 Pro x64, Dual Core 2.5 GHz, 3.0Gb Memory.  Using the API EngineClass, I create a complete SequenceFile based on user/file inputs and then save it to disk.  When I'm done, I save using SequenceFile.Save() and then release using ReleaseSequenceFileEx().
    For smaller files, there is no problem.  For larger files, I sporadically get the following error:
    System.Runtime.InteropServices.COMException (0xFFFFBD98): Out of memory.
    When the file does save, it is ~2.8Mb.  Breaking the file up is not an option.  I am not looping, this is one shot.  I've tried shutting down VS2010 and restarting the computer.  It is still inconsistent on saving.
    I also had to set the Embed Interop Types to False per guidance from NI.  They said that it is unstable in 4.0.
    Questions
    1. Is there a file limit size to the Save() API function?
    2. Is there a workaround to using the Save()?
    Best Regards
    Solved!
    Go to Solution.

    I am using C#.NET.  I called them in my save method immediately prior to the actual test save sequence.
    GC.Collect();
    GC.WaitForPendingFinalizers();
    GC.Collect();
    GC.WaitForPendingFinalizers();
    try
           CurrentSequenceFile.Save(outputPath);
           catch (Exceptionerror)
           FireLogEvent(ParserLogType.Parsing_Error, string.Format("{0}", error));
    Factory.TSEngine.ReleaseSequenceFileEx(CurrentSequenceFile, ReleaseSeqFileOptions.ReleaseSeqFile_UnloadFile);
    Hope this helps

  • Images Issue when saving an illustrator file as pdf

    Hi,
    I have been suffering these couple of days with the pdfs I save from my illustrator CS5 multi page file. It is a brochure that I designed using many images that I adjusted in Photoshop to CMYK & 300 dpi & embedded in ai. I used some drop shadows for some images & have some transparent vectors & gradient fills in the pages.
    The pdfs I save open very normally on my pc, but the issues appear for the client. He gets some images missing in some pages (the ones that got the gradient transparency). The pages also tend not to load completely & stay blurred. He also got the “drawing error” message.
    I tried to make sure all color modes are the same_ used the US web coated SWOP (default)
    He still gets missing images!
    The same file I sent to a friend of mine, it opened normally! but informed me that Adobe considers the file with “special features”.
    I had to export the pages to jepgs so that he gets to see the design.
    I tried to flatten the gradient transparent vectors but also used the downsampling for the images when saving the pdf & used the “Zip” for compression to reduce the size… what did he get??? no images at all in all the pages.
    I started seeing pdf nighmares last night :S really.
    Please help :’(
    Thanks

    We all have Acrobat Professional reader 7.0.
    I guess he has Windows but tried to open the file from his ipad too.

  • Not enough memory message when opening excel and powerpoint

    I am running Mac OS X version 10.5.8. I installed Microsoft Office 2008 for Mac about a year ago and was running it without any trouble until about 3 months ago. I can still open Word, but receive a 'not enough memory' message when I try to open Excel or Powerpoint. Has anyone else encountered this problem and does anyone know how to fix it? Thanks

    Yes I have and I think that's when the problem occurred. I've just read another post from someone who was having the same problem. Apparently the solution is just to keep hitting the escape button every time the error message pops up and eventually the application opens! Not very high tech, but I'll give it a go and let you know how I get on.

  • Out of memory issue when executing wlappc ant task

    I am using weblogic 8.1 sp1 and doing a compilation for a little bit large EAR file using ant task. But it always throws out of memory error when the wlappc invoked the compiler to compile the jsp files.
    According to BEA's documentation<CR104610>, I put the runtimeflags with "-J-ms256m -J-mx512m" option into the wlappc tag and Ant seems recognizing this option but it didn't work. I tried every possible memory size to get rid of this problem, but the process still failed with the error message:
    The system is out of resources.
    Consult the following stack trace for details.
    java.lang.OutOfMemoryError
    - with nested exception:
    [Compilation errors : ]
    My computer has 1G memory, so it shouldn't be the hardware problem.
    Does anyone have an idea on this?
    Thanks in advance,
    Jacky

    Hi,
    Ant seems to use its own JVM and thus in the javac options during runtime,try specifying ANT java options for setting the memory parameters.
    ANT options would be memoryInitialSize and memoryMaximumSize.
    http://ant.apache.org/manual/index.html
    Hope this helps.

  • Top Link Causes out of memory issue when millions of records need to update

    Hello everyone,
    I am using TopLink 9.0.4 in a batch process. The batch process reads from the temp table(temp table has millions of records one month worth of data which need be updated). The database being used is sqlserver 2005. Below is the snippet of code. It works for 6-7 hours and crashes after that due of out of memory:
    ExpressionBuilder expressionBuilder = new ExpressionBuilder();
    Statement stmt = con.createStatement();
    ResultSet rs = st.executeQuery("Select * from database tablename where field= 'done'");
    while(rs!=null && rs.next()){
    *//where vo is the value object obtained from the rs row by row*     
    if (updateInfo(vo, user,expressionBuilder )){
                   logger.info("updated : "+ rs.getString("col_name"));
                   projCount++;
    rs.close();
    st.close();
    private boolean updateInfo(ProjectVO vo, YNUser tcUser,expressionBuilder ) {
              boolean updated;
              updated = false;
              try {
                   updated = true;
              } catch (Exception e) {
                   logger.warn("update: caused exception, "
                             + e.getMessage());
              return updated;
    Edited by: user8981696 on Jan 14, 2010 1:00 PM

    Thanks for your reply.
    Please find below the answers to you suggestions/concerns:
    You seem to be using raw JDBC to select all of the records in a single result set, not sure if this may be causing a memory issue. You could try paging through the results instead.
    Ans: I have modified the code to get me 1000 records each time and I am getting the ResultSet by using PrepartedStatement instead of regular Statement object.
    What type of caching are you using?
    Ans: No caching is being used. If you have some thoughts on caching please suggest or put some sample code. Again there is no AppServer is being used, its just a regular java process(Batch process) so I dont know how to do caching in a simple java process.
    You may also wish to try the latest 9.0.4 patch release, or try the 10.1.3 version, or the latest EclipseLink 2.0 release.
    Ans: Where can I find the latest patch release 9.0.4?
    Any help/suggestion is really appreciated!

  • Why "not enough memory" error when saving edited files?

    I've been editing photos from one folder and saving them to another, hundreds of them.  Suddenly when I tried to open Photoshop Elements 9 from the raw editor I got an error that says "could not complete the command because there is not enough memory."  I have noticed that when I go back and open a photo from the first file that I've already edited, the changes are applied to that file, even though I saved the edited file into the second folder.  What can I do?  I don't really want the photos in the first folder edited, just the ones in the second, and I don't need to store all my changes in memory.  I still have hundreds to edit.

    Is there a simple way to get back to my original RAW files in folder 1, without the edits that have been made applied to them?
    The simplest way is to change your mindset, and say ... hey, no problem, that's the way the PSE RAW editor works, I will leave things as they are.
    What could be simpler, you basically have to do nothing?
    (And by the way, I say again that your original RAWs have NOT been changed in any way).

  • Date formatting issue when sending excel file via mail

    hello People ,
    I am facing date issue .
    I have inetrnal format of date as yyyymmdd.
    I am converting it into  YYYY-MM-DD.
    CONCATENATE gs_output-end_date(4)
                        gs_output-end_date+4(2)
                        gs_output-end_date+6(2)
                        INTO lv_date_to SEPARATED BY gc_seperator. " gc_separator = '-'.
            gs_output-end_date = lv_date_to.
    I am writing this date and sending an excel file via MAIL . I get date result as MM/DD/YYYY always.
    Now if i pass in YYYY.MM.DD and used the same code where gc_separtor = '.'.
    I get output as YYYY.MM.DD.
    Can any one give me an idea why in format YYYY-MM-DD it is getting overwritten but for yyyy.mm.dd it gives me as yyyy.mm.dd?
    Regards,
    Abhi..
    Edited by: Thomas Zloch on Jul 11, 2011 2:30 PM - subject enhanced

    Thanks , Rohit ,
    I have change my date format in SU01 settings .
    It is now made to [ YYYY-MM-DD] but still '-' is replaced by MM/DD/YYYY.
    Also note that when i format in the following way
       CONCATENATE gs_output-rdadate(4)
                        gs_output-rdadate+4(2)
                        gs_output-rdadate+6(2)
                        INTO lv_rda_date.
    instead of
       CONCATENATE gs_output-rdadate(4)
                        gs_output-rdadate+4(2)
                        gs_output-rdadate+6(2)
                        INTO lv_rda_date sepearted by '-'.
    I get output as YYYYMMDD.
    Regards,
    Abhishek.

Maybe you are looking for

  • Hiding and clearing cells in WebI 4.0

    Hi guys, We are building a resourcing solutions which looks at exceptions between Timesheet data and Resourcing data, ie. the resourcing team want to be able to see that the time logged by consultants matches what is was planned by resourcing.  The W

  • Variance details

    Hi , I have executed KKS2  and got the Variances. i have configured all the variances to flow to COPA. Is there any report in SAP to view the varaiances in details like how much is towards input price and how much is towards input qty etc., Can we se

  • Help! serious memory prob

    i can't save or delete files to my creative muvo slim's internal memeory. it worked fine at first, but recently i ran into a problem. i've tried using both the mediasource organizer and windows explorer, but no matter which i use i see onscreen that

  • HT5847 Sync Services for MS Outlook 2011 for Blackberry 9790 on OSX 10.9

    please could you advise when sync services will be working successfully with blackberry handhelds 9790. Currently am running OSX Mavericks 10.9 and my BB does not sync contacts or calenders with MS Outlook 2011. Will there be an update released to re

  • Dropped My Iphone today

    I just dropped my iphone and it damaged the button onthe right upper corner on the phone (sleep/wake button). The button is depressed into the case and wont allow me to put the phone to sleep or reset when holding the home button. Does anyone know ho