LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Event Structure will not execute multiple times until all events have ran

Solved!
Go to solution

Hello all,

 

I have a VI that features 3 event structures that trigger on button presses of the front panel. 

 

The events are:

Initialize Laser

Begin Test

Disconnect

 

I would like to be able to change my testing parameters and then execute the Begin Test section of the code, then change the parameters again and execute again, etc.

 

The problem is LabView is only executing the Begin Test section once. If I trigger the event by pressing the button it is added to the queue but it does not execute. However, if I trigger the Disconnect section it executes and THEN the Begin Test section will execute and be removed from the queue. 

 

How do I get LabView to execute an event multiple times without needing all the events in the VI to be executed? 

 

 

0 Kudos
Message 1 of 7
(3,067 Views)
Solution
Accepted by jsandoval

jsandoval wrote:  I have a VI that features 3 event structures that trigger on button presses of the front panel.

You should only have 1 event structure.  You can have multiple cases with each case handling a different event.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 7
(3,054 Views)

All your event structures run in parallel and the loop cannot go to the next iteration unless all event structures have executed. SImple dataflow.

 

You are NOT using event structures in the right way. 

0 Kudos
Message 3 of 7
(3,050 Views)

I now only have one event structure and everything works well. 

 

Thanks

0 Kudos
Message 4 of 7
(3,044 Views)

Hey Jsandoval,

 

Could you please share the Block diagramm? 

0 Kudos
Message 5 of 7
(334 Views)

@Luka28 wrote:

Hey Jsandoval,

 

Could you please share the Block diagramm? 


That user posted exactly 2 times.  7 years ago.  It is extremely unlikely they will return to post a block diagram here.

 

I recommend that you create a new post addressing your specific problem if you can't find something else to use as a reference by searching.

0 Kudos
Message 6 of 7
(326 Views)

@Kyle97330 wrote:

@Luka28 wrote:

Hey Jsandoval,

 

Could you please share the Block diagramm? 


That user posted exactly 2 times.  7 years ago.  It is extremely unlikely they will return to post a block diagram here.

 

I recommend that you create a new post addressing your specific problem if you can't find something else to use as a reference by searching.


Besides, the block diagram is unlikely to have anything useful beyond just having a single event structure.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 7 of 7
(323 Views)