Skip to content

Conversation

@ludwigschwardt
Copy link
Contributor

This electronically scans the beamformer across a source in a series
of pointings. Each pointing lasts at least long as the delay model
update rate, to ensure that it is properly set. This is typically used
in conjunction with a custom SPEAD receiver that dumps the beamformer
ingest signal display stream (1 Hz dump rate) to a file.

It currently only steers beam 0x, since the signal display only
supports 0x and 0y anyway. This is the latest version used in the
steerable beam tests on 22 September 2021.

This electronically scans the beamformer across a source in a series
of pointings. Each pointing lasts at least long as the delay model
update rate, to ensure that it is properly set. This is typically used
in conjunction with a custom SPEAD receiver that dumps the beamformer
ingest signal display stream (1 Hz dump rate) to a file.

It currently only steers beam `0x`, since the signal display only
supports `0x` and `0y` anyway. This is the latest version used in the
steerable beam tests on 22 September 2021.
session.cbf.req.set_beam_target('wide.tied-array-channelised-voltage.0x', target)
# user_logger.info(' (%s -> %s)', stream.name, target)
time_spent = time.time() - before
time.sleep(duration - time_spent)
Copy link
Contributor

Choose a reason for hiding this comment

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

Since part of the function of the script is to change the phase centre after the beam weights/target has been set, there should be some logging here to report the time_spent setting them.

user_logger.info('performing scan %d (%d pointings)', index, num_pointings)
session.activity('scan')
for x, y in zip(x_steps, y_steps):
mid_pointing = time.time() + pointing_duration / 2.
Copy link
Contributor

Choose a reason for hiding this comment

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

This will be incorrect if the time_spent > pointing duration

session.cbf.req.set_beam_target('wide.tied-array-channelised-voltage.0x', target)
# user_logger.info(' (%s -> %s)', stream.name, target)
time_spent = time.time() - before
time.sleep(duration - time_spent)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the use of this script likely to have time_spent ~ pointing_duration . There would be no actual dwell time in this case

for stream in session.cbf.beamformers:
if not stream.name.endswith('0x'):
continue
session.cbf.req.set_beam_target('wide.tied-array-channelised-voltage.0x', target)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there any checking that this succeeds ? . I suppose the bumble on approach is the best way to deal with failure . Is failure reported as a log ?

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.

3 participants