Driving multiple electromagnets

Sounds like a solenoid with a snubber across it, not just a solenoid.