LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Repeated sequence in a case structure

Solved!
Go to solution

@akifyalcinkaya wrote:

Hi altenbach,

 

I have another problem. I thoguht about it for a few days and tried hard but couldn't do it. I need to add another valve (V3) to release the pressure instantly before Valve 2 is opened (regarding case #2). So it should be like the following:

 

 

V1 = open,    V2 = closed, V3 = closed                                                              (duration = 100 ms)

V1 = closed, V2 = closed, V3 = open and closed                                            (duration = 1-10 ms "like a latch action")

V1=  closed, V2 = open  ,  V3 = closed                                                              (duration = 100 ms)

 

V1 = open,    V2 = closed, V3 = closed                                                              (duration = 100 ms)

V1 = closed, V2 = closed, V3 = open and closed                                            (duration = 1-10 ms "like a latch action")

V1=  closed, V2 = open  ,  V3 = closed                                                              (duration = 100 ms)

....

 

I may even need to change the duration of various stages but I am not sure about that. How would you do that?

 

Thank you!

 


If this is a new problem, mark this one as solved - if indeed it is - and start a new message in the forum.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 21 of 24
(1,242 Views)

Actually this is related to the same problem so I did not want to create a new topic for it. Should I post a new one?

0 Kudos
Message 22 of 24
(1,217 Views)

@akifyalcinkaya wrote:

I have another problem. I thoguht about it for a few days and tried hard but couldn't do it.

 


Just learn about state machines. If the problem can be described in so few words, implementing it in LabVIEW should not take more than a few minutes. Can you show us what you tried?

 

"Open and closed" is not a state, you need to be more precise. Should it be open for 1ms and closed for 9ms?

You need to drill down to atomic steps.

How precise should the timing be?

How fast are your valves? Can they really operate in a millisecond? We have some very fast valves and it is difficult to go below 1ms.

0 Kudos
Message 23 of 24
(1,196 Views)

I will learn about state machines to solve this issue. Thank you for the recommendation. I use solenoid valves, they react really fast. "open and closed" means just open the valve for 1-10 ms and then close it. Timing does not have to be precise. I will try to figure out state machines and hopefully implement it to my code.

0 Kudos
Message 24 of 24
(1,172 Views)