11-07-2015 09:32 PM
@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.
11-08-2015 09:57 AM
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?
11-08-2015 03:12 PM
@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.
11-08-2015 07:48 PM
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.