Hi Guangde,
I think, the best way is using semaphore.
Look at the LabVIEW examples/general/synchexm.llb/ Semaphore with SubVIs.vi
Mike
Guangde Wang wrote:
> Hi Mike,
>
> Thank you for your interest. I have five tanks to rotate to make sure that there
> will be enough gas supply overnight. The five tanks will rotate from first one to
> the fifth one and rotate back to the first one. By detecting the first closed tank
> and opening it, we do need the sequence to stop after it detectes the first closed
> one and turns it open. Other wise, it will turn all the tanks open.
>
> I think I solved the problem by detecting the first opened tank in which the gas is
> running low, we'll close it and open the next tank. I have to open the next one
> after the sequence, other wise when the sequence goes to the next page, it will
> detect another opened tank and opens it. My program is running ok now.
>
> There should be some other ways to reach the same goal. I do think it will be a
> good feature if LabVIEW can stop a sequence when it's desired.
>
> Best regards,
>
> Guangde
>
> Mike Manzheliy wrote:
>
> > Hi Guangde,
> > How many tanks do you have?
> > Is the number of tanks is various?
> >
> > Mike Manzheley
> > Automated Control Systems
> >
> > Guangde Wang wrote:
> >
> > > Sergey:
> > >
> > > Thank you for responding to my message.
> > >
> > > What I need to do is to open a series of gas tanks. Flowmeter will check the
> > > flow rate, if the flowrate is low enough then turn on the next tank and keep
> > > the current one open. So the sequence will find the first closed tank and
> > > open it. I don't want to open the tanks down the sequence, that's why I want
> > > it jump out of the sequence.
> > >
> > > Thank you for letting me know that we can not do it this way in LabVIEW, I'll
> > > have to figure out some other way to do it.
> > >
> > > Best regards,
> > >
> > > Guangde
> > >
> > > Sergey Krasnishov wrote:
> > >
> > > > Guangde Wang wrote:
> > > >
> > > > > I have an application in that I want a sequence to stop and jump out of
> > > > > it after certain criteria is met. I don't know whether we have some way
> > > > > to do it in LabVIEW 6i. Any one has a solution for this?
> > > > >
> > > > > Thank in advance,
> > > > >
> > > > > Guangde Wang
> > > >
> > > > You should not use sequence for it.
> > > > If you for some strange reason want to use sequence for this purpose
> > > > anyway, put contents of each next frame into case structure and wire
> > > > boolean local variable to that cases to trash the rest of frames. It's
> > > > not LabVIEW-like programming.
> > > >
> > > > You can read in zone.ni.com for the subject "rules to wire" part2 and
> > > > read LabVIEW FAQ about stopping for loops. Issues are the similar.
> > > > http://labview.pica.army.mil/resources.html#FAQ
> > > >
> > > > --
> > > > Sergey Krasnishov
> > > > ____________________________________
> > > > Automated Control Systems
> > > > National Instruments Alliance Member
> > > > Moscow, Russia
> > > > sergey_acs@levsha.ru
> > > > http://acs.levsha.ru