LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Start event from case structure

I'm running my main programm inside an event of an eventstructure.
Beside this main event I additionally have 3 other events in this event structure.
To save "screen space" I would like to start indirectly one of my other events from a case
placed inside another event.
Is this possible - would be glad if you have an example.
0 Kudos
Message 1 of 4
(2,610 Views)
Hi
 
Imaging your program as you describe it, I say no. If you have your main program inside an event case, you don't get out of this specific case unless you stop the main program.
 
I'd suggest you to search the forum for "producer/consumer" design patterns.
 
Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 2 of 4
(2,600 Views)
You didn't say what these other events are tied to, but perhaps dynamic events may work for you. There's examples that ship with LabVIEW that show you how to create a user event and fire it programmatically.
0 Kudos
Message 3 of 4
(2,593 Views)
You are still completely misunderstanding the purpose of the event structure (see also my answer the other thread). 🙂
 
The main code of the program does NOT belong inside an event structure. What good is an event structure if it is tied up indefinitely inside one of the event cases??? 😮
 
An event structure is most useful for dealing with interactions by the user and must be ready to handle those at any time. It is not a tool to "save screen space" (whatever that means). If you are running out of diagram space, consider wrapping your code segments into subVIs.
0 Kudos
Message 4 of 4
(2,585 Views)