LabVIEW code: Event-driven producer-consumer state machine (walk-through)

Поделиться
HTML-код
  • Опубликовано: 14 дек 2024

Комментарии • 7

  • @abhinavsixfaces
    @abhinavsixfaces 2 месяца назад

    This video has helped me so much. Thank you.

  • @sergioa.cervantes4108
    @sergioa.cervantes4108 4 года назад +2

    Very clear and concise. Thanks a lot.

  • @mehdipaco88
    @mehdipaco88 11 месяцев назад

    This was very helpful! Thanks

  • @ericbrenner690
    @ericbrenner690 4 года назад +1

    A couple of things I see where improvements can me made. Why not just put the Case Structure right around your Event Structure and wire the error cluster to it? That eliminates the guard clause needed after the Event Structure and makes the top loop a event driven state machine.
    In the bottom loop, you don't need that 100 milliscond ms to Multiple. Your Deqeue Element will wait until data comes in or the shutdown clause is sent.
    Get rid of the guard clause since you don't need it around the dequeue element. As a matter of fact, I'd put one large case structure around the entire Consumer Loop While Loop and wire the error cluster to it just like I mentioned in the top loop.
    Doing these things would make your code more efficient.

    • @YM-lm8xr
      @YM-lm8xr 3 года назад

      wow, this comment of yours actually solved my current problem! thanks a lot!! Feeling lucky!

  • @sirhoschi
    @sirhoschi 7 месяцев назад

    looks like a QSM