Labview doesnt seem to be re-using memory

I have a high speed hardware timed DAQ program (Labview 6.02) that gathers syncronous counter/timer information for a short period of time. Due to the shear volume of data and the speed at which it is gathered It is buffered and then saved to disk. Upon completion of the acqiusition the data is pulled from the disk and processed (x-Y graphs, FFT etc). If I try and do another acquisition the program doesnt seem to re-use the memory utilised for data and for displaying it in graphs etc. So after a few acquisitions the whole thing can grind to a halt. I have to close the application and Labview and restart it so that the acquisition will run properly and then the things starts all over again. How can I get labview to sort of dump
the data or clear its memory once I have processed the graphs etc. After all the raw data is saved on disk anyway.

> Does anyone know exactly what the "Deallocate memory as soon as
> possible" option does? We are also trying this as a last resort, but
> we have no clue what it is actually doing. For example, will it dump
> data in uninitialized shift registers? Does it unload VIs from memory
> (when you would normally expect them to remain in memory)? Or is it
> just "tidying things up" more quickly than it normally does?
>
This option means that after each subVI call, even those inside of
loops, LV will deallocate all temporary memory buffers. It has no
effect on unwired shift registers, controls and indicators or on the
results of the subVI. Without this option turned on, LV will leave the
buffers allocated waiting for the subVI to be called
again. So, this is
the typical space versus time tradeoff. This has no effect on which VIs
are loaded or unloaded.
Now that you know what it does, this feature can lead to fragmentation
of the memory manager since it so frequently allocates and deallocates
the blocks of memory. There is nothing wrong with the feature, but most
memory managers can't deal with this and with certain VIs, it can result
in more memory being used than when it is turned off.
Often the "memory problem" is better solved by getting rid of global
variables and local variables and making more subVIs. It is hard to get
more specific, but the user manual used to have a chapter on performance
that explained some of it.
Greg McKaskle

Similar Messages

  • How do i use my imac 21.5" 2011 as a display for my macbook pro late 2011, through thunderbolt cable ? I have tried and it doesnt seem to work, neither does target disk mode.

    How do i use my imac 21.5" 2011 as a display for my macbook pro late 2011, through thunderbolt cable ? I have tried and it doesnt seem to work, neither does target disk mode.
    Could it be a borked cable ? I just bought it new from the store today, i have updated both imac and macbook pro to latest thunderbolt firmware and updates. Both 10.7.3.
    MacBook Pro:
      Vendor Name:    Apple, Inc.
      Device Name:    MacBook Pro
      UID:    0x0001000A17016E60
      Firmware Version:    22,1
      Port:
      Status:    No devices connected
      Link Status:    7
      Port Micro Firmware Version:    FFFF.FF.FF

    You are correct, here is what Apple Says:
    http://support.apple.com/kb/TS3775
    I was able to find these instructions, however they referr to 2009-2011 27" iMacs. I think it's the same, if it's not then contact Apple directly for instructions. If either of the machines is less than 90 days old or covered by AppleCare then call AppleCare tomorrow for help, they should be able to easily answer this for you. You will find the number in your manual or you can use the AppleCare Contact Info link.
    Your iMac should automatically recognize the presence of a digital video signal at the Mini DisplayPort and enter Target Display Mode.
    If your iMac does not automatically enter Target Display Mode, press command + F2 to manually enter Target Display Mode.

  • Can I use LabVIEW to load data directly into system memory? The serial card I'm using isn't supported by NI nor does VISA recognize it. I'm using a Win32 function to read the data from the card and now I want it to go directly to system memory.

    Can I use LabVIEW to load data directly into system memory from a VI? The serial card I'm using isn't supported by NI nor does VISA recognize it. I'm using a Call Library function to read the data from the card and now I want it to go directly to system memory.
    The data is being received at 1Mbps.
    Thanks

    Two questions:
    One, if it's a serial card, then presumably it gives you more serial ports, like COM3, COM4, etc. If so, VISA would see the COM ports, and not the card directly. The drivers for the card should make it so that you see the extra serial ports from the OS. If you don't see the extra COM ports from VISA, then it sounds like the drivers for the card are not installed properly. Do the extra COM ports show up in Device Manager?
    Two, you said that you're using a Call Library function to get the data and you want to put it into system memory. Errr.... you just read the data and you have it in memory by definition. Are you saying you need a way to parse the data so it shows up on a graph or something?

  • How to recover photos from device that screen doesnt work, and didn't use cloud or a memory card. (chip)

    How to recover photos from device that screen doesnt work, and didn't use cloud or a memory card. (chip)

        I'm sorry to hear you no longer have access to your pictures ItzKB11. I know they're important, we'll do everything we can to help. However, since you did not back them up to any source and the screen does not work, we only have a couple options. Try using the USB cable to tranfer to PC:
    From the Device to a Computer
      • Launch Windows Explorer.
    Using the computer keyboard, press Windows E (  E) keys.
    Alternatively, right-click Start then click Explore.
      • Using Windows Explorer, navigate to:
      • SCH-I545 > Phone
      • Utilize the computer to copy video/picture files from the following folders into the desired folder(s) on the computer's hard drive:
      • DCIM
      • Download
      • Movies
      • Pictures
      • Disconnect the USB cable from the computer.
    If you're unable to retrieve them that way, use this http://vz.to/1zyIQwo.
    AdaS_VZW
    Follow us on Twitter at @VZWSupport 

  • How do you on board loop the memory using pci 6534 implementi​ng LabVIEW. Which VI do you use?

    How do you on board loop the memory using pci 6534 implementing LabVIEW. Which VI do you use?

    Hello,
    You will need to set the Pattern Generation Loop Enable attribute to ON in the DIO Parameter VI. This is
    specified on page 2-22 of the 653x User Manual (Jan 2001)
    Hope this helps,
    LA

  • Since firefox upgraded to 33,0 in the google search if I clicked it would come up with sites i have used , it doesnt seem to do that anymore , anybody know why

    There seems to be some item similar to my query but not quite, what is similar is in my question when using the google search box , you used to be able to click and it would show sites you have used, this doesnt seem to work anymore , you have to try a letter but the site that are suggested are not what i use,
    Anybody have any idea what may be causing this or is it something to do with the settings in options , i tried that but could see anything that i could change .
    thanks for any help

    hi happy80, i think this is because the search box on the homepage or a new tab will now show you suggestions provided by google once you start typing...

  • HT5902 Why do icloud photo sharing photos seem to be using memory on devices

    Why do icloud photo sharing photos seem to be using memory on devices

    They do use space on your mobile device, they are on your device inb addition to the original in your camera roll.

  • TS1367 Is there are a way to use my imac as a display for my macbook pro? I have a thunderbolt cable but it doesnt seem to do anything

    Is there are a way to use my imac as a display for my macbook pro? I have a thunderbolt cable but it doesnt seem to do anything

    Hello eassic,
    Thanks for the question, and welcome to Apple Support Communities.
    It sounds like Target Display Mode may be what you are looking for:
    Target Display Mode lets you use a Mac as the external display for another “primary” Mac. In some cases, you can also play the sound from your primary Mac on the speakers of the external Mac. For example, a MacBook Pro could use a 27-inch iMac as the display and play its audio on the iMac as well.
    OS X Mountain Lion: Use another Mac as a display
    http://support.apple.com/kb/PH11302
    Use an iMac with Thunderbolt as a display
    If you have an iMac with Thunderbolt, any other Mac with Thunderbolt can use it as a display. The iMac will play both the video and audio from the other Mac.
    1. Connect the Thunderbolt cable to the Thunderbolt ports on each computer.
    2. Make sure both Mac computers are turned on and awake.
    3. Press Command (⌘)-F2 on the keyboard of the external display Mac.
    4. If you want the external display Mac to play audio as well as video from the primary Mac, choose Apple menu > System Preferences, click Sound, and then click Output. Select the external display Mac from the list of devices.
    Thanks,
    Matt M.

  • LabVIEW as a Service - process stays in memory despite finishing execution

    I have a fairly interesting/unique problem with trying to run a LabVIEW built executable as a service using srvstart (http://www.nick.rozanski.org.uk/services). Srvstart allows you run any application as a service (similar to srvany or firedaemon) but it has the advantage that when you shutdown the service, you can set it to send a WM_CLOSE message which can be picked up in LabVIEW using the Application Instance Close? filter event and shutdown the service gracefully without killing it (as is the case with srvany).
    To debug this, I put a simple file write into the Application Instance Close? and Panel Close? events, my 'Exit' case and in a sequence structure at the very end of my application. If the application shuts down gracefully, a file will be created for at least the 'Exit' case and the the final file write.
    When I run the application in the LabVIEW development environment or as a normal executable (by double clicking on the EXE), it shuts down gracefully (by queueing up an 'Exit' command and executing the 'Exit' case) when I close the front panel (which is just an empty front panel - no controls/indicators as it runs without a UI as a service) - it creates the files and the application closes (and the process in task manager disappears).
    When I run the application and try to shut it down by using 'End Task' or run the application as a service. This should fire the Application Instance Close? filter event, which is then discarded (with silent shutdown) which will should queue up an 'Exit' command and shut down the software gracefully.
    What actually happens is that If I'm running the EXE normally and I 'End Task', the front panel closes but the application process stays in the system (i.e. in task manager). None of the files are written so the application hasn't gracefully shutdown. I then have to kill the process in task manager.
    When I'm running as a service and 'Stop' the service, the files for Application Instance Close?, my 'Exit' case and the last call get created, the memory usage goes from 30to 80mb and the process stays in memory (in task manager) - the service doesn't respond and I have to shut it down via task manager. I call 'Quit LabVIEW' right at the end of my VI, just after the last call file is created, if I disable this, the same thing happens but the memory usage doesn't go up. In both cases though, the service/application doesn't respond.
    I have to be a little careful about what I post in terms of VIs/screenshots for IP reasons but I'll try to illustrate my setup:
    In terms of other considerations, the VI does some asynchronous calls for handling TCP connections but these will finish execution when the main event queue is destroyed and the problem still occurs even if no TCP connections occur (and hence no calls are made to the asynchronous VI). I'm running LabVIEW 2011 SP1 on a Windows 7 64-bit.
    I tried to use the Desktop Trace Execution toolkit to help debug the issue but it seems that the VI Server shuts down and doesn't show me any trace information after I tell the service to Stop.
    The things I don't understand are:
    - If I 'End Task' on the EXE, shouldn't that fire the Application Instance Close? filter event in LabVIEW? I understand that Windows would give a 'This application is not responding...' message if it then didn't shutdown or if I didn't discard the event but I don't understand why that event isn't being captured/discarded on my EXE.
    - Why doesn't the process end when the VI has finished executing - even though I call the 'Quit LabVIEW' VI as the last call in my application?
    - Finally, why does the memory usage go from 30mb to 83mb depending on whether or not I call the 'Quit LabVIEW' VI (but the process still stays in Task Manager)?
    The key one is the second one - as this is the one that stops me from being able to stop/restart the service from 'Services'. I'd like to be able to use my 'Exit' case to try and send a last ditch 'Hey I'm shutting down now' message before the PC switches off by gracefully shutting down my service (and you know - because it's better to shutdown things in a controlled manner - hence the reason for using srvstart in the first place!)
    If anyone can help shed some light on this I'd really appreciate it as I've been trying to debug this for a lot longer than I'd like and despite asking around a few people not been able to come to any sort of solution.
    Certified LabVIEW Architect, Certified TestStand Developer
    NI Days (and A&DF): 2010, 2011, 2013, 2014
    NI Week: 2012, 2014
    Knowledgeable in all things Giant Tetris and WebSockets

    Since about LabVIEW 8.5 it is a very bad idea to add the Application Close? filter event and expect LabVIEW Quit to still do anything! It simply behaves as No Operation when this filter event is registered in any event structure.
    The proper way to handle this is to make the LabVIEW code terminate gracefully (terminate every loop in there) and as last operation close the Front Panel explicitedly with the VI Server method.
    LabVIEW Quit is btw. anyhow only a emergency bandaid. It is really analogous to crashing your car in a wall to make it stop. Pretty effective but also dangerous for various reasons. The proper way to terminate a LabVIEW built application is and has always been to make sure every loop has terminated and then close every and any front panel of your application as last measure. An open front panel (even when hidden) will keep your executable alive forever.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • ITunes Track CPR doesnt seem to be working

    I have been trying to use the track cpr script to find some "lost" songs that arent really lost... the script doesnt seem to be doing much of anything when I run it.... this is on 10.6.4 with itunes 9.2.1
    Results:
    iTunes Track CPR
    Total tracks: 18
    Total MIAs: 8
    Recovered: 0
    Still MIA: 0
    I know the files are are in the proper itunes style folder structure... im stumped why this isnt working. maybe my itunes version is too new??

    have you tried toggling the hold switch...if that doesn't work, restor ipod nano (plug in nano, got to ipod updater, click restore [i may have the first otwo steps switched, so if is doesn't work, try with step 2 first])...if that doesn't work either, go to an apple store (if there is one near you)to get it replaced...if you don't live near one, send it in to apple (since so many people have problems that apple doesn't identify when they send it in, put a small note in the package

  • Slider doesnt seem to be good scrubbar

    So I have been attempting to use a hslider for a scrubbar
    using raw video and UIComponent in flex 2.
    Using the slider control as a seekbar doesnt seem efficient
    to the below.
    livedragging doesnt seem to work well because there are too
    many calls to seek. onchange is the same, and turning livedragging
    off to get the event once (rather than continuous) is not good
    either - you want the scrubber to be more responsive. dragcomplete
    seems to be the correct action, however the slider disregards the
    action. The sliderthumb is documented to have this action, however,
    it seems the slider thumb disregards the action too.
    Should i not use the slider control. what other control is
    there. Anyone?

    Mikes1 wrote:
    Draining a lithium ion battery untill it is nearly empty is not a good idear
    In fact if you run it totaly empty it will be damaged beyond repair. The idear this calibrates the battery is wrong. This type of battery likes to be topped up oftern it will however take a week or so of use befour reaching peek efficiency
    You are 100% incorrect.
    Please read the Apple advice on batteries here:
    http://www.apple.com/batteries/iphone.html
    It specifically states:
    _Use iPhone Regularly_
    For proper maintenance of a lithium-based battery, it’s important to keep the electrons in it moving occasionally. _*Be sure to go through at least one charge cycle per month (charging the battery to 100% and then completely running it down).*_
    Not sure that can be much clearer.
    Ian

  • Battery doesnt seem to be charging

    As the tittle ays really. My IP4 battery doesnt seem to be charging.
    Last night I allowed it to run completely flat until it switched itself off so it could calibrate the battery.
    Plugged it in to charge and went to bed. Some 9 hours later, switched it on and it's only showing 3% ... Yep the mains was switched on lol
    Defuncd battery maybe? Not sure as it seemed to take ages for the battery to run flat

    Mikes1 wrote:
    Draining a lithium ion battery untill it is nearly empty is not a good idear
    In fact if you run it totaly empty it will be damaged beyond repair. The idear this calibrates the battery is wrong. This type of battery likes to be topped up oftern it will however take a week or so of use befour reaching peek efficiency
    You are 100% incorrect.
    Please read the Apple advice on batteries here:
    http://www.apple.com/batteries/iphone.html
    It specifically states:
    _Use iPhone Regularly_
    For proper maintenance of a lithium-based battery, it’s important to keep the electrons in it moving occasionally. _*Be sure to go through at least one charge cycle per month (charging the battery to 100% and then completely running it down).*_
    Not sure that can be much clearer.
    Ian

  • HT4972 im trying to update IOS version, have done everything as recommended.  however, it doesnt seem to be working, when i try to buy a tune i am again prompted to update to new IOS version... can you offer any advice

    im trying to update IOS version, have done everything as recommended.  however, it doesnt seem to be working, when i try to buy a tune i am again prompted to update to new IOS version... can anyone offer any advice

    Is this an iPhone or iPad question? You posted in the iPad forum.
    See
    iOS 5: Updating your device to iOS 5
    http://support.apple.com/kb/HT4972
    iOS: How to update your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT4623
    If you are currently running an iOS lower than 5.0, connect to your computer & click on the "Update your device using iTunes".
    Tip - You may need to disable your firewall and anitvirus software temporarily.  Then download and install the iOS update. After you update to iOS 5.x, the next update can be installed via wifi (i.e., not connected to your computer).
     Cheers, Tom

  • BBC iPlayer - This content doesnt seem to be working

    Hi all, I have tried so many fixes but cant seem to fix the problem
    When I log into my user and go on the BBC iPlayer website and click on any video, it loads perfectly fine.
    However, when my mum logs onto her user account she cant play any videos.
    The message that comes up for ANY video is 'This content doesnt seem to be working. Try again later'
    This message never shows up on my side of the computer.
    We have an iMac 2GHz Intel Core 2 Duo,
    4 GB RAM,
    Mac OS X Lion Version 10.7.4,
    The newest version of Flash installed (obviously because it works on my side)
    The newest version of Safari installed
    I have tried removing Flash from the computer then reinstaling it.
    I also tried repairing disk permissions through Disk Utility.
    I even tried deleting the Safari preferences in Library.
    I tried reinstalling Safari
    I tried installing 'click to flash' to see if it would convert it to HTML5 but that didnt work. So I deleted the extension.
    It will load fine in Chrome & Firefox. So we can assume with this that its a problem with my mums Safari.
    Does anyone have any ideas on how to fix this or has anyone had this happen to them?
    I do realise the easiest solution would be to just watch BBC iPlayer stuff on another browser or download the BBC iPlayer App and watch videos through there but thats a hassle when it used to work in Safari and actually works in Safari on my side of the computer.
    Thanks in Advance.

    Never mind, after all that and searching loads of forums & discussions it turned out that it was little Snitch and its 'plugin process' turned off.
    switched it to allow and its working now.

  • How many speakers does laptop 2000 have it doesnt seem to play as loud as it did

    how many speakers does laptop 2000 it doesnt seem as loud now

    You are correct, here is what Apple Says:
    http://support.apple.com/kb/TS3775
    I was able to find these instructions, however they referr to 2009-2011 27" iMacs. I think it's the same, if it's not then contact Apple directly for instructions. If either of the machines is less than 90 days old or covered by AppleCare then call AppleCare tomorrow for help, they should be able to easily answer this for you. You will find the number in your manual or you can use the AppleCare Contact Info link.
    Your iMac should automatically recognize the presence of a digital video signal at the Mini DisplayPort and enter Target Display Mode.
    If your iMac does not automatically enter Target Display Mode, press command + F2 to manually enter Target Display Mode.

Maybe you are looking for

  • Sync Send in BPM...no trace in MONI, where can i find

    hi forum, I have a file>BPM->jdbc scenario, in the BPM i make a synchronous call to a BAPI(RFC) to a R/3, and the response form this call is sent to JDBC, now due to SXMB_MONI trace level set to 1, i cant see the details of this synchronous call, whi

  • IPhoto can't be viewed unless in fullscreen. Shows up when I press F3., iPhoto can't be viewed unless in fullscreen, but shows up when I press F3.

    Whenever I launch iPhoto, it does not show up as the small window. If I press F3 to show all open applications, the iPhoto window will appear, but when I try to click into it, it disappears into the bottom left corner of the screen. I can only view i

  • Agent disappears from Supervisor Display

    UCCX 8.5 I have some remote CAD agents who connect via vpn. One in particular always behaves the same. In the Supervisor Display she is counted as "Logged In" but her name will disappear from the Agents and Voice CSQ-Detail displays for 30 seconds. S

  • Grayed out pics

    I downloaded some pics from a disc, and got the dreaded I indicating I had lost the file data. I then erased  what I had just done, and tried another download. The pics were all grayed out which take to mean that the pics are still in the system some

  • How to read value of row x from data port while measuring

    Hello, i am quite new at Diadem and just did some easy stuff and Tutorials. For a project I have the following situation/problem: I save many measured values at the data port during the measuring itself. For a "stop-condition" of the DAC/Measurement