Skip to content
Snippets Groups Projects

Dev lpgbt phase mode

Merged Lucas Mollier requested to merge dev_lpgbt_phase_mode into master
1 unresolved thread

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
1270 Returns:
1271 phase_lock (boolean): True if the phase is locked, False if not.
1272 phase (int): the phase of the e-group.
1273 """
1274 assert phase_mode in ["fixed_phase", "continuous_tracking", "initial_training"]
1275 assert group >=0 and group < 6, "The group is not in the correct range (0-5)"
1276 G_str = str(group)
1277 if phase_mode == "initial_training":
1278 phase_lock,phase = self.phase_training(group = group)
1279 else:
1280 if phase_mode == "fixed_phase":
1281 assert phase >=0 and phase < 16, "The phase is not in the correct range (0-15)"
1282 self.write_read("EPRX"+G_str+"Control", "EPRX"+G_str+"TrackMode", 0)
1283 self.write_read("EPRX"+G_str+"0ChnCntr", "EPRX"+G_str+"0PhaseSelect", phase)
1284 phase_lock = self.read("EPRX"+G_str+"LOCKED", "EPRX"+G_str+"CHNLOCKED")
1285 phase = self.read("EPRX"+G_str+"CURRENTPHASE10", "EPRX"+G_str+"CURRENTPHASE0")
  • Lucas Mollier added 1 commit

    added 1 commit

    Compare with previous version

  • Lucas Mollier approved this merge request

    approved this merge request

  • Lucas Mollier marked this merge request as ready

    marked this merge request as ready

  • Lucas Mollier mentioned in commit 5196ebae

    mentioned in commit 5196ebae

  • merged

  • Please register or sign in to reply
    Loading