HERA-Team / hera_mc

The HERA monitor and control (M&C) system.
BSD 2-Clause "Simplified" License
3 stars 3 forks source link

SNAP gain command interface #325

Open bhazelton opened 5 years ago

bhazelton commented 5 years ago

commands sent to the SNAPs to adjust gain

bhazelton commented 5 years ago

we are already capturing some related statuses (in antennna_status table):

jack-h commented 5 years ago

The correlator CM class now has access to its own correlator instance (the thing I use in the behind-the-scenes control scripts) -- https://github.com/HERA-Team/hera_corr_cm/blob/dcee7e3a9f0d2e1edf8165a44e7f6dd5872aa103/hera_corr_cm/hera_corr_cm.py#L60

This can be used to set EQ / pam attenuation via the set_pam_attenuation and set_eq methods. https://github.com/HERA-Team/hera_corr_f/blob/a6c1a55a093e4d788408d71e6265e39a629860a7/control_software/src/hera_corr.py#L349

In fact, if you dig into this object you'll find you can pretty much do anything, but I would suggest avoiding methods on the new corr object unless you are confident they won't break something. Methods on this object generally interact directly with the boards (my intention was to use redis to prevent ever needing to do this, but I think given how much stuff is going to end up getting exposed it's probably easier to abandon that plan).

bhazelton commented 5 years ago

I think we may need a different solution in light of the redis connection problems we had when this object was loaded by default.

bhazelton commented 5 years ago

@jack-h any updates on this?

jack-h commented 4 years ago

Added in https://github.com/HERA-Team/hera_corr_cm/commit/7607c1518ac11b55dcc53c6a12283a212a431bda

Note that this hasn't been installed on site

bhazelton commented 4 years ago

Thank you @jack-h ! Some questions: 1) Are these the same equalizations that are reported via get_ant_status? 2) How have these been set in the past?

jack-h commented 4 years ago
  1. Yes (I'm working on adding the PAM attenuation values as well)
  2. As part of the start call, an equalization is attempted. I'd like to turn this off and then the correlator will just use the last known values unless you explicitly change them with the new calls
jack-h commented 4 years ago

And, pam attenuator get/set methods as of https://github.com/HERA-Team/hera_corr_cm/commit/a19a971b5f08e3c18b9e5c843ec9f7cc1becd039

dannyjacobs commented 4 years ago

Equalization is dominated by antennas dropping in and out, which seems to change day to day. Ideally you'd only auto-equalize antennas that are connected. Once you've found the level for a working signal chain it should stay the same.

On Wed, Oct 2, 2019 at 3:45 PM Jack Hickish notifications@github.com wrote:

And, pam attenuator get/set methods as of HERA-Team/hera_corr_cm@a19a971 https://github.com/HERA-Team/hera_corr_cm/commit/a19a971b5f08e3c18b9e5c843ec9f7cc1becd039

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/HERA-Team/hera_mc/issues/325?email_source=notifications&email_token=AAAPNV4HGFFSF5JSDJFZM3DQMUQBVA5CNFSM4G357BDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAGNQFI#issuecomment-537712661, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAPNV6ERSXCCGR5SPNH7RTQMUQBVANCNFSM4G357BDA .

--

Daniel C. Jacobs KE7DHQ Assistant Professor Arizona State University School of Earth and Space Exploration Low Frequency Cosmology Phone: (505) 500 4521 Homepage: danielcjacobs.com MWA: mwatelescope.org HERA: reionization.org PAPER: eor.berkeley.edu