VI High 7 - How to Program Events with the Event Structure in LabVIEW

Поділитися
Вставка
  • Опубліковано 13 вер 2024

КОМЕНТАРІ • 25

  • @kamranbigdely
    @kamranbigdely 11 років тому +9

    Loved the joke you made at the beginning! :)

  • @Sixclear
    @Sixclear  11 років тому

    Good question! The event structure will execute if any of the cases inside execute. So, let's say I have an event structure with 4 cases by itself on a block diagram. If any one of the cases execute, the structure executes and the VI stops. The rest of the cases aren't handled. However, typically we want to handle an event and then have the event structure ready to handle the next event. So we put it in a loop. Each iteration of the loop corresponds to one event case executing. Hope this helps!

  • @Sixclear
    @Sixclear  13 років тому

    Thank you for your feedback! This video was shot using LabVIEW 2010. You can count on us always using the current version, which updates each August. So in August 2011 we will see LabVIEW 2011 come out and you can bet we'll be using that!

  • @vahidmotevasseli9377
    @vahidmotevasseli9377 8 років тому

    It is very simple and practical description of events. you should expend that your self for your own usage.

  • @Sixclear
    @Sixclear  9 років тому

    Taktloss TAK Sorry for the delay! If you don't use a while loop, then you'll only execute one event before the VI ends. If you use a while loop, then each loop iteration you will handle another event. Using a while loop is much more common, though there are rare cases where you may want to execute your event structure and either end the VI or move on in dataflow.

  • @matiknik
    @matiknik 7 років тому

    Simple Short & Precise... Thanks for sharing! Cheers! :D

  • @Sixclear
    @Sixclear  12 років тому

    Thank you to everyone who gave compliments on this video! We're churning out more so please subscribe to us here on UA-cam and check out our LabVIEW video blog at blog.sixclear.com!

  • @Sixclear
    @Sixclear  11 років тому

    Good point, we'll take a look at doing that next time!

  • @Sixclear
    @Sixclear  9 років тому

    @Daan Koster, it's hard to know exactly what you mean without seeing your code, but remember that everything on the block diagram will execute when the VI executes. So if the Random Number function is just sitting by itself on the block diagram, it will definitely execute at some point!

    • @amirasofa9995
      @amirasofa9995 8 років тому

      ɷ Heeeey Frienddsssss I Have F0undddd Workingggggg Online Hacck visittttt : - t.co/c9BB2Swzaz

  • @Sixclear
    @Sixclear  12 років тому

    A true value is sent to the conditional terminal of the loop, not a false. That's why the loop stops. The stop button has been given its own event case. So when the stop button is pressed, that event case executes and the terminal passes a true value out. That value is then passed through the wire to the conditional terminal of the while loop.

    • @philipwilliams5429
      @philipwilliams5429 5 років тому

      i don't know much about events, but my guess is yes...in this case the loop continues to run until stopped. but this demo -- which has to keep running somehow until the event -- is kind of trivial case...in general, i'd expect there'd be an arbitrary amount of code being executed in the main while loop, so it wouldn't seem like much of an issue.

  • @lucasmoreira9711
    @lucasmoreira9711 5 років тому

    Thank you for all information!!

  • @GHOUL4377
    @GHOUL4377 3 роки тому

    THANK YOU IT WORKED!

  • @porsgaard1985
    @porsgaard1985 12 років тому

    In the final example, when "stop" is pressed, why/how is false sent to the conditional terminal of the loop?

  • @Sixclear
    @Sixclear  12 років тому

    @limacarlos1013 Using events for this type of application would be ideal as the calculations would typically take a short time to execute and thus could be executed within each event case. I'm not sure what you mean when you say you want to change each individual button to a value. I imagine that you will just have a Result numeric indicator that will updated with each calculation. All the calculator buttons will have boolean text with either the number or operation. Hope this helps!

  • @borzola
    @borzola 10 років тому +1

    it was very helpful, thanks!

  • @zardouayassir7359
    @zardouayassir7359 7 років тому

    Thnkyou for the tutoriel
    I didn't put the ok button in the event structur, however it work !!!!

  • @modestt
    @modestt 3 роки тому

    Its interesting you say OK button is not Polled albeit whole event loop with button is enclosed in an infinite while loop :-)

  • @TheArscheisse
    @TheArscheisse 11 років тому

    Could you explain to me why you still use the while loop after inserting the event structure, please. I tried it out without the while loop, it works and with the highlight function I can see that the Programm isn't constantly polling. I'm new to Labview, so sorry if the answer is obvious.

  • @limacarlos1013
    @limacarlos1013 12 років тому

    what if im trying to use say buttons like on a calculator. can i use events as well? how do I change each individual button to a value?

  • @danothebananovitch9678
    @danothebananovitch9678 9 років тому

    Thank you.
    I have an event structure that activates the 'random number generator' even when it is outside the even structure. How do you explain that?
    thanks in advance!

  • @Mr.Wacky010
    @Mr.Wacky010 9 років тому

    i got a question siclear:i want to start and stop a video while my source stops or starts.

    • @Sixclear
      @Sixclear  9 років тому

      Hi Loca, I'm not sure exactly what you mean. Which video are you referring to? And is this some sort of video source you're referring to?

  • @wizardjo
    @wizardjo 13 років тому

    Nice!!! Thanks You!!!