Event memory

Hello,
I have an Event structure, with 100+ event pages.
Some events take longer than 2-3 seconds (moving a servo)
When inbetween starting and finishing, the button is pressed again, this is buffered somewhere, and after the first time completing the event, the event is fired again.
This is unwanted behavour. I thought that "Lock front panel" would block this, but it's not.
I simply want the program to start listening to buttons after finalizing the event.
Please don't tell me to "disable and greyed out" the buttons, this will take me a week.
See the simplified program in attachment.
Run it, then quickly press 5 times "+1"
I want the result to be "1" instead of "5"
Attachments:
event memory.vi ‏13 KB

First , it is generally not good practice to include any code in an event case which can take longer to execute than the time it takes a user to click somewhere to generate another event.  I usually take the limit on the time to execute code in an event case to be no more than a few tens of milliseconds.  If it is longer than that, it goes into a parallel loop.  Parallel loops (as in the Producer/Consumer architecture) are a good way to handle this situation.
Read the LabVIEW help on events and locking the front panel.  It clearly indicates that the subsequent events are queued and will be processed after the event case completes.
You may need to look at filter events or use a state machine which is configured to ignore multiple events until the first task is complete.
You may also want to think about your "user experience."  In your example I would expect the code to work just as it does.  In other words when I hit the button 5 times, I expect the result to increase by 5, even if it takes some time.  What do your users expect?  Disabling and graying may be more work for you, but may match the users expectation better.
Lynn 

Similar Messages

  • Is my project using too much memory?

    I'm having lots of problems w/ a project. When I checked the project info I found some startling numbers:
    Midi Regions: 29 objects, 4567934 events, memory: 77137218
    and Undo Steps: 31 objects, memory: 78043126
    Are those numbers abnormally large? Could they be responsible for my project acting super sluggishly?

    Seems to be 10 times larger than mine. here are my information:
    Midi Regions:195 - ram 401040
    environment objects: 240 - ram 221180
    Undo steps: 31 - ram 701712
    Regards, K

  • Logic Pro 7 running out of memory!?!

    Hi!
    I am working on a project were I basically want to cut up every beat of a drum recording on 12 tracks and correct their timing individually (I have my reasons for doing this).
    This creates a decent amount of regions and for some reason Logic starts complaining about running short on memory and not having enough memory for the undo history.
    It bugs me because I am working on a Dual 2.5GHz G5 with 2 GB of RAM. Activity monitor says I have 480 MB of inactive memory and 1.25GB of free memory. Logic uses 300 MB of real memory and 762 MB of virtual memory. No other apps running.
    How can I make Logic use ALL the available memory?
    Is there a limit on the amount of memory that Logic can address? What is this limit, and how much memory is reasonably motivated for a PM running Logic?
    How about plug ins? Do they have separate memory spaces not limited by Logics potential limits? "Drumkit from ****" can by itself use a couple of Gigs of RAM if available...
    Thanks in advance!
    /Jont Olof

    Jont Olof Lyttkens, "Logic Pro 7 running out of memory!?!" #5, 03:19pm Sep 7, 2005 CDT
    However in the earlier days, running under Mac OS pre 9.x the ability to allocate memory to a specific application could increase the amount for the song event memory
    No, it didn't. It increased application memory, but the song event memory remained the same, just as it does now.
    I think, though, that with all Logic's new features, there is more actual data in an equivalent song, so the limit may be coming earlier. (I can't be sure of that though)
    I know you don't want to, but did you at least try reducing the undo history size (in prefs) ?
    Does deleting undo history and then saving help ?
    Another thing to consider, although I don't think it generates warnings like you are seeing, is Virtual Memory. If the computer has been up for a long time, running memory-intensive apps, like Logic, then it can get overloaded (too many pageouts) which can slow things down a lot. If you do notice things getting slower, then restarting the computer will flush the Swap File and get things going again.

  • Confused on a warning message on Logic Pro

    I'm working JUST FINE with this song, then suddenly a message pops up along the lines of:
    "Warning! Memory is getting short. UNDO history might get smaller"
    And since then, everything has slowed down. It takes forever to cut'n'paste, record, move anything, and the curser no longer runs smoothly but jumps when I play the song
    So my question is: what "memory" is this referring to and how can I reduce the memory? My UNDO history only shows 30 UNDOs. So how could that possibly slow down anything? Is there a file/folder I can go into and be like "oh yeah, I need to delete all of this clutter" so Logic can run more smooth again?
    Thanks for any help!
    -jake

    It is referring to your song/event memory. Once your songs get big this one pops up-the limit of 'events' is really low IMO. These events are detailed in the memory column in the song information panel. 30 steps is actually pretty big for the amount of events Logic will handle. I have mine set to 5 and 30 backups for songs, in other words I use song backups as undo history and manage the events closely. Removing unused regions from the arrange and audio windows, removing unused sequences, and enabling "empty trash after song save" will help keep these low, some people recommend reorganizing memory, if memory is tight this is not a solution unless there have been several incoming MIDI messages, because Logic keeps those in record. Saving the song will reorganize the memory. So going to the audio window, select unused, delete (not from disk) is what works for many instances to reduce this if you are not in the practice. Consolidating regions helps too if you have a recording which has been cut up and crossfaded 300 times, for example. You can search for more on this in the forum, there is a lot more-seems to show up every week.

  • 9iAS Profiling tools

    Does anyone know ofProfiling tools I can use for my Java programmers? Specifically, I am looking to view performance issues like I can against the Database.
    Thanks

    Did you look at the profilers availble as part of Oracle9i JDeveloper? You have 3 profilers there (event, memory and execution) plus a sqlplus explain plan capability.
    There is a script that show you these as part of the JDeveloper reviewer guide.
    http://otn.oracle.com/products/jdev

  • WARNING: Unsed Block Found in Song

    I'm now desperate -- the bugginess related to the UNDO command is reaching crisis stage. In an effort to solve the problem, I first cleaned house: consolidated MIDI tracks, deleted empty tracks, emptied the trash, and dbl-clicked on the memory indicator to invoke the Reorganize Memory function. When I did this last step I got the following error message:
    =======================
    Warning!
    Unused Block found in song.
    Please save song first.
    (Code: $00000001)
    =======================
    Seeking advice:
    a) what's this mean?
    b) why has this occured?
    c) how can it be prevented in the future?
    More importantly...
    d) under what conditions will Logic's brain get so addled such that hitting UNDO one time will result in multiple previous edits becoming undone?

    Hey iSchwartz,
    Just adding to the concensus here:
    A) It's a big red flag that your song is on the dark road of corruption. Time to get the tracks transferred to a new session.
    B) In my experience it is usually from low event memory and legacy objects in your .lso
    C) Rebuilding your Autoload/Templates and keeping your enviro/objects up to date while keeping the song file as small as possible. If I am opening a song from an earlier version of Logic I have an update procedure if I plan on working in it much. Rebuilding it earlier saves time in the long run.
    D) It's just general event memory and corruption. Performance differences between the old and new can also be drastic.
    .lso files passing through several revs of Logic also makes it easy to set in. Some thing I started doing recently: Some of my big songs I just have a master session and then several categorized subsessions-so I don't have to do crazy editing (keeping the event memory Low and the environment easily portable) to the master session and give Logic more chance for corruption to set in. This isn't necessary for the smaller sessions but some tracks you know are just going to get enough work hours that I take this precaution.
    Cheers, J

  • Missing videos-what happened?

    I have a MacBook Air, OS version 10.9.1,  Here's my problem. Lately when I go to a page where there should be a video, there is nothing but white space where it should be. No information about why it isn't showing, it is just empty space. This has happened since the latest automatic upgrades. Am I missing a plugin?

    MiSSiNG "FILE0014.MOV" QuickTime Movie
    Please tell me that youtube.com CAN help me! I've UPLOADED a ViD & I waited for the upload fuel cell to fill up with green while uploading... I don't know what the bar is called but it uploads from clear to green.. I waited & waited for the bar to fill all the way up... & when it reached about 88% full... It said that we experienced an error uploading, or either it uploaded fully & just is LOST out on the World-Wide-Web.com somewhere...? I hope to Jesus it is still recoverable But..... I'm NEEDiNG URGENT HELP, guys! Ok... I'm goin to tell you about my situation, 1st... I'm a disabled guy (in a wheelchair & I also have a speech disability) so if you're planning on calling me about this problem... Please do so during the week during business hours, so that you can speak with my Nurse for me. I have this "MUVi Video Camera" (NO PROOF NO GLORY) mounted on the back of my wheelchair so that everywhere I go... My precious memories will be captured/&\recorded on film. I just went to a "Garth Brooks" concert & I went BACKSTAGE to meet Garth. I got it on video but... As I was trying to transfer my footage onto YouTube/Facebook... From my MacBook Air running current Software "OS X 10.9.5 (13F34)"... It said that the video was too long for either website. It asked me if I'd like to "TRiM" the video so that I could post it on the social media. So I agreed to Trim which I did... so I trimmed it/made it smaller & proceeded to post it So... after trimming it... All of a sudden it said that the video experienced an error during uploading... That's fine but after that... The video DiSAPPEARED! It was named "FILE0014.MOV" & I CANNOT FiND it anywhere on my camera/or\ my HardDrive! This is a serious problem for me! I don't get out much as it is & when I do... Something like this CANNOT happen! Due that this event/memory will NEVER happen again/be the same ever again.. once in a lifetime! I am FREAKiNG OUT! Because I cannot locate this video! I even took my SD CARD out & put it in a "reader" & it's still not showing up...? Like I said... I didn't delete the video from the card... It just unexpectedly crashed due to an error uploading. So... I'm asking you to PLEASE contact me ASAP about this matter! If your company can send someone out to my house, just call me 1st or reply through email. I simply was typing a message to follow up the caption for the video post when it crashed & went missing. I know that there is a way to recover this video as I hear that law enforcement does it all the time. I will contact a computer investigator specialist  in the future but Please assist me all that you can about this problem first... I did nothing wrong & I'm paying severely for this UPLOADiNG ERROR, pulling my hair out trying to recover this disappearing video! PLEASE HELP ASAP! Thank you SOOO MUCH, -/\S\/-
    I think that my "Time Capsule" caught the video but I'm unable to find it... Please tell me that y'all got my upload... PLEASE Guys! I'M PRAYiNG! Thanks

  • Bug! Muted Tracks Unmuted after Folder Unpack

    Anyone ever run into this?
    Create some tracks, mute some of them (at the track level). Pack a folder with those tracks.
    Delete unused tracks in the Arrange window.
    Now unpack the folder. Any tracks that were muted inside the folder are now unmuted in the Arrange window.
    AAARGH!
    Workaround: never use track mute if you intend on ever unpacking that folder in the future! Mute each individual region instead. Wait, that workaround s*cks. Who wants to go through all that trouble? Forget I mentioned it...

    Eh, still waters run deep...
    Use multiple folders as a workaround-these wokarounds really add up don't they? Then maybe you'll get Folder Structure Too Deep errors...maybe.
    Lately I've just been creating alot of sub-sessions and importing the goodies (new tracks/edits) into the "real" sessions. Event memory errors and such are no fun. I didn't think it was too much to ask for a few thousand regions without sessions going kwayzee. I'm also pushing the 3rd parties' plugs out these other sessions and importing the audio into the real/mix representive session.

  • Strange Warning Message

    Hello All,
    I have an application in which I call EJBs deployed in WebLogic from
    JSPs deployed in
    TOMCAT JSP server.
    And every thing is working fine. However, I have one message which keeps
    on comming inside the web logic console.
    Tue Mar 20 16:27:05 GMT+05:30 2001:<I> <DGCserver> tried to renew lease
    for 1 lo
    st reference(s).
    I wanted to know what is the reason for this message.
    regards,
    Abhishek.

    Copy your song backup folder to another directory and hit delete, you may need it.
    What I attribute it to is an object or event which is corrupt (which often leads to further corruption). If your session came from an older version of Logic, if your audio files get modified, etc-basically Logic tells you something isn't right and there are mismatches in the data. Low event memory and damaged or legacy objects seem to trigger this. If the problem continues your session is likely on the way out, fortunately you can salvage the session from the song backup folder, it is often best to move it all to a new session and rework for a few hours. Not a pleasing message if you get it more than once. Logic will try to fix it when you delete it but it often seems like it is a sign of things to come. As long as you have many song backups you should be safe, if it dies it will be unusable if it deletes correctly you may have 0 further issues.

  • I have copied videos onto an external hard drive. to free memory on my macbook. When I try to delete these I am warned that I will not be able to use this video in existing projects   How do I point iMovie to events in my external  hard drive so I can pl

    I have copied videos onto an external hard drive. to free memory on my macbook. When I try to delete these I am woarned that I will not be able to use this video in existing projects
    How do I point iMovie to events in my external  hard drive so I can play projects which use them?
    MacBook, iMovie 9.0.4

    Hi
    You can do this - by not doing it the way You describe as it will not work.
    a. the external hard disk - MUST BE - Mac OS extended (hfs) formatted -
    UNIX/DOS/FAT32/Mac OS Exchange - will work for most things - BUT NOT FOR VIDEO (iMovie, iDVD or FinalCut doesn't matter)
    b. Do not alter or move any folder named
    • iMovie Event's - or -
    • iMovie Project's
    on DeskTop/Finder - at all
    All moving's of Events and Projects must be done within the iMovie Application - then connections will not break.
    (move them back and see if iMovie remembers them - then do move as described above)
    Yours Bengt W

  • Memory error when trying to fetch events by data range

    I keep getting the following memory error when trying to fetch events from my calendar server: CAPI_STAT_SERVICE_MEM_ALLOC
    I have checked the forum and found only one entry that talks about adjusting the -mx -oss settings for my JVM. However it is unclear if this change needs to be done to the server or the client where I am running the JVM. I have made these adjustments in my JDeveloper project and I still recive the error. I have checked the eng.log, cws.log and snc.log. The only entries found are:
    DATE = Thu Jun 2 16:53:24 2005
    PID = 12647; TID = 3076395840
    Trying to connect: Host = houoas2.us.oracle.com (127.0.0.1)
    Service = unidas
    DATE = Thu Jun 2 16:53:29 2005
    PID = 12647; TID = 3076395840
    Connection established: Host = houoas2.us.oracle.com (127.0.0.1)
    Service = unidas
    This is being done on a 10g calendar server. Any help would be appricated.

    Now that 10g and its associated CSDK are out and the 9.0.4.x CSDK is presumably frozen, would it be possible to make the 9.0.4.10 CSDKs - for each platform - available for downloading, unbundled from the massive server suite?

  • Out of memory on hard drive but can't get rid of clips in Event Library

    My hard drive has only 6gb left on it so I'm trying to free up space by deleting some of the clips in my Event Library. When I go to File - Move Rejected Clips to Trash, I get a message telling me there's not enough memory left to complete the operation. I have over 150 gb of material in the Event Library and most of the rest of the memory is used up in iPhoto. Also, previously, I tried to move a bunch of stuff to my external hard drive but had a horrible time recovering clips from it. Can you help?

    Hi all... I had a very similar issue.  I had a hard drive replaced by Apple on my iMac due to a total hard drive failure.  I attempted to restore my last time machine back up through my time capsule but I get some type of sparse bundle package error.  It appears that something is coming back from the back up as I only have about 180GB remaining space out of 1TB.  Any advice?  It appears that Apple had re-installed the latest version of Lion back to my hard drive.  I'm completely distraught here as like Romantic Heretic, I have over a decade of information currently lost.
    Any help with step by step directions would be GREATLY appreciated.
    Thanks

  • Event handler eats up memory. Bad programing and/or bug.

    Hello
    I've been programming a GUI for a project. The basics of the program is a sample routine that updates a array once a second. Once the array is updated I use a event handler to plot the new array in a graph.
    When I wrote this gui I think I've stumbled upon a bug in Labviews memory allocation.
    If you have two loops. One that builds a array and then signals a loop with a eventhandler that reads the array and the event handler is stoped for a few seconds (by opening a sub vi or something inside the event handler), the memory goes berserk. When the event handler is free after the stop the memory is still allocated and does not return.
    I could not find any information on this problem in the forum so I thought I would share this information with everyone. I managed to reproduce this phenomena in a small example (attached), if anyone is interested in it. The problem is simple to fix once you recognize the problem. However it was not the simplest problem to find (imho that is ).
    Regards
    Andreas Beckman
    Attachments:
    bug.zip ‏23 KB

    Where are you seeing the memory being allocated? What tool are you using, task manager or LabVIEW profiling? I'm not seeing what you describe (LV 7.1.1 on a 3.4 GHz Pentium 4 w/ 1 Gb memory)
    Thanks,
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

  • My internal drive is NOT showing up in the event library in Final Cut X.  I am also getting a "The operation couldn't be completed. Cannot allocate memory" Any ideas? I am using an IMAC Core i7 with 8GB memory, OS version 10.6.8

    My internal boot drive is NOT showing up in the Event Library in Final Cut X. My external raid drive is showing up.
    I am also getting error message "The operation couldn’t be completed. Cannot allocate memory"  when attempting to create a new "event".   Any ideas?
    If I had a application disk, I would unistall and reinstall FCPX.  I am assuming there is a way do do this without a disk - just have not been able to easliy find out how.
    I am using an IMAC Core i7 with 8GB memory, OS version 10.6.8
    Thanks

    Well it did NOT work.  Here is a screen capture as FCPX loads showing the drive while it loads. Then when it is loaded, NO drive showing up in the Event Library ( I have turned off the external drive).
    ANY ideas . . . .  Anybody . . . .  APPLE?

  • Out of memory error when moving a event to external HD in FCPX...

       When attempting to move a massive (1.75TB) event to a different hard drive using the "move event" feature, I keep getting an "out of memory" diolouge box that prompts me to close any open programs and causes my computer to completely freeze.
        I have a Macbook Pro with 16GB of RAM.
       How do I fix this? OR is there another way to move the event / project file without using the 'move event' option in final cut pro x?

       I have tried the duplicate function yes and the same problem. When I open up activity monitor, I can literally see the RAM drain until it reaches zero and then my computer crashes. It is so bizarre!
    How much hassel would it be to simply copy/paste the enitre Final Cut Pro Events and Projects folder to my external hard drive? Would I have a hard time reconnecting everything?

Maybe you are looking for

  • How to sort out your problems with the os 4 upgrade.

    I'm in the UK, and I am an Orange customer. I have just been in contact with an amazing guy called Lee, who has sorted my problem for me. His advice....... go into Settings, general, scroll down to bottom of the screen to Reset, and tap on it. Go to

  • BPS: exit variable

    Good day, I hope you can help me, I've got a problem which I hope can be solved using an exit variable, in BPS. Scenario: Planning area with characteristics MATERIAL, WEEK, DAY and key figure PlanQty. I want to do a equal distribution of the plan val

  • Idoc Outbound Status Error

    Hello everybody, I have an interface that sends and Idoc to an R/3 system and I have it on Status "Processed" but in Outbound Status "System Error" with red flag in SXMB_MONI in PI, but I can't see no dumps neither in PI or R/3, so message in queues

  • Nokia E72 (Updating the maps)

    Ive noticed that when i connect any E series nokia phone to my PC i never get prompted for map updates. But surely there would need to be some available as there are always new roads. My current map version is: 0.1.28.107 But i dont get notified abou

  • Premiere Pro CS6: why is the crop effect altered after being rendered?

    So here's what's happening... I'm editing a project for work and I'm supposed to apply a widescreen (2.35:1) ratio to the main video; however, when I use the crop effect everything looks correct in my browser window. After being rendered the crop eff