Skip to content

Commit

Permalink
say about the pressure increase steps
Browse files Browse the repository at this point in the history
  • Loading branch information
stan-dot committed Aug 5, 2024
1 parent c56ed84 commit f5356ef
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions src/i22_bluesky/plans/test_pressure_cell.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,26 @@

import bluesky.plan_stubs as bps
from dodal.common import MsgGenerator, inject


from dodal.devices.pressure_cell import PressureCell


def test_pressure_cell()-> MsgGenerator:
def test_pressure_cell() -> MsgGenerator:
yield from {}


def make_popping_sound() -> MsgGenerator:
DEFAULT_PRESSURE_CELL = PressureCell("DEFAULT_PRESSURE_CELL")


def make_popping_sound(
pressure_cell: PressureCell = DEFAULT_PRESSURE_CELL,
) -> MsgGenerator:
# set V3 to open
# pressure_cell.all_valves_control.fast_valve_control[3].set(FastValveControlRequest.OPEN)
# set V5 or V6 to open
# pressure_cell.all_valves_control.valve_control[5].set(ValveControlRequest.OPEN)
yield from bps.mv(pressure_cell, 0)
# todo expect the pressure to rise
readout = pressure_cell.cell_temperature.read()
# ok but which pressure transducer?
yield from bps.collect(pressure_cell.pressure_transducers[1], name="omron_pressure")

0 comments on commit f5356ef

Please sign in to comment.