Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fast brake option for hwp.py #194

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

17-sugiyama
Copy link

@17-sugiyama 17-sugiyama commented Dec 19, 2024

The fast brake option in this PR is related to #179.

WG team is trying to measure the time constant by changing the hwp frequency rapidly e.g. +2Hz to -2Hz.
Current brake command is designed for gentle spindown and it takes >10 min to start inverse rotation.
New option of brake command is expected to take <2 min to spindown.
https://docs.google.com/presentation/d/1-kgAFn2sVR3R_Hp8_HcEYgZ8_SoNihm-UwsMn-Skxto/edit?usp=sharing

The modification in hwp_supervisor is discussed in PR #787 in socs.
This PR should be merged after the hwp_supervisor change is approved.

Copy link
Member

@BrianJKoopman BrianJKoopman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! I'll wait for simonsobs/socs#787 to be resolved and merged. In the meantime a couple of comments below.

@@ -20,7 +20,7 @@ def set_freq(freq):
check_response(hwp, resp)


def stop(active=True, brake_voltage=None):
def stop(active=True, brake_voltage=None, fast=False):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add the new fast argument to the docstring.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may have noticed the failing tests in the checks. Two tests in test_hwp.py are failing. These should be modified to handle cases for the new fast argument.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants