Jump to content

Eugen Graf

Members
  • Posts

    432
  • Joined

  • Last visited

Posts posted by Eugen Graf

  1. QUOTE(Tomi Maila @ Apr 17 2007, 04:58 PM)

    Because you should register the event for both event handlers independently...

    EDIT: Event registrations are like mail boxes. In your loop you put two loops checking the same mailbox. I guess the timeout occurs because of race condition. Event handler starts to handle event but notices that it's already handled. If you register the event for both loops the timeout doesn't occur. Your upper loop is generating user events for itself in reponse to the same user events. This will not be very wise :)

    Tomi

    Thanks, I know its not right to generate event if the same occures, so I will get neverending story in my programm. I want only to understand how user events work.

    And I know too, that two event structures in one VI have to be avoided. But my second loop simulates only an another task (other VI, which will be started dynamically).

    The aim was to register all events in the main task and handle them in other tasks, I want to commit only the registration refnum to other tasks, but you say its not possible, I have to register events in each task.

    Eugen

  2. QUOTE(JFM @ Apr 2 2007, 12:16 PM)

    Use the break point tool from the Tools-Palette.

    When the break point tool is black, it will add a breakpoint, when it is white it will remove a previously added breakpoint.

    In your case use the tool and click within the loop.

    /J

    Thanks, I normally don't use breakpoint tool, so I couln't know this. It was really automatically tool selection, as you wrote.

    Eugen

  3. QUOTE(LV Punk @ Mar 30 2007, 01:50 PM)

    Thank you very much for this information.

    QUOTE(LV Punk @ Mar 30 2007, 01:50 PM)

    I almost always create my queues as part of my application startup using a fixed size, immediately populate them with dummy data (to reserve the memory) and then flush the queue.

    Do you do it in a for loop? So in your initialisation step? Can you post an exapmple? Thanks

    QUOTE(LV Punk @ Mar 30 2007, 01:50 PM)

    I think allowing a queue grow to unbounded is "asking for trouble".

    Its right.

    Eugen

  4. Hello all,

    if I see an unlimited queue size, I think LV must realloc the memory every operation with this queue. Now I ask me, its only if the size is unlimited or the memory will be reallocate if the size is definied?

    If the memory will be reallocate, its more more slower as the "normally" queue in other programming languages.

    Eugen

  5. Thanks, but the presentation is in japan and in the thread from NI forum describes my way to make that, but I still know how to implement it with VI server. My problem is only, that the main VI will be shown for 1 ms or fewer, because its the top level VI.

    Eugen

  6. Hello everybody,

    I want to implement a intro window in my application. During starting and initialization of my main, a intro (with groving transparency) window should be shown. Also I can't place the intro subVI to my main, because it will be wait until intro is done. Therefore I start my intro by VI server in the first state of my main state machine. You can see both pictures appended.

    The problem is if I start my exe, so top level VI is my main. The window of the main will be shown for few microseconds starting exe. I want avoid it, I want nothing will be shown before intro.

    Should I make my intro as top level and start my main there or I can set it in VI settings or exe builder or ini-file?

    Thanks, Eugen

    Here is my intro VI.

    Eugen

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.