Clear memory of user actions

Hi
I am having problems with repeated user actions when labview is in the midst of runnning.  More specifically i have some buttons that say take some processing time when activated and while the computer is processing it if I press on the button again (once or a few times) nothing happens.  However once the processing of the first user action is finished then the second, third and etc... press of the button gets process, even though it had happened a while ago.  I was wondering whether i could prevent this.
I have noticed that this occurance happens under a couple of cases.  The first is what i explained above while the second i have noticed when I have placed an event structure within a case sturcture.  The lock front panel options is off for the event structure but if the user does the event structure while the case sturcture is not satsified nothing happens ....which is good but then if the case stucture becomes true then the process inside the event structure takes place eventhough the user action did not happen again.  To illustrate this example please take a look at the attached vi.  Try pressing "mouse down" in the string 4 times and then turn the case structure true and you will see the numeric indicator increment 4 times. 
It seems the user actions are saved in memory until labview is free to carry them out.  What i was wondering is whether i can prevent this.  The first case (paragraph) is more important than the second to me since i have able to avoid the second so far.
thanks
Reza_Sed
Attachments:
eventstuctureincasestructure.vi ‏14 KB

I am not completely clear on what you are trying to do but it sounds as though you are performing action inside an event case which takes longer than the time between two events. (My rule of thumb: Do not put anything into an event case which would take longer than tens of milliseconds to execute.) When that occurs I take it as an indication that the action to be performed should be moved to a parallel loop outside the loop containing the event structure.
If you have events for Start some Action, Cancel the Action, and Stop, the event loop would contain only the three cases. Inside each case would be the Enqueue function. Put into a queue the command created by the user action (Start, Cancel, Stop), perhaps as the value of a typedefed enum, and exit the case to wait for the next event.
The parallel loop would implement the Actions. It would probably be a state machine with states: Idle, Perform the Action, and Stop as well as any other states needed. It would sit in the idle state until a Dequeue function received a command from the event loop. The Perform the Action state would need to be designed in such a way that the Cancel command would be received and acted upon promptly.
Look at examples and design patterns for queued state machines and Producer/Consumer pattern.
Lynn

Similar Messages

  • ABAP-Memory per User or static ABAP-class??

    Hi there,
    I want to save some information for each user in a transaction which uses SUBMIT-statements. So I want to store the information globally across reports and transactions (starting from my own single transaction).
    So I can use the ABAP-Memory for storing this information. Is the information stored there seperated by user or is it possible that one user gehts the information of another user? When is ABAP-memory cleared? Is this done automaticly when my transaction flow is finished.
    Alternatively I think I can use a global static ABAP-class with attributes to store the information. Is such a ABAP-class also user-dependent??
    And when is this information cleared??
    Can you give me some hints?
    Thank you very much!
    Kind regards
    Jens

    Hi,
    Both ABAP and SAP memory are user specific. In your case if the issue would concern just one user you should go for SAP memory (when data should be exchanged between external sessions that is windows of SAP gui) or ABAP memory when data exchanged within one external session (between internal sessions - that is between programs run in one GUI session ).
    If you want the data be stored globally for all the users, you have to either store them in some custom global table in DDIC (and later read from different user) or use [Shared objects|http://help.sap.com/saphelp_nw70/helpdata/EN/14/dafc3e9d3b6927e10000000a114084/frameset.htm] which is a special memory buffer in Application Server, where you can exchange data between user sessions.
    Regards
    Marcin

  • Clear memory

    Hi everyone
    Is there a command in action script to free the memory of Illustrator , to force the situation like
    when i close a document by the 'x' or use the 'Ctrl W' ?
    I draw a picture using illustrator scripting, but when tge scripting finished if i want to use the tool of the palette there are
    a lot of malfunction.
    best reagards
    Stefano

    Trantham wrote:
     how to clear memory from a MFC-6490CW?
    Hi,
    Welcome to HP support forums. MFC-6490CW is not from HP. The manual shows few places you may need to clear memory for fax or for normal print jobs. Please use page #48 or page #101 on the following manual to clear memory on a  Brother MFC-6490CW.
          http://download.brother.com/welcome/doc002354/cv_mfc6490w_asaoceeng_usr_a.pdf
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Need to have pop up window in selection screen and capture the user action.

    Hello Friends,
                         I have a requirement, that need to show a pop up window after execution, and to get the action from user using a Push button.
    I create a selection screen and a sub screen as window.
    After user execute from the selection screen, I am popping up this window.
    Window contains some input values to be entered and push button to identify the user action.
    I try to capture the user action using sy-ucomm, but it does not hold any value when user press the button.
    How to overcome this issue.
    Here is the definition of the window.
    Pop Up Window for getting values
    SELECTION-SCREEN BEGIN OF SCREEN 500 AS WINDOW TITLE title .
    PARAMETER : p_vdate LIKE t9aa01-validfrom,
                p_dcggt LIKE t9aa01-hkont,
                p_dcgst1 LIKE t9aa01-hkont,
                p_dcgst2 LIKE t9aa01-hkont,
                p_na LIKE t9aa01-hkont.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN POSITION 20.
    SELECTION-SCREEN PUSHBUTTON 2(10) text-001 USER-COMMAND SVE.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF SCREEN 500.
    Cheers,
    Senthil
    Edited by: Senthil on Jan 7, 2008 11:03 AM

    Hi,
    Try using the below code.
           data : w_var type string.
           CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
             EXPORTING
              DEFAULTOPTION        = 'Y'
               textline1            = 'test '
             TEXTLINE2            = ' '
               titel                = 'check'
             START_COLUMN         = 25
             START_ROW            = 6
             CANCEL_DISPLAY       = 'X'
            IMPORTING
              ANSWER               = w_var.
                     if w_var = 'J'.
                     else.
                     endif.
    Comments : J indicates Yes and N indicates No
    Regards,
    Jeswanth

  • Standard Table to be updated based on User action

    Hi Friends ,
    i have a requirement , its a report and in that based on the user action ( if the user checks a check box that is available in the output screen of the report and saves it)  the value should be updated in a standard table as 'X'. I have appended the field in the standard table and now i need to write a logic at user command to populate the zfield that i have added in the table based on the user's input. Can someone suggest me how to proceed further on this ? Kindly let me know if you have any sample piece of code related to this scenario...
    thanks in advance.

    HI,
    Usually we can udpate the tables using UPDATE statement.
    But SAP will not suggest to use these statements which will hit the table directly. We need to use the standard transactions to create or update the standard tables.
    For eg: you are using a ztable.
    then once your report is ready, then use the user_command form ( for ALV) .
    fetch the records where the user have selected the records ( check box = 'X").
    *&      Form  USER_COMMAND
    FORM user_command USING g_ucomm     TYPE sy-ucomm
    gs_selfield TYPE slis_selfield                                          .
      CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
        IMPORTING
          e_grid = ls_ref1.
      CALL METHOD ls_ref1->check_changed_data .
    this will update the check box values in your internal table.
    now you can use
    loop at itab into wa where check eq 'X'.
    fill your final internal table where you need to update the table.
    endloop.
    loop at newtable.
    update ztable set value = 'X'
    where keyfield = w_keyfield.
    if sy-subrc eq 0.
    message s000.
    endif.
    endloop.
    endform.
    regards,
    Venkatesh

  • Is there a way to find out if there were any user actions in windows?

    I have an application in LV6.1 and i want it to go in an 'idle-state' if there was no user action in windows.
    for example: after 10min. (like a screensaver that activates after a certain time.)

    LabVIEW 6.1 has a new structure for user driven events. The event structure has a timeout case which can be set for 600,000ms (10min). When the event fires the timeout , the code in the frame will execute. This s where you would put the screen saver code. You will need to also create a second event case that will trigger on mouse cliking on the application. This case will do nothing other than reseting the timeout case. This event structure should be placed in a while loop and probably in parallel to your present code. Be sure to read the online LV help and warnings about the event structure. Thirty minutes of reading will save you hours of headache.

  • Setting to Retain User Action Logs in GRC 10.0

    Is there a setting to retain the User Action logs in SAP GRC 10 System for x number of Days. Is it dependent on the ST03N Log settings

    Hi Selva,
    For this you need to schedule the action usage job. Once you schedule this job you can view the logs in Reports and Analytica tab under Security Link->Action Usage by user,role and profile.
    Hope this helps.
    Regards,
    Neeraj

  • URL iView - Open in new window - User Action Independent

    Hello Experts,
    What has been configured:
    I have built an I URL iview and set its paramater to open in a new window. I have assigned the iview to a role. I have also assigned a quicklink to the iview
    Name: xyz
    quick link: xyz
    quick link url: https://<domain>/irj/portal/xyz
    What has been tested:
    When I log in to the portal using the test user ID and click (user action) on xyz the destination URL pops up in a new window as expected.
    When I access the iview via the quick link it loads the destination URL in the same portal window (no pop up)
    What do I need:
    We will be using the quick link to get to SAP portal from another legacy portal and I want to hit the target URL as soon as I access the quick link without being taken to the portal page in which the target URL content is rendered. I also do not want to have the user click on the/a link to navigate to the target URL.
    Things as they stand:
    The destination URL is hitting a standalone WD ABAP object which is not hosted in SAP portal content. The SAP portal has to be used because the logon ticket issued by the portal is also used to login to the server hosting the WD ABAP.
    Please let me know if you think this is something that can be achieved.
    Many thanks,
    Prashanth

    Hi,
    2. It is not possible to hide it completely or disable it. Give this a try:
    Create a Static HTML page and create a link in that which will take you to quick link page/iview.
    or you can create a custom application which will call the application underlying the quicklink on click of a link.
    3.  For removing the History, Back and Forwards links in Page Title Bar, follow the below:
    In Portal navigate to Content Administration - Portal Content - Content Provided by SAP - End User Content - Standard Portal Users - Open the Default Framework Page
    With the Framework Page - you will find Page Title Bar iView - Open the iview and go to iView Property
    Show Back/Forward Links and Show History List by default this setting is set to Yes. change teh setting to No and you will not be seeing those in the page title bar.
    NOTE: If you make this change it is applicable to all other pages and iViews. So be cautious before making the change.
    Hope this helps.
    cheers-
    Pramod

  • IPAD 16 GB HOW TO CLEAR MEMORY

    IPAD 16 GB HOW TO CLEAR MEMORY ios7

    What do you mean by 'clear memory' ?
    You can close apps via the iPad's taskbar (a lot of the apps that show on the taskbar will just be 'recently used', they won't be using resources) : from the home screen (if you have an app 'open' on-screen then it won't show on the taskbar for closing) double-click the home button to bring up the taskbar at the bottom of the iPad's screen, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the iTunes app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    If you want to delete content from your iPad to free up storage then you can see how much space each app is taking up via Settings > General > Usage. To delete an app (and therefore its content) press and hold any of the apps on your iPad’s homescreen and after a couple of seconds or so they should start to shake. Then press the 'x' in the left corner to delete the ones that you don't want, and when you've finished deleting press the home button so as to stop the shaking. If you don't get the 'x' on any of the apps that you've downloaded (you can't delete built-in apps) then check that Settings > General > Restrictions > Deleting Apps isn't set 'off'.
    To do a soft-reset (i.e. a reboot) : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear.

  • User action logging

    I'm writing a small model of a GUI, which I'm going to
    perform user tests on via the web. For these tests, I need to log
    all user action (button clicks etc). I have no problem with the
    actual logging, but how do I submit it from the tester so I'll be
    able to view the statistics? Note that the tests will be performed
    at the testers own computers.
    Thanks a lot in advance.

    Anyone? :(

  • Table control values are not able to read with out a user action.

    Hi All,
    I am working with a module pool programing and I am calling 3 sub screens into my main normal screen.
    In one of the sub screen, I have created a table control and getting the initial values from database and displaying.
    Now I try to change the couple of fields in my table control and with out user action (not pressing Enter after changing the values in table control).
    I try to save the edited/changed values in table control into the database. But I am not able to do so, since the change values are not able to pick.
    My requirement is end user will not do any action(press the enter key ) and he directly presses the save button which is defined in the main normal screen.
    Kindly suggest some solution.
    Thanks
    Geetha

    Hi Geetha,
                    in SAP Default While pressing save button the modified value will pick up because
    Save button will perform enter function also.
    Regards,
    Thangam.P

  • How can I localize the text of process names, task names and user actions within a process?

    I'm very interested in using the capabilities of Adobe LiveCycle Process Management for my project, however I have one rather large concern...   I hope someone here can tell me whether there's a way to address it.
    Since I work for the Government of Canada, I have to meet certain requirements relating to bilingualism of the user interface.  It's my understanding that the Workspace portion of LiveCycle has already has support for French.
    But what about the design of my processes?  How can I display text to a user in the language of their choice when they're interacting with my processes? ... in particular, I'm thinking about the process name, task names, and user actions.
    I hope that this is possible without too much pain.  I imagine this must be a pretty common requirement!
    Thanks in advance to all who respond.

    You can completely change the content of whole pdf by using "renderPDFForm" operation under service "FormsService". in this operation there is Template category where you can set the Locale.
    And if you need to change the other workspace options like Complete, Save as Draft , you can then import workspace ui project and then change apppropriate values.
    Thanks,
    Prashast

  • How to handle user action on messageChoice component ?

    Dear all,
    I create a OAF page and put a messageChoice component on it. And then setup its property as following:
    ID: myChoice
    Item Style: messageChoice
    Action Type: fireAction
    Event: changeChoice
    Submit: true
    and I set it a new controller, add the following code in it:
    public void processRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
    super.processRequest(oapagecontext, oawebbean);
    if ("changeChoice".equals(oapagecontext.getParameter(EVENT_PARAM)))
    throw new OAException("call my function", OAException.INFORMATION);
    In my opinion, when I re-choose a new option in choice component, the page should be submitted immediately, and my custom event "changeChoice" should be raised.
    Unfortunately, I cannot catch my exception when my page is refreshed.
    So I want to know how to catch the user action for this situation.
    Any advice is appreicated.
    Thanks.
    Kenny

    Kenny,
    Any page action can be caught only in processFormRequest.
    --Shiv                                                                                                                                                                                   

  • Clearing memory in ActionScript 3.0

    Does anyone know how to clear memory in AS3.0. My app loads a lot of SWF and the memory usage keep accumulate and does not go down untill the app crash. I've tried flash.system.System.gc(); , set movie clip to null,and removeChild but seems no luck for me.
    This is how i trace the memory usage:
    var mem:String = Number( System.totalMemory / 1024 / 1024 ).toFixed( 2 );
    trace( "RAM Usage: "+mem+"MB" ); // eg traces “24.94Mb”
    Any help means a lot to me. Appreciate in advance.
    Amir

    This article should give you more insight:
    http://www.rgbeffects.com/blog/uncategorized/flash-optimization-freeing-memory/
    It`s also memorable that manually calling the GarbageCollector only works in AIR and the Debug-Version of the Flash Player.

  • Extended Notification-Capture User Action at Outlook

    Hi gurus,
    I have done the configuration for SAP Extended Notification. The hyperlinks for work items are sent to users by outlook. It works OK.
    What I want to know is whether the user has click the work item Hyperlink at Outlook. 
    I need to capture the users' action of clicking the link and sent it back to SAP.
    Is it possible to get the action captured from the Outlook?
    Cheers.

    Thanks Rainer,
    That has worked a treat, i used the CREATE_WINDOW method directly rather than using it viw the OPEN_POPUP method but should not make any different should it? see code below
    Thanks again
    Regards
    Martin
      data: lr_popup type ref to if_wd_window,
            lr_view_controller type ref to if_wd_view_controller.
      data:
      lr_api_comp_controller type ref to if_wd_component,
      lr_window_manager type ref to if_wd_window_manager.
      lr_api_comp_controller = wd_comp_controller->wd_get_api( ).
      lr_window_manager = lr_api_comp_controller->get_window_manager( ).
      lr_popup = lr_window_manager->create_window(
      MODAL = ABAP_TRUE
      window_name = 'WND_TEXT'
      TITLE = 'TITLE '
      CLOSE_BUTTON = ABAP_TRUE
      BUTTON_KIND = if_wd_window=>co_buttons_okcancel
      MESSAGE_TYPE = if_wd_window=>co_msg_type_none
      CLOSE_IN_ANY_CASE = ABAP_TRUE
    *MESSAGE_DISPLAY_MODE = MESSAGE_DISPLAY_MODE
      lr_view_controller = wd_this->wd_get_api( ).
      lr_popup->subscribe_to_button_event(
      button = if_wd_window=>co_button_ok
      button_text = 'ok_text'
      action_name = 'SUBMIT'
      action_view = lr_view_controller ).
      lr_popup->open( ).

Maybe you are looking for