What voltage are you using to activate the gate?
There's a solenoid in the gate housing; a plunger surrounded by a coil. In the off position, the plunger is fully down surrounded by the coil. When power is applied the plunger jumps up and hits a cog on the gate's axle to force the gate down. Continuing power keeps the plunger up (and the gate down). But only if it's getting enough voltage. Else the solenoid won't be able to keep it's plunger in the fully up position (and the gate fully down).
After that, Doug's suggestion may work. But if the plunger can't keep itself fully up and you add enough weight to keep the gate down, the gate may never go back up.