def METHOD_NAME(bpod, reward_valve_time):
    sma = StateMachine(bpod)
    sma.add_state(
        state_name="valve_open",
        state_timer=reward_valve_time,
        output_actions=[("Valve1", 255), ("BNC1", 255)],  # To FPGA
        state_change_conditions={"Tup": "exit"},
    )
    bpod.send_state_machine(sma)
    bpod.run_state_machine(sma)  # Locks until state machine 'exit' is reached
    return