What is the maximal Buffer size for traditional NI-DAQ?

Hello,
I use a new NI S 6115 DAQ with four channels. The sampling rate is 10 MHz. I would like to enlarge the amount of samples, that I store in memory RAM of my PC.
Around 8300000 samples/channel I get a heap error (at configuration time).
Is this a LabView or a Windows problem?
When a trigger occurs, I read the data and store it to hard disk.
PC: 3 GHz, 1 GByte RAM. Windows 2000, LabView 7.0

Hello,
the problem is when you use a sampling rate of 10 MHz on four channels you need a memory of 80MB(10Msample x 2Byte x 4Channels). The Input FIFO only has a memory of 64MB.
That means you can only use 3 channels (60MB) with such a high sampling rate.
Regards,
Michael Sallaberger

Similar Messages

  • What is the default buffer size if we dont specify in buffer write?

    If we dont specify what is the default buffer size in BufferedWriter. How to increase/decrease the size of it?
    What is the purpose of flush?
    If flush() is not used, only partial content is written to the file. Is it because of the default size of the buffer.

    THis is the bufferedwriter class, it helps to look at them, look at the bold underlined, thats answers your defualt buffer size
    * @(#)BufferedWriter.java     1.26 03/12/19
    * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
    * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
    package java.io;
    * Write text to a character-output stream, buffering characters so as to
    * provide for the efficient writing of single characters, arrays, and strings.
    * <p> The buffer size may be specified, or the default size may be accepted.
    * The default is large enough for most purposes.
    * <p> A newLine() method is provided, which uses the platform's own notion of
    * line separator as defined by the system property <tt>line.separator</tt>.
    * Not all platforms use the newline character ('\n') to terminate lines.
    * Calling this method to terminate each output line is therefore preferred to
    * writing a newline character directly.
    * <p> In general, a Writer sends its output immediately to the underlying
    * character or byte stream. Unless prompt output is required, it is advisable
    * to wrap a BufferedWriter around any Writer whose write() operations may be
    * costly, such as FileWriters and OutputStreamWriters. For example,
    * <pre>
    * PrintWriter out
    * = new PrintWriter(new BufferedWriter(new FileWriter("foo.out")));
    * </pre>
    * will buffer the PrintWriter's output to the file. Without buffering, each
    * invocation of a print() method would cause characters to be converted into
    * bytes that would then be written immediately to the file, which can be very
    * inefficient.
    * @see PrintWriter
    * @see FileWriter
    * @see OutputStreamWriter
    * @version      1.26, 03/12/19
    * @author     Mark Reinhold
    * @since     JDK1.1
    public class BufferedWriter extends Writer {
    private Writer out;
    private char cb[];
    private int nChars, nextChar;
    private static int defaultCharBufferSize = 8192;
    * Line separator string. This is the value of the line.separator
    * property at the moment that the stream was created.
    private String lineSeparator;
    * Create a buffered character-output stream that uses a default-sized
    * output buffer.
    * @param out A Writer
    *public BufferedWriter(Writer out) {*
    *     this(out, defaultCharBufferSize);*
    * Create a new buffered character-output stream that uses an output
    * buffer of the given size.
    * @param out A Writer
    * @param sz Output-buffer size, a positive integer
    * @exception IllegalArgumentException If sz is <= 0
    public BufferedWriter(Writer out, int sz) {
         super(out);
         if (sz <= 0)
         throw new IllegalArgumentException("Buffer size <= 0");
         this.out = out;
         cb = new char[sz];
         nChars = sz;
         nextChar = 0;
         lineSeparator =     (String) java.security.AccessController.doPrivileged(
    new sun.security.action.GetPropertyAction("line.separator"));
    /** Check to make sure that the stream has not been closed */
    private void ensureOpen() throws IOException {
         if (out == null)
         throw new IOException("Stream closed");
    * Flush the output buffer to the underlying character stream, without
    * flushing the stream itself. This method is non-private only so that it
    * may be invoked by PrintStream.
    void flushBuffer() throws IOException {
         synchronized (lock) {
         ensureOpen();
         if (nextChar == 0)
              return;
         out.write(cb, 0, nextChar);
         nextChar = 0;
    * Write a single character.
    * @exception IOException If an I/O error occurs
    public void write(int c) throws IOException {
         synchronized (lock) {
         ensureOpen();
         if (nextChar >= nChars)
              flushBuffer();
         cb[nextChar++] = (char) c;
    * Our own little min method, to avoid loading java.lang.Math if we've run
    * out of file descriptors and we're trying to print a stack trace.
    private int min(int a, int b) {
         if (a < b) return a;
         return b;
    * Write a portion of an array of characters.
    * <p> Ordinarily this method stores characters from the given array into
    * this stream's buffer, flushing the buffer to the underlying stream as
    * needed. If the requested length is at least as large as the buffer,
    * however, then this method will flush the buffer and write the characters
    * directly to the underlying stream. Thus redundant
    * <code>BufferedWriter</code>s will not copy data unnecessarily.
    * @param cbuf A character array
    * @param off Offset from which to start reading characters
    * @param len Number of characters to write
    * @exception IOException If an I/O error occurs
    public void write(char cbuf[], int off, int len) throws IOException {
         synchronized (lock) {
         ensureOpen();
    if ((off < 0) || (off > cbuf.length) || (len < 0) ||
    ((off + len) > cbuf.length) || ((off + len) < 0)) {
    throw new IndexOutOfBoundsException();
    } else if (len == 0) {
    return;
         if (len >= nChars) {
              /* If the request length exceeds the size of the output buffer,
              flush the buffer and then write the data directly. In this
              way buffered streams will cascade harmlessly. */
              flushBuffer();
              out.write(cbuf, off, len);
              return;
         int b = off, t = off + len;
         while (b < t) {
              int d = min(nChars - nextChar, t - b);
              System.arraycopy(cbuf, b, cb, nextChar, d);
              b += d;
              nextChar += d;
              if (nextChar >= nChars)
              flushBuffer();
    * Write a portion of a String.
    * <p> If the value of the <tt>len</tt> parameter is negative then no
    * characters are written. This is contrary to the specification of this
    * method in the {@linkplain java.io.Writer#write(java.lang.String,int,int)
    * superclass}, which requires that an {@link IndexOutOfBoundsException} be
    * thrown.
    * @param s String to be written
    * @param off Offset from which to start reading characters
    * @param len Number of characters to be written
    * @exception IOException If an I/O error occurs
    public void write(String s, int off, int len) throws IOException {
         synchronized (lock) {
         ensureOpen();
         int b = off, t = off + len;
         while (b < t) {
              int d = min(nChars - nextChar, t - b);
              s.getChars(b, b + d, cb, nextChar);
              b += d;
              nextChar += d;
              if (nextChar >= nChars)
              flushBuffer();
    * Write a line separator. The line separator string is defined by the
    * system property <tt>line.separator</tt>, and is not necessarily a single
    * newline ('\n') character.
    * @exception IOException If an I/O error occurs
    public void newLine() throws IOException {
         write(lineSeparator);
    * Flush the stream.
    * @exception IOException If an I/O error occurs
    public void flush() throws IOException {
         synchronized (lock) {
         flushBuffer();
         out.flush();
    * Close the stream.
    * @exception IOException If an I/O error occurs
    public void close() throws IOException {
         synchronized (lock) {
         if (out == null)
              return;
         flushBuffer();
         out.close();
         out = null;
         cb = null;
    What Flush(); does
    Example, you have a file called c, your writer is b and buffereredwriter is a. so your programs calls a, a talks to b, and b talks to c. when you call the Flush method, the information is sent to the outfile which is c immediately before you even close the file, because when you write to the file, it does not write directly, it writes to a buffer, so flush actually causes the buffer to write to file. Also if you call the close method on that file without the flush, the buffer will still get flushed.
    consider BufferedWriter c = new BufferedWriter(new PrintWriter("c:\\c"));
    you wrap printwriter into a buffered writer, now if you close this "connection" to the file, the buffer will get flushed, noting that all the data is sitting in the buffered and not yet in the file, and this happens if something dont break...

  • What is the best font size for text when making a book in iBooks Author? My present font is Baskerville at 20 pt.

    What is the best font size for text when making a book in iBooks Author? My present font is Baskerville at 20 pt.

    For what audience? What reading level? Which Flesch-Kincaid index? What type of content? How much white space? What language(s)?

  • HT4818 What is the best Partition size for a windows 7 Home Premium. I'm trying to install Windows using Boot camp

    What is the best Partition size for a windows 7 Home Premium. I'm trying to install Windows using Boot camp

    Go into your system preferences and click the startup disk icon then select your Mac HD. 

  • What is the default icon size for macbook pro 13 inch?

    I have the 13 inch macbook pro, its not the retina. What is the default icon size for it? I accidently changed it on the show view options.

    The default size is not related to the Mac Model, it's related to the OS X version. For Snow Leopard it's 48x48 pixels.
    For Lion and Mountain Lion it's 64x64.
    You can choose the size that is right for you. I typically use either 32x32 or 36x36. Some prefer larger some prefer smaller. It's up to you.
    I've always found the default sizes to be too big for my taste.

  • Doing Buffered Event count by using Count Buffered Edges.vi, what is the max buffer size allowed?

    I'm currently using Count Buffered Edges.vi to do Buffered Event count with the following settings,
    Source : Internal timebase, 100Khz, 10usec for each count
    gate : use the function generator to send in a 50Hz signal(for testing purpose only). Period of 0.02sec
    the max internal buffer size that i can allocate is only about 100~300. Whenever i change both the internal buffer size and counts to read to a higher value, this vi don't seem to function well. I need to have a buffer size of at least 2000.
    1. is it possible to have a buffer size of 2000? what is the problem causing the wrong counter value?
    2. also note that the size of max internal buffer varies w
    ith the frequency of signal sent to the gate, why is this so? eg: buffer size get smaller as frequency decrease.
    3. i'll get funny response and counter value when both the internal buffer size and counts to read are not set to the same. Why is this so? is it a must to set both value the same?
    thks and best regards
    lyn

    Hi,
    I have tried the same example, and used a 100Hz signal on the gate. I increased the buffer size to 2000 and I did not get any errors. The buffer size does not get smaller when increasing the frequency of the gate signal; simply, the number of counts gets smaller when the gate frequency becomes larger. The buffer size must be able to contain the number of counts you want to read, otherwise, the VI might not function correctly.
    Regards,
    RamziH.

  • What's the sga max size for a 32bit windows server?

    Hi,
    I have a 32bit Windows Server with 16G of RAM... What is the SGA max size that I can setup?

    Depending on your version of Windows and your version of Oracle there are methods to increase the usuable memory available to Oracle including the MS \3GB and \PAE switches and the AWE memory extention feature.
    Oracle has notes on the subject:
    Windows Memory Configuration: 32-bit and 64-bit 873752.1 plus notes 46053.1 and 46001.1
    How to use Very Large Memory, higher than 4Gb on Windows 2003 32 bit #342080.1
    HTH -- Mark D Powell --

  • What's the optimum buffer size?

    Hi everyone,
    I'm having trouble with my unzipping method. The thing is when I unzip a smaller file, like something 200 kb, it unzips fine. But when it comes to large files, like something 10000 kb large, it doesn't unzip at all!
    I'm guessing it has something to do with buffer size... or does it? Could someone please explain what is wrong?
    Here's my code:
    import java.io.*;
    import java.util.zip.*;
      * Utility class with methods to zip/unzip and gzip/gunzip files.
    public class ZipGzipper {
      public static final int BUF_SIZE = 8192;
      public static final int STATUS_OK          = 0;
      public static final int STATUS_OUT_FAIL    = 1; // No output stream.
      public static final int STATUS_ZIP_FAIL    = 2; // No zipped file
      public static final int STATUS_GZIP_FAIL   = 3; // No gzipped file
      public static final int STATUS_IN_FAIL     = 4; // No input stream.
      public static final int STATUS_UNZIP_FAIL  = 5; // No decompressed zip file
      public static final int STATUS_GUNZIP_FAIL = 6; // No decompressed gzip file
      private static String fMessages [] = {
        "Operation succeeded",
        "Failed to create output stream",
        "Failed to create zipped file",
        "Failed to create gzipped file",
        "Failed to open input stream",
        "Failed to decompress zip file",
        "Failed to decompress gzip file"
        *  Unzip the files from a zip archive into the given output directory.
        *  It is assumed the archive file ends in ".zip".
      public static int unzipFile (File file_input, File dir_output) {
        // Create a buffered zip stream to the archive file input.
        ZipInputStream zip_in_stream;
        try {
          FileInputStream in = new FileInputStream (file_input);
          BufferedInputStream source = new BufferedInputStream (in);
          zip_in_stream = new ZipInputStream (source);
        catch (IOException e) {
          return STATUS_IN_FAIL;
        // Need a buffer for reading from the input file.
        byte[] input_buffer = new byte[BUF_SIZE];
        int len = 0;
        // Loop through the entries in the ZIP archive and read
        // each compressed file.
        do {
          try {
            // Need to read the ZipEntry for each file in the archive
            ZipEntry zip_entry = zip_in_stream.getNextEntry ();
            if (zip_entry == null) break;
            // Use the ZipEntry name as that of the compressed file.
            File output_file = new File (dir_output, zip_entry.getName ());
            // Create a buffered output stream.
            FileOutputStream out = new FileOutputStream (output_file);
            BufferedOutputStream destination =
              new BufferedOutputStream (out, BUF_SIZE);
            // Reading from the zip input stream will decompress the data
            // which is then written to the output file.
            while ((len = zip_in_stream.read (input_buffer, 0, BUF_SIZE)) != -1)
              destination.write (input_buffer, 0, len);
            destination.flush (); // Insure all the data  is output
            out.close ();
          catch (IOException e) {
            return STATUS_GUNZIP_FAIL;
        } while (true);// Continue reading files from the archive
        try {
          zip_in_stream.close ();
        catch (IOException e) {}
        return STATUS_OK;
      } // unzipFile
    } // ZipGzipperThanks!!!!

    Any more hints on how to fix it? I've been fiddling
    around with it for an hour..... and throwing more
    exceptions. But I'm still no closer to debugging it!
    ThanksDid you add:
    e.printStackTrace();
    to your catch blocks?
    Didn't you in that case get an exception which says something similar to:
    java.io.FileNotFoundException: C:\TEMP\test\com\blah\icon.gif (The system cannot find the path specified)
         at java.io.FileOutputStream.open(Native Method)
         at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
         at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
         at Test.unzipFile(Test.java:68)
         at Test.main(Test.java:10)Which says that the error is thrown here:
         // Create a buffered output stream.
         FileOutputStream out = new FileOutputStream(output_file);Kaj

  • What is the maximum file size for CSV that Excel can open ? (Excel 2013 64bit)

    Hello,
    Before anyone jumps in, I am not talking about the maximum worksheet size of 1048576 rows by 16384 columns.
    I have  client whom has a 1.5 Gb CSV file, 1.9, 2.6, 5, 17 and 89 Gb file (Huge).
    If I open the 1.5 Gb, the file opens (After waiting 5 minutes) and then a warning pops up that only the first 1048576 rows have loaded. That is fair enough.
    If I try and open any of the others, Excel comes up to a blank worksheet. No errors. It just seems to ignore the file I tried to open. This happens from within Excel (File - open) or from double clicking the file in explorer.
    Excel goes to this blank page almost imeadiatly. It does not even try to open the file.
    If I try with Ms Access, I get a size warning and it refuses to load the file. (At least I get a warning)
    I would have expected Excel to load at least the first 1048576 rows  (If that is what there are in the file), and give an error.
    The computer is more than capable (Xeon processors, 16 Gb ram, SSD hard disks top of the line HP Z820 power workstation).
    With the 1.5 Gb file loaded to 1048576 rows, it uses 15% ram/pagefile. CPU's hit about 5%.
    I have confirmed it is Win 7 64bit, Excel 64bit. I am fairly confident we are over the file size but without an error message, I don't know what to tell my client whom is looking to me for answers.
    I have already discussed that the 89gb file in Excel is unreasonable and they are looking at a stat's package but I need an answer on these smaller files.
    Anyone got any ides ?
    Michael Jenkin (Mickyj) www.mickyj.com (Community website) - SBS MVP (2004 - 2008) *5 times Microsoft MVP award winner *Previously MacWorld Australia contributer *Previously APAC Vice Chairman Culminis (Pro IT User group support system)* APAC chairman GITCA
    *Director Business Technology Partners, Microsoft Small Business Specialist, SMB150 2012 Member

    Hi,
    The 1,048,576 rows & 16,384 columns is the
    workbook size limitation in Excel 2013. Thus, I recommend we try the Mr. Bernie's suggestions to import the large CSV file.
    1. Use VBA to read the file line by line and split/examine the import file in sections. If you have further question about the VBA, please post your question to the MSDN forum for Excel
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=exceldev&filter=alltypes&sort=lastpostdesc
    2. Use Excel 2013 add-ins. Power Pivot and Power Query. For more detailed information, please see the below articles: 
    http://social.technet.microsoft.com/Forums/en-US/9243a533-4575-4fd6-b93a-4b95d21d9b10/table-with-more-than-1-048-576-rows-in-power-query-excel-2013?fo
    http://www.microsofttrends.com/2014/02/09/how-much-data-can-powerpivot-really-manage-how-about-122-million-records/
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Thanks
    George Zhao
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click "[email protected]"

  • What is the maximum file size for Pages?

    Hi,
    What is the maximum number of pages and maximum file size that I can have for Pages document?
    Thank you.

    chessmagnet,
    As a practicality in a large document it pays to break it up into sections in different documents with the numbering carrying on from the last one.
    Assemble the final document at the end when you need to create a T.O.C. and any hyperlinks.
    Several users have reported being unable to save very large files and other problems.
    It is a good safety measure anyway and as Yvan says it will work faster.
    Peter

  • What is the largest "manageable" size for a captivate project? (I think I've passed it)

    Problem:
    It used to take perhaps 5 minutes for the Captivate software to open and the project to actually load. Now, Captivate loads (menu screen) but the project does not open - it just sits there. When I close the software it asks if I want to save changes to my project, as if it had opened.
    Background:
    The captivate project that is roughly 260MB. This is after having copied and pasted all the slides to a new project to reduce the file size (several times) -- because of unexplainable ballooning of the file size. I am using a computer with an Intel Core 2 Duo 2.35 GHZ processor with 4GB or RAM.
    Questions:
    What is the largest manageable file size for a project?
    Is there a limit to the number of slides a project can contain (i.e., 200)?
    What can I do to get my project to actually open?
    Thanks!
    Dan

    Hi there
    Normally we advise that a Captivate project should fall into somewhere between 50-65 slides as a general upper limit. Occasionally reaching as high as 100 to *MAYBE* 120 slides. Depending on a number of factors.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • [Blackberry 8100] What are the best pic sizes for the blackberry?

      Hi, I am the proud owner of a new blackberry 8100 and I have a few questions.
      When I upload an image of 600x450 pixels to the media card, They display well, but when using the Zoom feature, the image starts to get blurry.  Now with a 600x450pixel image, I think the size would be large enough to get a closer zoom without the blurriness effect, but i'm a new user so I'm not really sure if I need a larger pixel image, or if I'm over-estimating the blackberry's Zoom feature and thinking it's a Zoom feature like Adobe's Photoshop. So what's the best recommendation for image sizes to be uploaded to the blackberry?
    Also one more question regarding the desktop Manager. I have Version 4.6.0.12  and when trying to access the Media Manger, the "Start" button is faded out, so I cannot access it.  Why is this option not available when the blackberry is plugged in as a Mass Storage device?

    The 8100 screen is 240x260 pixels.  Zooming in on the pic doesn't ever do the pic justice.
    Are you sure that Media Manager is installed?  Some installs of Desktop Manager don't include Media Manager.  If it's indeed installed, does it work if you turn off mass storage mode?
    1. Please thank those who help you by clicking the "Like" button at the bottom of the post that helped you.
    2. If your issue has been solved, please resolve it by marking the post "Solution?" which solved it for you!

  • What is the proper image size for ipad

    Hi all,
    I'm having trouble with photos on my ipad.
    First let me ask, What is the best size and dpi to display images?
    When I put a white stroke around the images i uploaded the stroke does not show on the right side of the images. So I created a white border using the "canvas size" tool in photoshop and still no border on the right side.
    Any help will be appreciated,
    Richard

    If you sync your photos with iTunes it will optimize them. Just place your photos at the full resolution in your folder (on your computer) that you are syncing and iTunes will take care of the size. My photos are all around 4000x3000 and they get reduced to 2048 on the long side. This allows you to zoom into the photo on the iPad (double tab a photo). But again, iTunes does all that for you. Just use them at full resolution.
    If you want to save space you can resize your photos to 1024 on the long side. I recommend to crop your photos at a 4x3 ratio to match the iPad screen. The DPI setting are meaningless. DPI is an arbitrary definition and has no effect on how the iPad shows your files.

  • What is the ideal Still Size for Final Cut Pro?

    I am suing stills in my Timeline. Right now they look really bad. They look great in the Viewer but they look like to crap in the Canvas and Timeline. The stills are 2896x1944.
    What's the ideal size so they will maintain the same quality in the Timeline?
    Message was edited by: Host <to clarify title>

    I am suing stills in my Timeline.
    Not sure what legal means you are using to sue your stills..who's your lawyer?
    Okay now seriously, your Canvas crap is because it's just a low res proxy. Spit out a self-contained movie and look at it in Quicktime or better yet look at it through a broadcast monitor for a more accurate representation.
    In terms of size you want to keep your total pixels to under 4000. And if you're not making moves on the stills then make them the same size as your sequence.

  • What is the max hdd size for a macbook 2.1 (late 2006)

    I have a Macbook 2.1 (late 2006). Its 80 MB HDD crashed.
    What maximum HDD capacity/size can my Macbook handle?

    Replace it with any notebook sized, 2.5", SATA I or II HDD. Presently, the largest that will fit is a 1.5 GB drive by Toshiba. You cannot install a drive that is over 9.5 mm high.
    Look for drives at OWC to get an idea of what's available and pricing. You can buy the drive you want anywhere reliable you want, so look for the best price available for the make and model you choose. Good brands are Hitachi, Seagate, Toshiba, and Samsung.

Maybe you are looking for

  • Can't fix the time on 7975 ip phone.

          I tried to fix the time on 7975 ip phone but I could not do it. What I did is on the CCA adjust the time and it changed on two other ip phones(SPA525G and SPA504G) but did not change on the 7975 and 7942 ip phone. Also on the UC540: in the tele

  • Can u please help me my iphone4 is no activating when i connect it to itunes ?

    HELP ??

  • ABAP internal table

    How can i perform check in a internal table , to check if there are records with same date and only print these records.

  • View source etc. in any site

    I  want to use Dreamweaver cs6 in web development as I can use Firefox web developer:I.e. loading a page from any Site - eg www.adobe.com - and then inspect the elements on that page, looking at the source, pick out the css relevant to that element e

  • Is a BOM always necessary?

    Hey Guru's Is it necessary to have a BOM when you use ETO? What happens if you don't? If you don't use a BOM in ETO then how do you know what to take out of the inventory? Is there a difference on how SAP uses the BOM in MTO, ETO, Disc. manu, rep. ma