Event handler in later sequence frame is handling my event

Consider a case where you have a sequence with two frames.  Each frame has an event handler.  If you are in frame 0 processing events, do you think that the event handler in frame 1 should have any relevance?  The attached vi demonstrates that it does.  This seems like a bug to me or at least something to watch out for.  I spent a half-day trying to figure this one out.

kc64 wrote:
I read the caveats and recommendations several times.  I recognize that my example vi shows two event structures in one loop but, in my application , this is not the case.  I don't see any clear instruction on that help page that would indicate that I have broken some rule of event structure use.
That's bothersome.  I use sequences all the time and nobody has ever commented that my code is badly designed.  I wonder why NI provides that function if it promotes poor code design.  You did say "often" and not "always" so I have an out. :^)
Well, maybe they missed something in the caveats   But using more than one Event Structure is not a good idea.
I just posted something to that effect this morning: http://forums.ni.com/ni/board/message?board.id=170&thread.id=337440
As for using a sequence structure (especially Stacked Sequences), I totally agree with Denis that it is poor design.  Unfortunatley, NI cannot remove them from the palette due to compatibility with older versions.  I would vote that they be removed ASAP.
However, it is your choice to follow other people's advice or not to follow it.   

Similar Messages

  • How to handle user exit sequence

    how do handle the userexit sequence i,e in which order the user exits are stored?

    one  and state solution
    go to debugger mode make  breakponint on statement call fm.
    and press f8 continiously and check exit fm one by one.

  • "Exit" button used in multiple sequence frames

    I am hoping there is a more elegant way to do this...
    See the attached VI for a vastly-simplified program that typifies what I am trying to accomplish.  Basically, I've got one button that I want available in multiple sequence frames.  In this case, I have used an "Exit" button.  When pressed, the program passes through any remaining sequence frames until it ends.  The final frame "unclicks" the "Exit" button.  This final frame is necessary because I had to set the mechanical action of the Exit button to "Switch When Released" because I used local variables in all sequence frames after the first one.
    Is there a way I can accomplish the same functionalities of this program without using local variables and/or while setting the mechanical action of the "Exit" switch to "Latch When Released?"  I am specifically looking for solutions which will work in multiple frames of a stacked sequence structure (I realized there are ways to turn the three lights on without using a stacked sequence structure, but I am not interested in doing so).
    Any help would be greatly appreciated!  Thanks!
    Solved!
    Go to Solution.
    Attachments:
    Stop Button Demo.vi ‏14 KB

    hi dia,
    So many discussion was finished regarding this multiple Event structure. In your code totally 3 event structures you are using. But in a program only one Event structure is enough to operate properly. Because in LabVIEW only one event queue is there in built. So if you use more than one event structure LabVIEW will got confused and it will get queued up, even though there is no state and it will be masked some time. That's why your code taking so much of time to exit. Some times it seems like hang...
    Try this VI...
    <<Kudos are welcome>>
    ELECTRO SAM
    For God so loved the world that he gave his one and only Son, that whoever believes in him shall not perish but have eternal life.
    - John 3:16
    Attachments:
    Event Handle.vi ‏11 KB

  • Sequence of firing of report events

    Hi,
    wat is the sequence of firing of report events.
    Thanks,
    Mohit.

    hi
    <b>The different events in a report Program are:</b><b>Load-of-program</b>
    Triggers the associated event in an internal session after loading a program of type 1, M, F, or S. Also runs the associated processing block once and once only for each program and internal session.  The processing block LOAD-OF-PROGRAM has roughly the same function for an ABAP program of type 1, M, F <b>or S as a constructor has for classes in ABAP Objects
    Initialization.</b>
    This event is executed before the selection screen is displayed .
    Initialization of all the values.
    You can assign different values other than the values defaulted on the selection screen .
    You can fill your selection screen with some values at runtime.
    At Selection-Screen.
    The event is processed when the selection screen has been processed (at the end of PAI ).
    Validation & Checks of inputted values happen here
    <b>Extras :</b>…ON VALUE-REQUEST FOR psel_low_high .
        The pushbutton for F4 (Possible entries) appears beside the appropriate field.
    ... ON HELP-REQUEST FOR psel_low_high
    . ... OUTPUT
    This event is executed at PBO of the selection screen every time the user presses ENTER
    <b>Start-of-Selection.</b>
    Here the program starts selecting values from tables.
    <b>End-of-selection.</b>
    After all the data has been selected this event writes the data to the screen.
    <b>Interactive Events</b>
    Used for interactive reporting. It is used to create a detailed list from a basic list.
    <b>Start-Of-Selection</b>
    Processing block is executed after processing the selection screen
    All the data is selected in this block.
    All the main processing on the data except for interactive reporting is handled in this block.
    <b>End-Of-Selection</b>
    Data which is selected and has been processed is printed to the screen in this block.
    L<b>ist Processing happens in this block</b>
    Top-of-Page.
    New-Page.
    End-of-Page.
    <b>Events during List Processing</b>
    Top-of-Page.
    Triggered by the first write statement in the program
    It is used to have a standard header in the program for all the pages.
    TOP-OF-PAGE is only executed before outputting the first line on a new page
    <b>New-Page.</b>
    Can be used when one wants to display different data on different pages
    Terminates the current page and continues output on a new page.
    Will not trigger the Top-of-Page or End-of-Page.
    <b>End-of-Page.</b>
    It is used to have a standard footer for all the pages.
    reagrds
    ravish
    <b>plz dont forget to reward points if useful</b>
    Triggered by the program if the number of records exceed the line-count of the program.

  • Display Current Sequence Frame?

    I'm trying to output the current/active sequence frame to a front
    panel indicator. Is there a direct way to hook into the sequence
    structure indicator, or will I have to stich a increment function
    throughout all the frames with multiple sequence locals. It would be
    nice to be able to programatically access the sequence structure's
    total frame count and current frame for use as a program progress
    indicator.

    You could replace the Sequence structure with a Case inside a While loop. Wire the iteration of the While loop to the Case selector and to the terminal for the front panel indicator. Each case represents one frame in the Sequence. Each case will have a boolean constant wired to the Continue terminal of the While loop: in each case but the last, the constant will be True; in the last case it will be False.
    Sorry this isn't the simple answer you were looking for. This approach also works well if you have a sequence which you normally execute end-to-end, but, for some conditions, you may want to end the sequence early. Then just replace the boolean constant with a boolean expression within each case that determines whether or not to continue based on the events i
    n that case.

  • How to realize the other three events triggered by a sequence of events occurs?

    How to realize the other three events triggered by a sequence of events that occurs between Labview, and the time interval between three events for the 50ms?
    1110340053

    Are you another student who feels the need to post their "student ID" number as a part of the message?  There is really no need to do that, it is meaningless to us.
    You should ask your instructor to answer your questions rather than allowing them to turn the whole class of students loose on the forums usually asking the same identical question.
    At least in your case, the question is different from most we've seen.  Unfortunately, you haven't asked a clear enough question for us to understand what you are talking about.
    What "events" are you talking about?  Post a VI that demonstrates the code that you have written so far.

  • HU03 going to short dump for handling unit which has higher level handling

    Hi,
    I am ABAPer, i working on issue, HU03 is gong to short dump. i dubug the t code and find out that particular handling unit has higher level handling unit. I checked another handling unit which won't had higher level handling unit, that time it's not giving dump.
    Note: in HU03 T CODE, function module V51P_HU_CONTENS is fetching values. when ever handling unit has higher level handling unit, it's not fetching further values.
    venkey

    Hi,
    Goto NACE transaction code , there you select the application area then  it will give you the list  of output types then select specific output click processing routines then you will see the program name and  script used.
    Or esle goto SPRO tcode then you can find the functional tab there also you can get the details.
    Thanks,
    Aditya

  • HT2513 how do I schedule daily events in the same sequence

    How do I schedule daily events in the same sequence.

    Hello LeatherneckDevilDog,
    Thank you for the details of the issue you are experiencing with duplicate calendar entries.  I recommend reviewing the following articles to resolve issues with iCal duplicates:
    iCloud: Resolving duplicate calendars after setting up your calendar application for iCloud Calendar
    http://support.apple.com/kb/TS4118
    iCloud: Advanced Calendar and iCal troubleshooting
    http://support.apple.com/kb/TS4337
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • How can I perform a "jump" or a "goto" from a sequence frame to a previous one?

    At a point of my program, I need to jump from a sequence frame to a previous one. How can I do it?
    Thank you.

    Hi
    That is not possible! You cannot jump from one frame to another frame. A workaround is to replace a sequence structure with a case structure insight a while loop. When you wire the iteration terminal of the loop to the selector terminal of the case structure you have a "sequence structure" with the advantage to stop it in each frame. Returning to your question: Work with a state machine approach! For that you need a case structure insight a while loop with a shift register! So you can always say what the next frame must be.See under the VI templates for an example! => National Instruments\Labview\templates\state machine.vit
    Regards,
    Luca

  • Can Touch Events and Swipe Events exist in the same frame and/or movie?

    After having fully tested a file with touch events I decided to add both a touch event and swipe event to a frame.
    I started by importing the following statements:
    Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;
    Multitouch.inputMode = MultitouchInputMode.GESTURE;
    I then added th appropriate code but only touch events worked. I fiddled so more and only the gesture events worked. So before I move any further, I'm wondering if I'm wasting my time trying to get them to work together.
    So my questions are:
    Can Touch Events and Swipe Events exist together in the same frame?
    Can Touch Events and Swipe Events exist scene?
    A reference to more information about this would be helpful, if you know of any.

    I am aware of the latest releases of the components along with the plug-ins.
    This note is applicable to your scenario but you might face some issues related to organization rule wizard, custom user group creation and EAM DB log collection, as mentioned at the bottom of the note. No matter on what SP level you are with GRCFND_A at 10.1, you would face these issues.
    And so far, i don't think there is any more update from SAP on co-existence of plugins of 5.3 and 10.1
    Ameet

  • Since loading mavericks my calendar posts events one hour late.  That is, if mtg invite is for 9am it posts at 10am.  my pc clock and time zone are correct.

    Since loading mavericks my calendar posts events one hour late.  That is, if mtg invite is for 9am it posts at 10am.  my pc clock and time zone are correct.

    Hey Armando Stettner,
    Thanks for the question, and what a great question it is!
    With time zone support on, you can edit an individual event and change the time zone for that event. This list will include options for your default time zones, UTC, and "floating" - the latter of which is what you are looking for. Floating changes the event to occur at the specified time, local time.
    For information on changing an event's time zone, see the following resource:
    Calendar: Change an event’s time zone
    http://support.apple.com/kb/PH11531
    I look forward to hearing how this works for you.
    Cheers!
    Matt M.

  • I want to dump iPhoto pix to an SD card for a photo frame. In the event of duplicate numbers, I renumber in the Info window yet when the photo is dragged to the card, FINDER declares there is a duplicate. Why?

    I want to dump iPhoto pix to an SD card for a photo frame. In the event of duplicate numbers, I renumber in the Info window yet when the photo is dragged to the card, FINDER declares there is a duplicate. How can I change the photo number where FINDER allows doesn't see a duplicate?

    Because adding a Title in iPhoto is not the same as renaming a file, plus, using drag and drop means you have no opportunity to rename the file.
    However, if you use File -> Export you'll see the Filename options in the Export window - one of them is to use the Title as Filename.
    Regards
    TD

  • When I enter an event in iCal, soon thereafter multiple other "New Event" notices (one to four) appear for the same day. If I delete these unwanted "New Event" notices, they later reappear -- sometimes multiplying like rabbits. Any suggestions?

    When I enter an event in iCal, soon thereafter multiple other "New Event" notices (one to four) appear for the same day. If I delete these unwanted "New Event" notices, they later reappear -- sometimes multiplying like rabbits. Any suggestions?

    Well, using iMovie to rearrange clips in a mini DV video edited by another program is extremely time consuming. I found a workaround. It still takes time, but it's much faster than rearranging the clips using iMovie.
    The workaround is as follows. Bring up Finder and go to the directory where your event's clips are stored (typically ~/Movies/iMovie Events/<name of event>). It helps to setup Finder to be in Cover Flow mode, so you can see the beginning of each clip. Then, sort the files in ascending order by the 'Date Modified' field. This makes Finder sort the files in the same order that they were imported from the mini DV tape. Clips with timecodes have the naming convention "clip-<year>-<month>-<day> hour;minute;second.dv". Clips without timecodes use another naming convention. With the files sorted by "Date Modified" in Finder, rename clips as needed so that the date/time in their file names are in ascending order. Note: when you rename a file, you need to restart iMovie. I suggest not running iMovie while renaming files.
    I believe the file date/timestamp is only accurate to the second. Occasionally, there may be a couple of clips that have the same date/timestamp. This may cause the ordering to not be correct. The best way to find these is through iMovie. To modify a file's date/time, right click on the clip in the event in iMovie, and then select "Adjust Clip Date and Time...".
    So, this workaround is a lot easier and faster than trying to rearrange things from scratch in iMovie. But it's still time consuming. Creating a project out of an already edited video should take less than 5 minutes (not counting import time), but that's not the case.
    I submitted an enhancement request to Apple asking if they can add an option to sort an event's clips in the order that they were imported by iMovie. Those who have the same issue as me, I suggest you submit an enhancement request as well.
    Anyone have any other suggestions?
    Thanks.

  • How to visually (!) remove "sequence" frame with only one activity inside?

    Due to previous manipulations it could happen, that there are sequences (=visual sequences frame)
    which contain only one activity.
    These sequence frames are needless.
    Ok, I could remove them directly in source code.
    But is there a way to remove them visually WITHOUT removing then inner activity as well?
    Peter

    If I would have to do that, I will drag the activity outside the sequence and delete the sequence.

  • Sometimes after creating an event folder on iPhoto, all my pictures in that event will be gone the next time I open iPhoto. Why is this happening? Is there a way to retrieve the missing photos?

    Sometimes after creating an event folder on iPhoto, all my pictures in that event will be gone the next time I open iPhoto. Why is this happening? Is there a way to retrieve the missing photos?
    Most events I make on iphoto will still be there the next time I open iPhoto, while other event FOLDERS will be there, but pictures in it gone.

    What version of iPhoto? Assuming 09 or later:
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  
    Regards
    TD

Maybe you are looking for

  • How can I move an iweb website to another computer?

    I'd like to move my iweb website that's on my desktop computer to my laptop, so I can work on when I travel.  How can I do this?

  • IPhoto crashes when opening, iPhoto crashes when opening

    For a couple of weeks now, iPhoto crashes every time I open it. I have repaired disk permissions. What else can I do?

  • WD USB External Drive - file format

    OK, I've taken the plunge and bought a Macbook I've got a WD external drive formated in NTFS for back-ups. I've sussed this can only be read from the MAC - is there a format that can be used to both read and write by both Mac and XP? Thanks Mapper

  • Task List - Create New Form for Subtasks

    Hi, Is this possible to create a new form for SubTasks in SharePoint 2013 task List probably using Infopath. Out of Box, Sharepoint opens datasheet view to add the subtask for a main task. just want to know whether it is possible. Any help will be hi

  • Need Boot Camp driver 4.0 for Window Ulitmate 32 bit

    Hi, It is not possible to me via Boot Camp Assistant Window 32 bit necessary drivers to download. Has lasted for four days. Blue line only 3,5 cm (stop), the word "support" is almost blue. On the internet and on the apple page not found it. Please he