I am trying to come up with a way to restrict beer flow using a valve that does not cause foam. I have found that a solenoid valve causes a change in the direction the beer must flow and this sharp change through a different size opening creates foam quickly. I have thought about a ball valve or pinch valve but I need it to be electric, work very quickly and have a small form factor. 

Does anyone know if anything like what I created in this video exist? <https://youtu.be/iE6qe7045Ck>

The idea would be electromagnets that cause the metal pieces to slide in one direction or the other opening and closing the flow of beer. The idea is keeping the opening in the valve the same diameter as the inner diameter of the tubing I would be using (3/8"). It would need to handle at most 14 psi and at least 12 psi. (Average beer lines are 9-10psi)