Allocating enough memory to open a large data file

Hello,
I am currently running an experiment which requires me to collect data at a very high rate, creating enormous data files. At first, I ran into the problem of LabVIEW not having enough memory to save all of the data to the hard-disk at once (it seeme to have no problem with a huge array during data collection, only when it went to save it to a file), so I programmed LabVIEW to only save 100000 samples at a time. This seemed to work fine, and I was able to collect a 550MB data file in this way. However, now that I would like to analyze that data, LabVIEW can't read the data from the file into an array, giving me the same insufficient memory errors as before. My system has 3GB of memory, so in theory LabVIEW should be able to get enough to open it, however Windows doesn't seem to want to allocate what it needs. Is there any way that I can override windows and allocate enough memory to LabVIEW for it to be able to open this file and work on the data?

BrockB wrote:
The data is all in a 2xN tab-delimited array, and I'm using the 1d array output of the "read from spreadsheet" vi, as I only need the first of the two columns. What I meant to say earlier was that I would still have to read all of the data from the file first if I wanted to break it up into pieces to use later. Labview seems to get stuck on reading the data from the file, not actually on opening it. It also seems like breaking the data up would be a much bigger hassle than just allowing labview to use more of the 3GB that I have available (most of which is sitting unused anyway).
First of all, any ASCII formatted file is an extreme waste of space and comparatively expensive to write and read. It is only recommeded for small files intended to be later read by humans.
"Read from Spreadsheet file" must first internally read the entire file as a string, then chop it up looking for tab and linefeed characters, then scan the parts into DBL. If you want the first column (instead of the first row), it then also needs to transpose the entire 2D array, requiering another copy in memory. As you can see, you'll easily have quite a few data copies plugging up your RAM. ("Read/Write from/to spreadsheet file" are plain VIs. You can open their diagram to see what's in there. )
For datasets this size, you MUST use binary files. Try it and your problems will go away.
Message Edited by altenbach on 11-11-2008 12:06 PM
LabVIEW Champion . Do more with less code and in less time .

Similar Messages

  • Error Message "Not Enough Memory to Open Illustrator"

    Hi,
    Im running adobe illustrator cs5 on windows 7 and have previously had no problems. Today however when I opened a pdf I got the error message "Not enough memory to open illustrator" I have searched and cannot find a reason for this error. It now happens nearly every time I open a pdf. I increased my windows 7 virtual memory, however, this does not seem to have any effect. Any assistance would be appreciated.

    Something is blocking PDF handling (a security tool) on the system level and/or one of the shared Adobe components for PDF handling has been updated/ changed, most likely. Do the PDFs properly open in Acrobat/ Adobe Reader? Investigate these things. Also of course simply trash your AI prefs to make sure you are not a victim of tainted config data...
    Mylenium

  • ERROR! "There is not enough memory to open this scene."

    I have a file that is proving impossible to reopen.
    Whenever I open it i receive an error message that says
    "There is not enough memory to open this scene. Your document is
    not damaged and may be safely saved. To increase available memory,
    close open documents or quit and use Get Info command in the Finder
    to allocate more memory to Flash."
    I have looked all over the internet for help and although
    this seems to be a pretty popular problem, no one ever has a
    solution. Some people claim it is because of a corrupt file they
    tried to import. I don't have any files in the library of this
    document and it is all completely vector.
    I desperately need this file. Do have any ideas regarding
    what I can do? Thanks a lot.

    "thejublin" <[email protected]> wrote in
    message news:e1bumn$92n$[email protected]..
    > has anyone else ever received this error message?
    You just posted that it seems to be a popular problem. We see
    that complaint a lot, ever since MX2004 came out. Usually
    associated
    with the larger fla files.
    Once the fla is corrupted there isn't a recover tool for it
    (that I have heard of) You can start over or use a decompiler to
    recover the pieces and code from it to use on your new one.
    soThink swf decompiler can usually make a pretty good fla from a
    working swf file (but not always)
    tralfaz

  • System 7.1 "not enough memory to open program"

    Yes, I know this is not the corect place but it was the closest I could get.
    I have a Macintosh LC II running System 7.1.
    The machine has been working fine and I have not done anything new/installed.
    I attepmted to open "Making The Grade" when I get an error "There is not enough memory to open "Making The Grade 8.0g" (2,250K Needed, 2,113K available)"
    It has never done this before, When I go look at my "About This Macintosh" I see that I have 4,096K total and the Largest unused block: 2,107K. I have removed other programs and removed files from my machine and nothing helps.
    So, my question would be what other Software/settings could I use/try to help with this issue.
    Should I use the "Virtual Memory" setting and let it use disk space? I have 52M available on the drive.
    I havealready turned my Cache size down to 32K, hoping to free up space. But still the same issue.
    Also, if I do use the Virtual memory will this have a negative affect on anything else?
    Message was edited by: How_weird, Added more information.

    Hi, How -
    Welcome to Apple's Discussions.
    The issue probably stems from the fact that in order to open (run) a program, it needs sufficient contiguous memory be available for it to use, not just sufficient memory. A program can not use non-contiguous chunks of memory.
    That is why "About This Macintosh" reports the largest unused block (a 'block' is a contiguous chunk) available, rather than the raw total of unused memory.
    Often after opening some smaller programs the RAM will become fragmented. Quitting some of those apps may free up a lot of total memory, but not enough in a contiguous chunk for the needs of a large program.
    Restarting the machine clears all RAM, which is why Niel suggested doing that. After the machine has finished restarting, all memory not then in use will effectively be contiguous and available for that program. If you have any programs set to be opened (run) automatically at startup, you may wish to disable that for the duration of your need for the larger program.
    More info about fragmentation of memory (RAM) here -
    Article #TA21681 - Minimizing Memory Fragmentation
    I know this is not the corect place but it was the closest I could get.
    It's not highly obvious. On the Discussions mainpage, scroll down until you can see and click the link named "Older software products". On the Category page to which that link takes you, you will find a link for OS 7 and earlier OS's -
    http://discussions.apple.com/forum.jspa?forumID=641

  • Not enough memory to open the illustration error

    I have Adobe CS5. 
    I am running it on a laptop with 4 GB of memory.
    Windows 6.1
    but when I open the system info in the product, it says I have 3836 MB of memory.
    Only Illlustrator is loaded and I cannot open any illustrator files.  I cannot even make a blank file.
    I get the error message not enough memory to open the illustration.
    I have uninstalled and reinstalled this product and it still doesn't work.
    I tried the chat after 10 minutes of waiting for help they said they no longer support CS5 please try the phone.
    I spent 20 minutes on hold only to find out that phone support is no longer available unless I want to spend $40 for an answer.
    I am pretty angry and frustrated. 
    I have searched my computer for a /etc/launchd.conf file but I cannot find it.
    I am stuck please help.

    I have searched my computer for a /etc/launchd.conf file but I cannot find it.
    That would be Mac only.... Anyway, start by trashing the prefs in the prefs folder:
    Important Directories
    Beyond that you might consider reinstalling Adobe Reader/ Acrobat. Some of these errors are caused by damaged shared PDf components. if the machine has a specific printer installed, remove it (temporarily) and uninstall its driver. This may also help, if files have stored printer information. Likewise, check your system's color settings and color profile usage. "Bad" profiles can have all sorts of negative influence...
    Mylenium

  • Error coming - NOT ENOUGH MEMORY while opening MUS...

    Hi
    i have bought nokia 7210 supernova , error is coming NOT ENOUGH MEMORY while opening MUSIC PLAYER
    can any1 help me in ths plz

    i am using nokia 5130 Xpress music mobile.i got same problem,but i take backup file of "settings" from my friends 5130 Xpress music. i restore that backup i get music player again.
    So u people also try to get "settings" Backup file from ur friends restore that file,it may be works.............thnx.
    MODERATOR'S NOTE: We would like to inform you that we have removed your email address on this post as it is unwise to publish personal details on public forums like this for security purpose.
    S.Krishna Chaitanya Reddy

  • Not Enough memory to open the Illustration

    Hi,
    I saw in the site http://kb2.adobe.com/cps/832/cpsid_83270.html
    that below problem exist. Is that been solved. Is there any alternative way to perform the action.
    Error "Not Enough memory to open the Illustration"  when opening a placed image InDesign CS4 with Illustrator hidden
    Thanks
    Karthik B

    Firstly, you may apply free to try product, it would repair your problem illustrator file and to import it to new .ai file with saving all content. This tool is named Illustrator Repair Toolbox. Prove it for free from here: http://www.illustrator.repairtoolbox.com/
    This solution from adobe blog
    Make Illustrator visible.
    This issue appears only on Mac OS 10.6.x. The error message sometimes occurs when you drag files from the Finder to the Illustrator icon in the dock. The error can also occur when you right-click an Illustrator SmartObject in Photoshop and choose Edit Contents.
    As ultimate measure you have to upgrade your MAC OS.

  • Not enough memory to open file NOKIA 6120

    Hi !
    I have nokia 6120. I have also sandisk micro sd card (mobile premiere) with 1GB storage. I transfered a flash movie of 20Mb and another one of 11Mb into the card memory. I tryed to play it with flash player that is installed on the phone. When i select to play it from the file manager , it gives me a error: not enough memory to open file. On the phone i have 11 Mb of memory ow, but the movie is located on the sd card. I dont know why it gives me this error. I think its mean that i even cant play any of the other videos from the card ... for example a divx or avi movie !???
    Anybody have the same problem ? I hope that there is a fix for this otherwise i have a big card that I cant use for such storage.... that will be a big shame.
    Regards

    I deleted some game and gain 1MB of Ram. Yes its quite low...strange. I need to check some friend phone which have the same type. I think that more stuff installed on phone means less ram memory available, although only some of them are rally active in stand by or none of them...I asked another friend if he have the same problem. I dont know exactly what is the model of his phone, but i now he have a symbian 3rd phone s60...the first one of this s60 3rd generation. He have the same problem when talking about opening the swf videos. I think that the phone try to fill the whole movie into his ram and then play it....so it doesnt work. When opening the avi videos..using smart movie player for symbian...no problems at all. Also using the original real player works ok, but the real player that is integrated does not support avi formats. It support mp4 format and some other. The smart movie player support avi formats, divx, xvid, mp4... I chose smart movie player because it has more functionalities then nokia real player. try it.
    More info: http://www.lonelycatgames.com/?app=smartmovieMessage Edited by m4dj on 25-Nov-200709:54 PM
    Regards

  • I see message "Cannot open the file. Not enough memory to open the file"

    When I'm trying to open file from adobe.com on my tablet, I see massage " Cannot open the file. Not enough memory to open the file" . I've got 10 gb free memory , so I dont know, why...

    Which system are you running (is this information correct in your profile)?
    Are there complicating issues to this question such as you transferring libraries between computers?
    Have you upgraded iTunes recently?
    Troubleshooting iTunes installation on Mac OS X - http://support.apple.com/kb/HT2311  - read section on Opening iTunes for information about running multiple copies of iTunes.

  • Running iOS 10.6.8 on a MacBook. Suddenly Moneydance will not open my account data files. Does anyone know how I can access that information again!?

    I'm running iOS 10.6.8 on a MacBook.  Yesterday (08/15/14) a software program, Moneydance, stopped opening my account data files.  I've tried various ways of accessing them, but the software program is asking me to open an entirely new account (I only see the "Welcome" page).  I can see files in my library, but they are grayed out. I am also trying to get help from the Software manufacturer.  Could this be a software update complication?

    Contact the program developer. Unless you did something yourself, I would suspect that the program developer made some sort of change. Without knowing anything about the application, it is a guess to try to determine what happened.
    Barry

  • Large Data file problem in Oracle 8.1.7 and RedHat 6.2EE

    I've installed the RedHat 6.2EE (Enterprise
    Edition Optimized for Oracle8i) and Oracle
    EE 8.1.7. I am able to create very large file
    ( > 2GB) using standard commands, such as
    'cat', 'dd', .... However, when I create a
    large data file in Oracle, I get the
    following error messages:
    create tablespace ts datafile '/data/u1/db1/data1.dbf' size 10000M autoextend off
    extent management local autoallocate;
    create tablespace ts datafile '/data/u1/db1/data1.dbf' size 10000M autoextend off
    ERROR at line 1:
    ORA-19502: write error on file "/data/u1/db1/data1.dbf", blockno 231425
    (blocksize=8192)
    ORA-27069: skgfdisp: attempt to do I/O beyond the range of the file
    Additional information: 231425
    Additional information: 64
    Additional information: 231425
    Do anyone know what's wrong?
    Thanks
    david

    I've finally solved it!
    I downloaded the following jre from blackdown:
    jre118_v3-glibc-2.1.3-DYNMOTIF.tar.bz2
    It's the only one that seems to work (and god, have I tried them all!)
    I've no idea what the DYNMOTIF means (apart from being something to do with Motif - but you don't have to be a linux guru to work that out ;)) - but, hell, it works.
    And after sitting in front of this machine for 3 days trying to deal with Oracle's, frankly PATHETIC install, that's so full of holes and bugs, that's all I care about..
    The one bundled with Oracle 8.1.7 doesn't work with Linux redhat 6.2EE.
    Don't oracle test their software?
    Anyway I'm happy now, and I'm leaving this in case anybody else has the same problem.
    Thanks for everyone's help.

  • How do I open a "winmail.dat" file ?

    How do I open a "winmail.dat" file ?

    ".dat" is a data file. Adobe Reader can't open it.
    More info about .dat files can be found here: http://pcsupport.about.com/od/fileextensions/f/dat-file.htm

  • I am having trouble opening a large Excel file (xlsx) on my iPad3

    Do I need to purchase an app to be able to open this large Excel file?

    Of course. No computer will open a file without an appropriate program to do so.  Search the App Store for "spreadsheets" to get an idea of what software is available. Aples own "Numbers" might be considered, or "QuickOffice" or several others,

  • Possible reasons for BCP import failure? [Unable to open BCP host data-file]

    Hi,
    I have inherited a process where a bunch of tables are being prepared locally with python and puched to a database. It fails and I don't know why, though my first thought is access rights. I have admin access to the database (and server?) using SQL server
    authorisation. Here is an example BCP command being churned out by the python script:
    bcp "[TEST].[dbo].[ISP_2014_flat]" in "flat_files/ISP_2014_201504011504.csv" -U admin -P XXX! -c -t ^ -S "xxx20039999\DZUHE00999,2311"
    SQLState = S1000, NativeError = 0 Error = [Microsoft][SQL Server Native Client 10.0]Unable to open BCP host data-file
    What can I check that might be responsible for this problem?
    Thanks,
    Andrew

    Below are points that you can consider:
    I don't think you need double quotes (") around the table and filename.
    If the file is on shared folder, provide the UNC path like
    \\server\folder\file.csv and even if it is in local try providing full path
    Make sure the file is not opened by someone (if it exists already)
    If it works from SSMS and doesn't work if run via SQL Agent then Agent account must have access to the file
    You can see few examples given in BCP Utility and also you may give try using BULK INSERT too
    bcp Utility
    BULK INSERT (Transact-SQL)
    Cheers,
    Vaibhav Chaudhari
    [MCTS],
    [MCP]

  • CS2 Not enough memory when opening a file

    When I try to open a EPS file in CS, I get the Not enough memory dialog but if I open it in the trial version of CS4, it opens easily and uses half the ram compared to CS2 before it brings up the dialog. Is there a fix for this for CS2?
    Thanks
    Ryan

    Processexplorer and task manager, I have installed the update, using CS2 my machine grinds to a halt and doesnt open the image - CS2 ram usage when trying to open the image 690mb compared to cs4 trial 480mb with the image opening and barely any performance issues. Any image of 80mb seem to not open.

Maybe you are looking for

  • SPA3000 F/W 3.1.20(GW) last digit repetition within the dial plan is not working for gateway 0-4

    H/W: SPA3000 F/W: 3.1.20(GW) Problem: The last digit repetition within the dial plan is not working for gateway 0-4. Line 1 Dial Plan: (****|<#,xx.<:@gw1>|1747xxxxxxxx.<:@gw1>) Dial "17474743246#" which works for gw1. Dial "#17474743246" which also w

  • Using the NAM in a 6513 to monitor RMON on an uplink.

    I should be able to gather and monitor rmon statistics using the NAM. When I go into the NAM's monitor mode and look at port stats I get the following error message: No data available. Possible reasons: - Switch community string not configured proper

  • Avchd output to bluray

    Hi all  I read this on Adobe site "AVCHD output to Blu-ray NEW Publish content from AVCHD cameras to Blu-ray using the high-quality native camera format. By passing AVCHD content directly to disc without transcoding, Encore preserves the original fid

  • Screen is locked with itune symbol

    Screen is locked on itune symbol

  • MI default client change

    hi We have installed MI 7.0 and want to assign java part to client other than 001. There is no specific procedure given to MI like XI for changing default production client. We checked Sap Note 937323 and 940309. Kindly guide us on the following quer