Getting UI resize event block my VI

Hi,
I try to resize a chart if the user is resizing the vi UI.
Unfortunaltly, the option from the menu edition "Resize with the front
panel" is unavailable for my chart (maybe because it's in a tab
panel). So a way to resize it is to get the event "UI resize" and to
manage the size of my graphe.
But as I enter in my event, I seem to never go away from this event
structure.
Actually, just to stop my vi with the famous "stop button", I do the
following actions :
I launch my vi
I resize my UI
I put the stop button (its state is changing but my vi don't stop)
I need to resize my UI for the stop button state to be considered and
my VI stop.
I certainly do something wrong ;-(
My event structure is inside the main "while" loop.
I did not
use the option "block the front face until this event ends*"
Thanks for all.
*excuse for the translation, I use a french version.

Bonjour,
J'imagine que dans le code, le bouton STOP utilisé est directement câblé à la condition de fin de la boucle while. Ayant moi même fais le test j'ai un comportement similaire à ce que tu décris dans ta question.
Il vaut mieux ajouter une condition d'événement '"stop":Valeur changée' en incluant le terminal dans la condition d'événement. Ensuite câbler le stop à la condition de fin de boucle.
J'attache un VI enregistré sous LV6.1 pour illustrer cette réponse.
Hope this helps !
Julien
Attachments:
Gestion_d'événements.vi ‏27 KB

Similar Messages

  • Resizing events, and blocking application

    Hi,
    While developing my application, that displays the state of processes, I observed something I can not duplicate that good. While debugging the app, I observed that when I manually resize the window size, my application could block (as in not response any more and stop running altogether). As said, I can not duplicate the problem. At the moment I can resize the window while it is updated, and the app keeps on running and stays responsive. But to solve this (potential) problem, should I add an event listener like WindowStateListener? Does this method catch window resizing events? And could I then add to my code something like
        public void windowStateChanged(WindowEvent e) {
            repaint();
        }Or, stated otherwise, to what event should I listen so a window resize event can be caught, and used to repaint the window?
    Abel

    I think that before resizing a windowActivated() event is generated... you could use this to set up your task before the window is resized. Of course, an activation doesn't mean resizing but perhaps it could help.
    Regards.

  • Issue with TextArea resize event

    Hi,
    In the following
    sample there
    is a button and a textarea in a VDivideBox. If you move the
    divider, the Textarea is resized and in its resize event I change
    the fonts size. It works very well except in one case: If the
    Textarea is given the focus and then you try to resize it by moving
    the divider, then all the text goes blank ! I've debugged it and
    everything looks fine, so I can't figure out what's going on...
    I'm using Flex 3. To see the code, right click and View
    Source.
    Thanks for helping.

    Hello,
    You say:
    "The event trace shows that INPUTFINISHED got triggered. The technical workflow log also shows a record of the terminating event - but still the task does not get finished - the task still remains INPROCESS and does not get COMPLETED."
    I would concentrate on fixing this. If an event is being created wth the proper key (check that) then the workflow should pick it up. You say you can even see it in the workflow log? Are you using a wait step, or have you set the event as a terminating event for the whole workflow? Try generating the event manually (with SWUE) to figure out what the problem is. This should work. Check the workflow log for errors.
    regards
    Rick Bakker
    Hanabi Technology

  • Query to get the details of Blocking and deadlock occurred for the Day

    Hi,
       I need a query to get the details of blocking and deadlock occurred for the day.

    You havent specified which version of SQL you are using which makes it difficult to give a solution. Assuming its latest versions , by default SQL Server (in any versions) doesnt track blocking information.
    You need to run some kind of queries/traces to capture blocking. The same goes with Deadlocks where majority of the DBA's enable trace flag 1222/1205 when they suspect deadlocks happening.
    Check this link -
    http://dba.stackexchange.com/questions/10644/deadlock-error-isnt-returning-the-deadlock-sql/10646#10646
    This link gives code to get historic deadlock information. I havent used it , I just googled to get that.
    That being said if you are looking for something to capture for the future check the below links.
    Check these links on how to setup extended events to capture deadlock and blocking.
    http://sqlblog.com/blogs/jonathan_kehayias/archive/2010/12/21/an-xevent-a-day-21-of-31-the-future-tracking-blocking-in-denali.aspx
    http://blogs.msdn.com/b/sqlserverfaq/archive/2013/04/27/an-in-depth-look-at-sql-server-memory-part-2.aspx
    http://blogs.technet.com/b/mspfe/archive/2012/06/28/how_2d00_to_2d00_monitor_2d00_deadlocks_2d00_in_2d00_sql_2d00_server.aspx
    HTH
    Regards, Ashwin Menon My Blog - http:\\sqllearnings.com

  • Handling resize event ...

    I have a class that extends Panel. I add some buttons
    (Min/Restore/Max/Close ... top right corner,etc) to the chrome
    using rawChildren.addChild. I'd like to restrict the window to
    never be allowed to get to a height less than the height of the
    buttons or a width less than the combined width of the buttons
    (this is a generalization, I've included logic to account for
    borders, etc). Nevertheless, I've tried countless approaches ...
    then I tried listening for a resize event ...
    //in constructor
    this.addEventListener("resize", myResizeHandler);
    //handler
    private function myResizeHandler(event:ResizeEvent):void{
    width = Math.max(someMinimumCalculatedWidth(), width);
    height = Math.max(someMinimumCalculatedHeight(), height);
    As shown ... within the event handler, I set width/height
    properties of the panel. In the case where they are different than
    current width/height, it expected it would trigger yet another
    resize event .... and I expected to get into some kind of nutty
    event loop (as you can see ... I'm in that ** I'll try anything
    ...** mode). Surprisingly ... it worked properly. There doesn't
    seem to be a resize event triggered when I set the width/height to
    values different than they were before entering the handler? I've
    perused the Panel/UIComponent source and everything I see leads me
    to believe another resize event would be triggered.
    So ... as strange as it sounds, I'd like to understand why
    this works :-) I can't bring myself to just move on without knowing
    why another resize event isn't dispatched and why I don't end right
    back up in myResizeHandler ...

    "AJC5327" <[email protected]> wrote in
    message
    news:[email protected]...
    >I have a class that extends Panel. I add some buttons
    >(Min/Restore/Max/Close
    > ... top right corner,etc) to the chrome using
    rawChildren.addChild. I'd
    > like to
    > restrict the window to never be allowed to get to a
    height less than the
    > height
    > of the buttons or a width less than the combined width
    of the buttons
    > (this is
    > a generalization, I've included logic to account for
    borders, etc).
    > Nevertheless, I've tried countless approaches ... then I
    tried listening
    > for a
    > resize event ...
    >
    > //in constructor
    > this.addEventListener("resize", myResizeHandler);
    >
    > //handler
    > private function
    myResizeHandler(event:ResizeEvent):void{
    > width = Math.max(someMinimumCalculatedWidth(), width);
    > height = Math.max(someMinimumCalculatedHeight(),
    height);
    > }
    >
    > As shown ... within the event handler, I set
    width/height properties of
    > the
    > panel. In the case where they are different than current
    width/height, it
    > expected it would trigger yet another resize event ....
    and I expected to
    > get
    > into some kind of nutty event loop (as you can see ...
    I'm in that ** I'll
    > try
    > anything ...** mode). Surprisingly ... it worked
    properly. There doesn't
    > seem
    > to be a resize event triggered when I set the
    width/height to values
    > different
    > than they were before entering the handler? I've perused
    the
    > Panel/UIComponent
    > source and everything I see leads me to believe another
    resize event would
    > be
    > triggered.
    >
    > So ... as strange as it sounds, I'd like to understand
    why this works :-)
    > I
    > can't bring myself to just move on without knowing why
    another resize
    > event
    > isn't dispatched and why I don't end right back up in
    myResizeHandler ...
    A lot of times I find I have to go several classes up the
    inheritence chain
    to find where something lives. A shortcut to this is to find
    the public
    class extends statement and click whatever it extends. Press
    F3.
    HTH;
    Amy

  • Resize event triggerd on TransistionManager.start ?!

    Hello there i got something in AS3 thats a bid odd or maybe im doing something wrong.
    I made a small example te clear some things up (see bottom part):
    This example relies on 1 MC on the stage called testMc now when you run this code it works fine.
    Evry time you click the movieclip in does what its suppose to do.
    The output shows
    trans
    trans
    trans
    trans
    etc
    The problem lies when you resize the screen and then press the button again for a few times you will see this in the output
    trans
    resize
    resize
    resize
    resize
    resize
    resize
    trans
    resize
    trans
    resize
    trans
    resize
    trans
    resize
    Somehow after the resize is done it keeps calling out for the resize event.
    How is this possible ?! and what can i do to fix this problem Ow i made it in CS5 if thats any help
    Thanks in advance
    import flash.events.MouseEvent;
    import fl.transitions.*;
    import fl.transitions.easing.*;
    stage.addEventListener(Event.RESIZE, stageResize, false, 0, true);
    function stageResize(evt:Event):void
        trace('resize');
    testMc.addEventListener(MouseEvent.MOUSE_DOWN, testTrans, false, 0 , true);
    testMc.buttonMode = true;
    function testTrans(evt:MouseEvent):void
        trace('trans');
        TransitionManager.start(testMc, {type:Fly, direction:Transition.IN, duration:2, easing:Elastic.easeOut, startPoint:4});

    I don't think very many people use the TransitionManager class or really care about it at all. It is very limited in what it does and isn't very explicable or flexible. That is probably why nobody has responded.
    But evidently there is something in the Class that causes a resize event to be fired if the stage has been changed from its original size. BTW, are you testing this just in the IDE test environment? Most likely since it includes trace statements. Have you verified that it still does this on an html page (or whatever your eventually delivery format will be)? I tested it under AS3 in the testing environment and saw what you are seeing. But I haven't tried the other formats.
    If you are on a PC you could go into the Class files and add some trace statments in the classes and see where that event might be getting dispatched. The files are at:
    C:\Program Files\Adobe\Adobe Flash CS4\Common\Configuration\ActionScript 3.0\projects\Flash\src\fl\transitions
    Be sure to make a back up before you go messing with them.
    But the best thing to do would be to not use the TransitionManager class!

  • Window Resizing event

    Is there any way to detect a window resizing event? When I grad the corner of a JFrame, I'd like to be able to tell that it is being resized. If anyone konw a way of doing this, please let me know.
    Alan

    You could have your window implement the ComponentListener interface. There is a method that gets called when the component's size changes.
    -S-

  • Resize event

    if (EventEnum != SAPbouiCOM.BoEventTypes.et_FORM_ACTIVATE & EventEnum != SAPbouiCOM.BoEventTypes.et_FORM_LOAD)
         SAPbouiCOM.Form oCurrentForm = SBO_Application.Forms.Item(FormUID);
                    if (EventEnum == BoEventTypes.et_FORM_RESIZE)
                        try
                            oCurrentForm.Items.Item("PLB").Left = oCurrentForm.Items.Item("10000330").Left - oCurrentForm.Items.Item("PLB").Width - 3;
                            oCurrentForm.Items.Item("PSOB").Left = oCurrentForm.Items.Item("PLB").Left - oCurrentForm.Items.Item("PSOB").Width - 3;
                            oCurrentForm.Items.Item("PLB").Top = oCurrentForm.Items.Item("10000330").Top;
                            oCurrentForm.Items.Item("PSOB").Top = oCurrentForm.Items.Item("PLB").Top;
                        catch { }
    //TODO: This is triggered many times. WHY ?????
    My goal is to keep 2 custom buttons aside system one but
    I tried many things in form_Load, Activate or with things like BeforeAction, etc..etc
    I dont know how to make sure that the buttons are really positioned correctly and avoid makeing a call to the resize event many times for nothing
    In this actual form, the code make the form flickering many times before get finaly stop.
    Else then that, the buttons are very nicely placed and when I resize, they stay right at their place.

    > Marc ...
    >
    >
    > My guess is that you can achive this by specifying
    > the controls for which you need the resize.  You can
    > do something like this ..
    >
    > if (EventEnum !=
    > SAPbouiCOM.BoEventTypes.et_FORM_ACTIVATE & EventEnum
    > != SAPbouiCOM.BoEventTypes.et_FORM_LOAD)
    >                {
    > SAPbouiCOM.Form oCurrentForm =
    > SBO_Application.Forms.Item(FormUID);
    > if (EventEnum == BoEventTypes.et_FORM_RESIZE)
    > {
    > try
    > {
    >      switch (FormUID)
    >      {
    >           case "PLB":
    > oCurrentForm.Items.Item("PLB").Left =
    > t = oCurrentForm.Items.Item("10000330").Left -
    > oCurrentForm.Items.Item("PLB").Width - 3;
    > oCurrentForm.Items.Item("PLB").Top =
    > p = oCurrentForm.Items.Item("10000330").Top;
    >                break;
    >           case "PSOB":
    > oCurrentForm.Items.Item("PSOB").Left =
    > t = oCurrentForm.Items.Item("PLB").Left -
    > oCurrentForm.Items.Item("PSOB").Width - 3;
    > oCurrentForm.Items.Item("PSOB").Top =
    > p = oCurrentForm.Items.Item("PLB").Top;
    >                break;
    >           }
    > }
    > catch { }
    > }
    > }
    >
    > The idea is to try to delimit the times the Resize
    > event is detected.  Also try using the
    > <b>oForm.Freeze = true</b> at the beginning and
    > <b>oForm.Freeze = false</b> when done setting the
    >  controls.  This should take care of the flickering.
    Sorry but it never get into any one of those 2 case.
    All I see is "F_12" or "F_13" when I debug at the switch line

  • I keep getting calls from a block caller id and it's some dude speaking arabian what do i do? How do i stop this?

    I keep getting calls from a block caller id and it's some dude speaking arabian what do i do? How do i stop this?

    Stop answering calls with blocked numbers. If it's someone who really wants to talk to you, they'll leave you a message and you can call them back.

  • I updated my iPhone 4 to iOS5 and let it sync with my Macbook and now all my iPhone iCal entries are gone. How can I get my iCal events back on my iPhone?

    I updated my iPhone 4 to iOS5 and let it sync with my Macbook (running Lion) and now all my iPhone iCal entries are gone. How can I get my iCal events back on my iPhone?

    Me too!  Help anyone?

  • How do I get rid of event details in iCal in iOS?

    I'm trying to learn how to get rid of event details in iCal on my iPhone. With the event itself "edit" comes up when I touch the item. For event details, however, the "edit" option does not appear.

    Not quite sure what you mean by "details", but after touching Edit for the event, touch the lines with the name and location and a cursor shows with the keyboard to edit those.
    Note that you won't be able to edit Exchange synced calendars.
    Also note that "iCal" is the OS X app.  The iOS app on your iPhone is "Calendar."

  • How To Get The CLOSE Event In a JSP File?

    Hello everybody,
    Right now I am working in a JSP project which is about access log, when the users start , oprate, or close the system, the access log system works. I am in trouble in that when the users close the system, how can I get the close event?
    The JSP file contains the following fields :
    Close Window
    How to add code to get the CLOSE Event and submit to the service?
    And If I hit the "Close Button"(on the right-top of the window), how can I get the CLOSE event, too?
    Can anyone tell me?

    1. Add a hidden field:
    <input type="hidden" id="status" value="">2. modify <a href="index.jsp" onclick ="parent.window.close( );">Close Window</a> with <a href="index.jsp" onclick ="closefn();">Close Window</a>3. Add a javascript
    <script language="javascript">function closefn(){
    document.getElementById('status').value="close";
    document.form.action="";
    document.form.method="post";
    document.form.submit();
    parent.window.close( );
    }4. Now on the action page get the value of status by request.getParameter("status"); and log it.

  • I am new to IPhoto 9.5  and I think I missed a step. I uploaded pictures but they do not appear as an event in my library.  They are in Last imported only. How can I get them into event.

    I am new to IPhoto 9.51  and I think I missed a step when I uploaded my vacation pictures. I uploaded pictures but did not import them into the library.  They are in L\last imported only.  How can I get them into events?

    If the Photos are under 'Last Import' or 'Last N Months' then they are in the Library somewhere, just not where you are expecting them to be. We know this as both Last Import and 'Last N Months' are not places, just listings of elements in the the Library.
    The two most common reasons that they can't be found is either an incorrect date on the camera or the Sorting (View Menu -> Sort Photos - or Sort Events, as appropriate) has changed.
    Quick route to find them: Right-click on one of the images in Last Import and select 'Show Event'. This will bring you to the image in the Library.

  • I can't open iTunes on my pc in windows. I keep getting a Problem event: BEX error.

    can't open iTunes on my pc in windows. I keep getting a Problem event: BEX error.  How can i fix this?  need very detailed step by step instructions on how to fix. thx

    Check out this discussion link:
    https://discussions.apple.com/thread/2777410?threadID=2777410&tstart=15

  • FTP Get File List Action Block, It's double listing files!  ver 11.5

    Hi guys.. I have a good one!   I have an FTP Get File List action block in my BLS transaction.  Occasionally, it double lists the files in its output.   For testing I put a repeater with a logevent output where I log the filename, date, and size.  Heres what I saw for my action block output.
    2009-02-13 00:38:00,963  [UserEvent] : File Name: DMM_Export_0010056.txt, File Date 2009-02-13T00:36:00, File Size 339
    2009-02-13 00:38:00,963  [UserEvent] : File Name: DMM_Export_0010056.txt, File Date 2009-02-13T00:36:00, File Size 339
    This is xMII  version 11.5.6 b73  with java 1.4.2_07
    I have a workaround by putting in a distinct action block, after the filelist, but anybody have an idea why this might happen?   My theory is that something might be occuring if the file is being written to while we try to process it, but not sure. 
    I've been building BLS parsers since 2003, (Remember those fun times with Jeremy?)   I've never seen this happen.

    My example is a sample log file before the distinct action.  The general log shows nothing other than the subsequent transaction errors I get as a result of running the same error twice (Tcode return from BAPI calls etc)
    Here is something else interesting..  my userlog file is acting funny, like its trying to write on top of itself.  could it be the transaction is actually running twice or parts of it? 
    For example look at the following log entries
    This is how my log file entry for a production confirmation should look
    2009-02-13 00:38:06,854 [LHScheduler-Int10_NestingWOProdConf] INFO   UserLog - [UserEvent] :
    However sometimes... its looking like this...
    2009-02-13 2009-02-13 00:38:11,854 [LHScheduler-Int10_NestingWOProdConf] INFO   UserLog - [UserEvent] :
    Like it started writing to the log, then started again.
    The problem we are having is that we have JCO calls to SAP in this transaction that does goods movement, we get locking / block errors back from our  saying that we (our sap account) is already updating the information.   Sometimes the information would be posted twice!  You can see how this has become a HUGE issue posting data to a LIVE system twice.
    This is happening on 2 xMII servers.

Maybe you are looking for

  • How to embed fonts in PDF Pack (Adobe X)

    I watched a video that showed a "preflight" button in the tool dropdown... I have to embed the Times New Roman font in  a document, but cannot figure out how.....

  • Posting error in BAPI_ACC_DOCUMENT_POST

    Hi Experts, I am trying to post an asset transaction by means of a BAPI BAPI_ACC_DOCUMENT_POST.In Release R/3 Enterprise the posting is rejected with error message (msg id : AA,msg num: 001)  'Asset & & not in company code &' .I have also checked the

  • Problem On Editing a Smartform in PDF with Chinese

    Hello, we are using SRM and in  a specific transaction we are generating a SAP message wich is editing a form for the PO. When we want to edit it on SRM in chinese we have problem with a lot of  ### ans everything wich doesn't mean anything. To gener

  • Zen:Vision M Album scroll

    Can I play everything by an artist without having to scroll back to each individual album?I find it frustrating to have to scroll back and then play the next album...guess I am asking...Can I just do a continuous play of an artist?Thanks...

  • Online xml import

    Hello I have a question. I want to design a document in InDesign. Some of the data like some text and pictures have to change in each document. I want that you put on a online website some information in a form. This form convert the information in x