LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make case struture be finished

I have program and one part of it works for feedback. When pressure riches some critical value it opens valve(automatic mode). As a result pressure drops back. It can work as well in constant mode: opens valve periodically for some period of time. It works perfect in periodical mode, but when I use automatic mode it works just partially: when the valve openes it reduces the pressure and condition for beginning of case structure changes. If pressure becomes lower and again higher then critical it opens valve again but I want it to be opened in same manner as in periodical mode(When the pressure reaches critical it should open valve for fixed period of time and repeat this if necessary only after some minimum fixed time).
So the question is how to make the automatic mode work.
I have put a gif image of part of VI that does this job and full VI as well.
Thanks.
 
Download All
0 Kudos
Message 1 of 5
(2,875 Views)
It is very difficult to tell what your VI does. Please try to keep the diagram size to one screen, use left to right wiring and use subVIs where appropriate to help make the diagram readable.

I tried to look at your VI but could not follow the logic with a reasonable amount of time.

Check the Style Guides.

Lynn
0 Kudos
Message 2 of 5
(2,853 Views)
Thanks   johnsold for responce.
I know that is not simple to read this vi, too much stuff in it.
For this reason I have put .gif image of vi part I am intereasted in and I forgot to mention that this part of is moved in a right upper corner of vibrafilter.vi.
In this vi everything works already and i just need this issue (mentioned in previous post) to be fixed. It is quite simple: I have signal from pressure transducer and depending on my system behaviour I can use either automated valve opening or just periodical opening to stabilyze the pressure. Valve opens for some fixed period of time and next time it opens only after some time gap. Periodical valve opening works perfect.
For automated valve opening I am using pressure transducer signal which is compared with some constant value. But it does not work properly it opens valve just for a fraction of time and closes again and then can opens again if the pressure is again gets high.  I would like to trigger "periodical valve opening" for one cycle, and repeat it only if it is necessary(pressure higher than some consant).
Hope it hepls to understand my problem.
0 Kudos
Message 3 of 5
(2,841 Views)

Hello Dr Zhdanov

I'm still not sure what you are trying to achieve.

What are the signals you are receiving, what is the data type of these signals?

It sounds like you are trying to have some control loop, so that the output value is dependent on the input value compared to some constant. But you dont give any information about the data types. Like jonsold said - as your code is quite difficult to read it is difficult to work this out.

If you can be a little more generic, rather than explaining in terms of only this project, then I can help provide an example of how to do this.

Regards

Hannah
NIUK & Ireland

0 Kudos
Message 4 of 5
(2,802 Views)
Thanks hannahW,
for the comments.
I have tried to simplify vi with the same problem.
Hope now it is possible to understand it.
The problem for me is that I am not making programs like this every day. I do them maybe once in half a year. So I am not that good in terminology.
Thanks.
Sergey.
0 Kudos
Message 5 of 5
(2,788 Views)