stop while loop in event loop

stop while loop in event loop

Post by chilly cha » Mon, 11 Oct 2004 19:42:12


Dear owlowl,
your piece of code here seems to be quite far from NI recommandations.
You should read the online help. Just select the "Show context help",
and select the event structure, then click the "Click here for more
help".
You will find two interestings subjects as "Caveats and
Recommandations :
- Avoid using an Event structure outside a loop.
- Avoid placing two Event structures in one loop.

Does that help ? :-)
Keep wiring...
 
 
 

stop while loop in event loop

Post by owlow » Tue, 12 Oct 2004 20:43:34

Hi chilly (getting cold...... :P),

Thanks for your reply. My method was trying to mirror some C
sequences into labview. I was letting some background processes to
run while waiting for user input to start the process ("event loop")
which has a while-loop acquisition process ("while loop in an event").
Anyway i have solved it by changing my flow.

I had some difficulties in getting the "Show context help". My
labview was not responsing to my request. Think it could be some
installation problems.

Thank you again.

owlowl

PS - Actually i found some labview features not as good as labwindows.
For me, the latter is somewhat easier to understand and use.

 
 
 

stop while loop in event loop

Post by chilly cha » Tue, 12 Oct 2004 22:04:18

Hi owlowl !
Programming in LabVIEW is often confusing at the beginning. I think
that Mirroring C techniques is not a good approach of LV. Of course,
basically, there are the same functions running here and there, but
there are a lot of specificities in LV that make the language
powerfull and attractive. As you will discover, the LV community live
with passion...
To start with, you should have a look at the FAQ, on this forum, and
also on http://www.yqcomputer.com/
And of course, you also need to be able to access the online labVIEW
help, which is EXCELLENT.
To come back to your problem, avoid using nested event structure, and
always use a while loop around an event structure. That will solve
most of your difficulties.
I'll try to post some example later for you.
Courage, keep wiring ! :-)
 
 
 

stop while loop in event loop

Post by owlow » Thu, 14 Oct 2004 22:28:04

Hi Philip,

You are right on. Thank you.

owlowl