Controlling a valve with 0-6 V regulation

I have just received the valve. It is a 2-wire valve but both wires are black with no markings. I will figure out the connections and try the solutions mentioned here.