LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
Eric_BOB

Add First Run event on event structure

Status: New

if you want do something from the start of event structure, you can creat a dynamique registration event a fire it immediatelly ,like in diagram below.

It will be  handy to put on it the initialisation actions and like that minimise the size of diagram.

I like if there is one even "first run" on even structure (first run or first iteration).

 

First run event.PNG

Eric

13 Comments
hari125
Member

How to create a Event structure inside a case structure and run all the cases one by one......For example I have 5 cases in case structure and 3 cases in event structure and after my second case in case structure the event structure should start and comple the 3 events and come to case structure and complete all the cases in case structure and end the VI

altenbach
Knight of NI
Is this a question, a comment, a solution, or a suggestion? Event structures NEVER belong inside case structures (there are a few exceptions, such as certain state machines that guarantee that the event structure is reached quickly and regularly, but typically there are better ways). Overall, your description is quit convoluted. Would you mind starting a new discussion in the LabVIEW forum and maybe show us some code? Thanks!
AristosQueue (NI)
NI Employee (retired)

hari125: It sounds as if you're asking for fall-through behavior, as with a C-style "switch" statement. No such facility exists directly in LabVIEW. You can code such a thing with a queued message handler (I leave you to Google that term).

 

I suggest you start a new forum thread to discuss this (because it is off-topic here). When you post that new forum thread, please post an image of what you're trying to do. Nothing helps a LV discussion like pictures!!!