How not to realocate memory in a "buffer write" loop

Hello,
i posted this also in the DIO board, but maybe this is specifically a Labview problem:
my application requires sending data to all 4 ports of a DIO 32HS at a 2MHz rate, for an undefined length of time.
preparing a bit less than the maximum buffer size (about 64MB /4 it seems) and setting the Buffer control to "reserve", i then begin to send information in arrays of 4 words to the "buffer Write", while cycling trough the buffer. after some initial buffer loading time ( about a second worth of timed output), i begin the output operation with DIO start.
my data being prepared online, i cant use a double buffer configuration (half buffer size being recreated and reloaded), because my application typically stops creating output words in the middle of such half buffer size, leaving the rest of the array full of null values, affecting my output applications.
However "Buffer write" reallocate memory each time a 4-bytes array is sent to it. therefore sending out 10ms worth of data takes 500ms, sending 100ms takes 5seconds!! this makes it impossible to actually prepare online the data to be sent out. by preparing the full length array in advance, the windows limitation of ~16Mwords then limits my output application to max ~8 seconds only.
Is there any way to avoid memory reallocation on calling the Buffer Write? what are actually the elements the dll requires?
i am using traditional NI-DAQ and Labview 7.1 or 8.2.
Thanks for any help on the subject.
... And here's where I keep assorted lengths of wires...

Hello Kevin,
Thanks for your answer.
attached is some test code (not very clean but should be understandable):
two elements are sent with a time lag of 100ms, during which frame 2 creates a null array of 4 words for about 200000 times (filling the time lag)
the four words are : 16 bits value, channel value 8Bit, and a 2 bit strobe (10 or 11) on port 4.
in this test, i let fill the buffer for this time, check how much time it took, and only after that allow execution out.
the idea of the final code will be to send an undefined nb of elements at various time intervals, to fill the buffer online (regeneratively hopefully) as the execution is taking place. it would be possible if "buffer write" would be fast enough, and i would avoid creating big chuncks of memory , as well as saving on the overall run time (calculation + output execution would be almost parallel, with a short time lag).
if it works, i would just need to introduce some wait commands if buffer filling is faster than execution.
i think the main problem right now is that when i call "buffer write" it realocates memory for its array.
Tell me what you think.
... And here's where I keep assorted lengths of wires...
Attachments:
channels definition and pattern execution test x.vi ‏76 KB

Similar Messages

  • Hello,  I want to know how to clear the memory or buffer cash from my mac book?

    Hello,  I want to know how to clear the memory or buffer cash from my mac book? When I look at the series, it puts more and more time to load. Thank you.
    Sorry for my english, i talk french.

    Ok ce n'est pas le problème alors.
    Boot à partir de votre disque d'installation et de lancerl'utilitaire de disque. Le disque de démarrage peut être nécessaire de réparation.
    Using Disk Utility to verify or repair disks
    Ok that's not the problem then.
    Boot from your install disc and run Disk Utility. The startup disk may need repairing.

  • How do you change the drive that my Iphone backs-up to on my computer?  My first attempt to back-up and i received a pop-up stating that I do not have sufficient memory/space, knowing that I have over 120GB of free space...any ideas? thanks

    How do you change the drive that my Iphone backs-up to on my computer?  My first attempt to back-up and i received a pop-up stating that I do not have sufficient memory/space, knowing that I have over 120GB of free space...any ideas? thanks

    dave0915,
    iTunes stores your iPhone backups in the Library folder in your Home folder.
    iTunes places the backup files in these places:
    Mac: ~/Library/Application Support/MobileSync/Backup/
    Create and delete iPhone, iPad, and iPod touch backups in iTunes
    http://support.apple.com/en-us/HT4946
    Regards,
    Allen

  • When trying to download yosemite it sais that i do not have enough memory. when i look at my memory use it shows that 111.00gb of space is used by movies but when i go th the movie folder it is empty. how can i remove the non existant movies.

    when trying to download yosemite it sais that i do not have enough memory. when i look at my memory use it shows that 111.00gb of space is used by movies but when i go th the movie folder it is empty. how can i remove the non existant movies.

    Freeing Up Space on The Hard Drive
      1. See Lion/Mountain Lion/Mavericks' Storage Display.
      2. You can remove data from your Home folder except for the /Home/Library/ folder.
      3. Visit The XLab FAQs and read the FAQ on freeing up space on your hard drive.
      4. Also see Freeing space on your Mac OS X startup disk.
      5. See Where did my Disk Space go?.
      6. See The Storage Display.
    You must Empty the Trash in order to recover the space they occupied on the hard drive.
    You should consider replacing the drive with a larger one. Check out OWC for drives, tutorials, and toolkits.
    Try using OmniDiskSweeper 1.8 or GrandPerspective to search your drive for large files and where they are located.
    You will need a minimum of 10-12 GBs of free space to install Yosemite, however, that is a bare minimum and should be at least twice that amount.

  • HELP: How do I print a photograph from my computer (not from a memory card) with photo quality ?

    HP6510 print-scan-copy-web (All-in-one) ePrint wireless
    Mac OS X 10 6.8
    How do I print a photograph from my computer (not from a memory card) with photo quality ? 
    Is there a software that enables me to let the printer know that what I am sending to print is a photograph and not, for example, a document?
    I sent a photograph to print from I-Photo and from Photoshop and the printer prints it like a document, that is to say, quickly and with very poor quality...for what is a PHOTOGRAPH.
    I bought my print yesterday in Spain and Monday I must turn in a printing job at work. Pleas help. (Today is already Saturday.)
    Thanks

    In OSX when you go to file and print you will usually get a window that pops up with print settings.
    In 10.6 it may only show you the printer to use, and the preset to use, but you can click the square to the right of that with a triangle in it to view more options.
    From here there is a drop down for paper type/quality, where you can select photo paper, and a higher quality, then go to print.
    The following link will actually show screenshots of these settings and how to navigate them:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01662562&tmp_task=useCategory&cc=us&dlc=en&lang...
    Jon-W
    I work on behalf of HP
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    Click the KUDOS STAR on the left to say “Thanks” for helping!

  • How to recover notes in phone memory after hard re...

    Anyone please help me to recover my NOTES written in my NOKIA N97 as I've loist them cuz I  had to hard reset my mobile due to Start up failed contact retailer error was originated and it hanged my phone and I was unable to create backup of notes and after hard reset all of those precious notes i.e my articles for journals ,poetry and scripts etcs were deleted So please help me ! and tell me the way to recover phone memory  or even only those notes ! Data recovery software are deigned for PC's so when phone is connected to PC software detects the MASS storage but not the phone memory's help!
    -Regards
    SmQ

    Recuva is one memory card app that recovers data .
    http://www.piriform.com/recuva
    But its not going to see the C drive on the phone that you have overwritten  i guess .
     recious notes i.e my articles for journals ,poetry and scripts etcs
    Should be backed up always  be it phone or pc they are on  .
        jje

  • ORA-00385: cannot enable Very Large Memory with new buffer cache 11.2.0.2

    [oracle@bnl11237dat01][DWH11]$ sqlplus / as sysdba
    SQL*Plus: Release 11.2.0.2.0 Production on Mon Jun 20 09:19:49 2011
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    Connected to an idle instance.
    SQL> startup mount pfile=/u01/app/oracle/product/11.2.0/dbhome_1/dbs//initDWH11.ora
    ORA-00385: cannot enable Very Large Memory with new buffer cache parameters
    DWH12.__large_pool_size=16777216
    DWH11.__large_pool_size=16777216
    DWH11.__oracle_base='/u01/app/oracle'#ORACLE_BASE set from environment
    DWH12.__pga_aggregate_target=2902458368
    DWH11.__pga_aggregate_target=2902458368
    DWH12.__sga_target=4328521728
    DWH11.__sga_target=4328521728
    DWH12.__shared_io_pool_size=0
    DWH11.__shared_io_pool_size=0
    DWH12.__shared_pool_size=956301312
    DWH11.__shared_pool_size=956301312
    DWH12.__streams_pool_size=0
    DWH11.__streams_pool_size=134217728
    #*._realfree_heap_pagesize_hint=262144
    #*._use_realfree_heap=TRUE
    *.audit_file_dest='/u01/app/oracle/admin/DWH/adump'
    *.audit_trail='db'
    *.cluster_database=true
    *.compatible='11.2.0.0.0'
    *.control_files='/dborafiles/mdm_bn/dwh/oradata01/DWH/control01.ctl','/dborafiles/mdm_bn/dwh/orareco/DWH/control02.ctl'
    *.db_block_size=8192
    *.db_domain=''
    *.db_name='DWH'
    *.db_recovery_file_dest='/dborafiles/mdm_bn/dwh/orareco'
    *.db_recovery_file_dest_size=7373586432
    *.diagnostic_dest='/u01/app/oracle'
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=DWH1XDB)'
    DWH12.instance_number=2
    DWH11.instance_number=1
    DWH11.local_listener='(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=bnl11237dat01-vip)(PORT=1521))))'
    DWH12.local_listener='(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=bnl11237dat02-vip)(PORT=1521))))'
    *.log_archive_dest_1='LOCATION=/dborafiles/mdm_bn/dwh/oraarch'
    *.log_archive_format='DWH_%t_%s_%r.arc'
    #*.memory_max_target=7226785792
    *.memory_target=7226785792
    *.open_cursors=1000
    *.processes=500
    *.remote_listener='LISTENERS_SCAN'
    *.remote_login_passwordfile='exclusive'
    *.sessions=555
    DWH12.thread=2
    DWH11.thread=1
    DWH12.undo_tablespace='UNDOTBS2'
    DWH11.undo_tablespace='UNDOTBS1'
    SPFILE='/dborafiles/mdm_bn/dwh/oradata01/DWH/spfileDWH1.ora' # line added by Agent
    [oracle@bnl11237dat01][DWH11]$ cat /etc/sysctl.conf
    # Kernel sysctl configuration file for Red Hat Linux
    # For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and
    # sysctl.conf(5) for more details.
    # Controls IP packet forwarding
    net.ipv4.ip_forward = 0
    # Controls source route verification
    net.ipv4.conf.default.rp_filter = 1
    # Do not accept source routing
    net.ipv4.conf.default.accept_source_route = 0
    # Controls the System Request debugging functionality of the kernel
    kernel.sysrq = 0
    # Controls whether core dumps will append the PID to the core filename
    # Useful for debugging multi-threaded applications
    kernel.core_uses_pid = 1
    # Controls the use of TCP syncookies
    net.ipv4.tcp_syncookies = 1
    # Controls the maximum size of a message, in bytes
    kernel.msgmnb = 65536
    # Controls the default maxmimum size of a mesage queue
    kernel.msgmax = 65536
    # Controls the maximum shared segment size, in bytes
    kernel.shmmax = 68719476736
    # Controls the maximum number of shared memory segments, in pages
    #kernel.shmall = 4294967296
    kernel.shmall = 8250344
    # Oracle kernel parameters
    fs.aio-max-nr = 1048576
    fs.file-max = 6815744
    kernel.shmmni = 4096
    kernel.sem = 250 32000 100 128
    kernel.shmmax = 536870912
    net.ipv4.ip_local_port_range = 9000 65500
    net.core.rmem_default = 262144
    net.core.rmem_max = 4194304
    net.core.wmem_default = 262144
    net.core.wmem_max = 1048586
    net.ipv4.tcp_wmem = 262144 262144 262144
    net.ipv4.tcp_rmem = 4194304 4194304 4194304
    Please can I know how to resolve this error.

    CAUSE: User specified one or more of { db_cache_size , db_recycle_cache_size, db_keep_cache_size, db_nk_cache_size (where n is one of 2,4,8,16,32) } AND use_indirect_data_buffers is set to TRUE. This is illegal.
    ACTION: Very Large Memory can only be enabled with the old (pre-Oracle_8.2) parameters

  • Export memory using shared buffer

    Hi
    Lets say a user opens the PO screen ME22N in 2 separate windows accessing 2 separate PO numbers. If  i use the export memory using shared buffer , how can i ensure that the data will not get mixed up ?
    Any ideas?

    YOu would have to get the session id to distinguish between the two.  You can then use this id as part of your key to pass to the export statement.
    Check this thread.
    Quickest way to retrieve modeinfo[n],context_id_uuid from an ABAP pgm
    Regards,
    RIch Heilman

  • Memory overflow in buffer synchronization in sm21

    HI ,
    Iam getting memory overflow in buffer synchoronization in sm21 for BI System. After referring the thread Reg: Memory oveflow in buffer synchronization error in SM21  i understand  buffering needs to be  switch off from se13 for /BIO/PDOC_NUMBER &  /BIO/PDOC_NUMBER tabels (in my case). But, when i try to switchoff the Buffering mode in production system client settings has been set to NOT MODIFIABLE.
    Please suggest how can i switch off the buffering without changing the client Settings. Is it possible to create Workbench request from development system switchofff the buffer same to imported in the production system.

    Hi,
    Are you able to see these table in SE11? If yes then you can switch off the buffering using SE11-->Technical settings and switch off the buffering. This is transportable.
    Regards,
    Vamshi.

  • How do you check Memory Speed on ICD

    Hi everyone
    I am new to the forums and I am also a soon to be first time mac owner(Receiving my 20" ICD this week) .
    I am buying the imac with an extra 1gig DIMM installed, non-apple memory.
    Now the reseller assures me that the 3rd party memory that he'll be using is compatible with the imac.
    I'm assuming that if there are no issues at start-up then the memory is compatible, but I would like to know how can I check that the memory is running at 667 mhz and that he did not install 533 mhz memory.
    So how can I check that the memory is running at 667?
    Thank you in advance
    20" Imac ICD     1.5ghz memory

    Ah, I think I'm reading that you may be concerned about a potentially counterfeit SO-DIMM. That's one reason to buy direct from a reliable seller such as Apple or Crucial. I'm not sure the memory utility Memtest will verify the DIMM's speed, but it will verify whether or not the SO-DIMM is working properly. That might include a speed calculation, and possibly you can email the Memtest author to find out.

  • How to overcome the Memory leakage issue in crystal report 2008 SP2 setup.

    I have developed the small windows based application tool with help of  Visual studio 2008 for identify the memory consumption of crystal report object. It helps to load the crystal report objects in the memory and then released the object from the memory. The tool simply does the u201CLoading and Unloadingu201D the objects in the memory.
    The tool will be started once u201CTest_MemoryConsumption.Exeu201D executed. The u201CTest_MemoryConsumption.Exeu201D consumes u201C9768 KBu201D memory before load the crystal report object in memory. It means, 9768 KB is normal memory consumption for run the tool.
    Crystal report object initiated by the tool and object help to load the report in memory once the tool initiated the crystal report object. Now u201CTest_MemoryConsumption.Exeu201D consumes u201C34980 KBu201D memory during the crystal report object creation and report load process. The actual memory consumption of crystal report object is 34980u20139768=u201C25212u201DKBu201D. 
    The memory consumption u201C34980 KBu201D will be continued till the end of the process. The memory consumption will be reduced to u201C34652 KBu201D from u201C34980 KBu201D once report load process completed. It means, u201C328 KBu201D memory only released from the memory consumption. Tool enables the Release command for the crystal report object. But crystal report object does not respond to the command and will not release his memory consumption.
    The memory consumption u201C34652 KBu201D will be stayed in the memory once job ends.  If i again initiate the crystal report object then it crystal report object start to consume the memory from 34652 KB.
    Database objects and crystal report objects are properly used in the tool. The object release commands properly  communicated to crystal report setup. But the u201CCrystal report service pack 2u201D setup unable to respond the commands which has enabled from .Net Tool.  Crystal report objects are properly initiated and disposed in the tool. But the crystal report unable to release from the server.
    The memory consumption will be reduced once the server restarted or kill the application.
    Crystal report 2008 and crystal report 2008 SP2 setup available in the server.
    Microsoft .Net Framework 2.0 SP2, Microsoft .Net Framework 3.0 SP2 and Microsoft .Net Framework 3.5 SP1 are available in the server,
    Could you please suggesst how to avoid the memory consumption keep increasing and  how to release the memory consumption  once the crystal object disposed???

    Hi Don..
    My case is different one. I hope, the problem with Run time Installation setup file (Crystal report 2008 Serivce Pack2 installer) which we installed in the server.
    Let me explain with Live scenario which our client faced in crystal report 2008 Service pack2 Installer.
    Our client is using a application to help to print their reports. The application is developed with Windows service.
    Windows service keep on running in the server. Windows service executes the client 's crystal reports( Labels Report, Stock  report) which designed for clients need and the reports will be printed from printer. 
    10 Same type report (Label Report) will be printed in 1 minute. Reports are not printing during non business hours. But the windows service keep on running.  Memory cosumption of application will be 160 MB in business hours.
    For Example, On Monday the application memory consumption starts with 160 MB. The Memory consumption will be reached 165 MB  in peak business hours. Then the memory will be ended in163 MB in the End of Monday. It means, The memory consumption will be in 163 MB during the non business hours. Reports will not be printed in non business hours.
    On Tuesday, the application memory consumption starts with 163 MB and it will be reached 168 MB during the peak hours. The Memory consumption will be ended in 165 MB in the end of Tuesday.  The same process contiues till friday. End of friday, the memory consumption of the application will be ended with 170 MB.
    Application Memory Consumption slowly increasing in the server. In 5 days, Memory consumption reached Threshold value (170 MB) of the server. Application gets hanged up once the memory consumption reached 170 MB. We got the error messages as "Attempted to read write protected memory " / "Not Enough memory for process".  If we restart server / If we restart the service then memory consumption of application get reduced to 160 MB.
    From the above scenario, We came know that the either the problem with Application object or the problem crystal report object. In the application, We have checked dispose methods of application objects completly. I am sure that  application objects are properly disposed in the application. I hope the problem not with application objects. The problem with Crystal report objects.
    Application properly communicates the dispose methods to crystal report objects. Crystal report objects are not released from
    the memory.
    Crystal report 2008 Serive Pack 2 setup installed in the server. 
    As you said, If Crystal report runtime is not released from memory then memory consumption keep increase???  In service oriented architecture application, how to unload the crystal report runtime??
    Do you any fix for this kind of issue??
    Willl Crystal report 2008 service pack 3 help on this issue??

  • How do I add memory to a MacBook Pro?

    How do I add memory to my MacBook Pro?

    You have to open the bottom cover of the MBP to get to the memory slots.  There are about 10 very small screws around the perimeter, some of which are longer than others so you have to be very careful not to mix them up when you take the cover off.  You will need a very small phillips-head screwdriver (small jewelers size).   Once you have removed the screws you may have to gently pry the cover off (there is some sticky stuff inside).  You will then see the RAM slots more or less in the middle of the computer.
    The booklet that came with your MBP has instructions about how to insert/remove the RAM SODIMMs ... there is a plastic tab on each side of the SODIMMs that you push outward and the RAM will pop up slightly ... you can then gently pull it out.   Note there is a slot cut in the pin edge of the SODIMMs ... remember it's orientation so you put the new RAM in the same way.  It only goes in one way.
    It's wise to use the crucial.com Memory Advisor first so you get the exact kind & amount of RAM that is compatible with your MBP.

  • I have just over 100gig of music in my iTunes library plus what ever else I add in the future. Because of the amount I had to save my music library on an external drive as my laptop did not have the memory to hold it all. I want to back up my iTunes libra

    I have just over 100gig of music in my iTunes library plus what ever else I add in the future. Because of the amount I had to save my music library on an external drive as my laptop did not have the memory to hold it all. I want to back up my iTunes library and save it on a different external drive, one I store all my back ups on. Is this possible? If so how can I do it? 

    To import music into your iTunes library on the computer go to iTunes>Help>iTunes Help>Add items to iTunes and follow the instructions
    Delete the "songs" that do not play in your iTunes library and reimport them.

  • How do I convert an IMAQ image buffer into an IMAQ Vision 'Image'?

    Using NI IMAQ and IMAQ Vision with LabWindows/CVI 6.0...
    I have some acquisition code that uses IMAQ img functions to set up a
    triggered image acquisition and stores the image into an 1D unsigned char
    array buffer.
    I would now like to add code that uses the IMAQ Vision functions. The IMAQ
    Vision function use an Image data type, which from what I can glean from the
    ..h files, is a structure.
    Is it possible to convert the 1D unsigned char array image buffer to an
    Image? How would I do this?
    An inefficiant brute-force way would be to write the image to a BMP file
    from IMAQ using imgSessionSaveBufferEx, then read the same file back in
    using IMAQ Vision imaqReadVisionFile. I am hoping there is a more elegant
    way to perform the conversion in memory without needing to write disk files.
    Thank you,
    Robert Rafuse
    Etec, Inc.
    tel: (978)531-5025
    e-mail: [email protected]
    web: http://www.etec-inc.com

    Bob Rafuse wrote:
    > Is it possible to convert the 1D unsigned char array image buffer to
    > an Image? How would I do this?
    Never mind. I found:
    http://sine.ni.com/apps/we/niepd_web_display.DISPLAY_EPD4?p_guid=B45EACE3F11556A4E034080020E74861&p_node=DZ52490&p_submitted=N&p_rank=&p_answer=&p_source=External
    which indicates that the img functions actually return a 2D array, so I can
    use imaqArraytoImage after all.
    My bad.
    Bob

  • How do I install memory into the Pavilion 17z-F2 series laptops?

    How do I install memory into the Pavilion 17z-F (17z-F200, product L2H13AV) series laptops?
    HP appears to have no maintenance guide available for this model series. What's up with that?
    Please, do not offer the generic (and out-of-date) Pavilion 17 Notebook PC Maintenance and Service Guide. It does not appear to apply to the 17z-F series. This guide instructs to remove the bottom service panel which I could have figured that out on my own. However, the 17z-F series does not appear to have any removable panels at all. I took an up-close look at the Pavilion 17z-F100. And, it does not have any removable panels on the underside, except for the battery. So, I presume the 17z-F200 to be the same.
    I am a computer technician. And, this is the first laptop I have seen without any service panels. I am probably going to have to disassemble the entire outer-shell to install memory (or to replace the hard disk drive once the time comes). But, every laptop I have worked on in the past had its own special array of hidden screws or special tricks for disassembly. So, having a maintenance guide is a necessity to avoid damaging plastic mounts, clips, guides, etc.
    This question was solved.
    View Solution.

    How about this one:
    Pavilion 17z Manual
    Don't get me started on this. It's one of my pet peeves, too. HP is not the only one doing this. Acer and Toshiba, etc. also are selling "closed" systems now. I hate it. I will absolutely never knowingly buy one but I am spending a lot of time here answering questions just like this. Good luck and let us know how you do. Sounds like you will be fine. 
    If this is "the Answer" please click "Accept as Solution" to help others find it. 

Maybe you are looking for