07-19-2017 11:42 AM
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?
Solved! Go to Solution.
07-19-2017 12:03 PM
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.
07-19-2017 12:06 PM
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.
07-19-2017 12:11 PM
I now only have one event structure and everything works well.
Thanks
05-23-2024 10:43 AM
Hey Jsandoval,
Could you please share the Block diagramm?
05-23-2024 11:06 AM
@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.
05-23-2024 11:09 AM
@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.