Sorry, I didn't realize you're already in that room.
You need to activate the switches in the top left and top right room, but the guard will notice when a door is open while he goes around and will go inside and turn off the switch. That's why you have to hurry and get both switches on and activate the locked gate before the guard turns off one of the switches.