LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW event structure not completing event

Solved!
Go to solution

@MroxVest wrote:

It sounds like each event structure needs to be in its own loop in order to allow for another to fire again. I'll make the adjustment and see what happens.


There is significant "code smell", and I think a rethinking and rearchitecting is required. Your code is a 2024 snippet that most cannot open. Please do a "save for previous (2020 or below)" and attach the VI.

 

  • We cannot tell what's in the other events
  • we cannot tell the mechanical action of switches (latch action terminal belong inside their event case!)

 

But first we need some details:

 

  • How long does each event take to complete?
  • What do they do?
  • What parts need to run in parallel?

 

Newbies often overuse/misuse event structures. Maybe a simple polling state machine would be more appropriate.

0 Kudos
Message 11 of 12
(62 Views)

Placing them all in a single event structure fixed the issue. Thank you so much!

Message 12 of 12
(58 Views)