LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

event structure

I'm trying to make it so that when certain conditions are true (pointed out with arrow in attached VI) that the subVI in my event structure executes, and that when the conditions are false it will cease excecution. Any advice will be appreciated!

 

Thanks

 

0 Kudos
Message 1 of 4
(3,109 Views)

I guess I'm blind.  I don't see any arrows in your vi.  If you are wanting the DAQ Assistant to run only when the green boolean wire becomes True, then don't use an event structure.  That is not what it is for.  Use a case statement and put the code in the True case with nothing in the False case, and wire the green boolean wire to the question mark on the case border.  While your loop is running, the True case will only execute if the boolean wire is True.  Otherwise it won't execute.

 

Learn how to clean up your diagram to make it easier to read.  Don't hide wires behind other structures.  You might know where they go, but to people who are trying to help you, this is a nightmare.  We have to clean it up to see what is going on.

 

- tbob

Inventor of the WORM Global
Message 2 of 4
(3,103 Views)

Student  without -a-name,

 

sure, you have an event structure

 

Read the help that ships with LabVIEW and post a specific question--

 

We (I) Love to help people to learn about LabVIEW but,-(pause for effect) - is that "lobster" or "spaghetti" you are bringing for dinner?

 

What "Certain Conditions?" (e.g. stimulae)

 

What responses

 

I learned "I  C  O"   Input Conversion  Response

 

 

Do they still teach that?


"Should be" isn't "Is" -Jay
0 Kudos
Message 3 of 4
(3,090 Views)

Hello,

 

Like was mentioned before, the best way to do what you are trying to do is to use a Case Structure instead of an Event Structure. I am attaching an example of how this works.

 

 

Eli S.
National Instruments
Applications Engineer
0 Kudos
Message 4 of 4
(3,028 Views)