Station

Overview

This class represents a set of synchronised tiles (TPMs). Contains methods for controlling all tiles.

Python Class & Methods Index

class pyaavs.station.Station(config)[source]

Class representing an AAVS station

add_tile(tile_ip)[source]

Add a new tile to the station :param tile_ip: Tile IP to be added to station

calibrate_station(coefficients, switch_time=2048)[source]

Coefficients is a 3D complex array of the form [antenna, channel, polarization], with each element representing a normalized coefficient, with (1.0, 0.0) the normal, expected response for an ideal antenna. Antenna is the index specifying the antenna within the index (using correlator indexing). Channel is the index specifying the channels at the beamformer output, i.e. considering only those channels actually processed and beam assignments. The polarization index ranges from 0 to 3. 0: X polarization direct element 1: X->Y polarization cross element 2: Y->X polarization cross element 3: Y polarization direct element

check_station_status()[source]

Check that the station is still valid

connect()[source]

Initialise all tiles

load_pointing_delay(load_time=0)[source]

Load pointing delays on all tiles

send_beam_data()[source]

Send beam data from all Tiles

send_channelised_data(number_of_samples=1024, first_channel=0, last_channel=511)[source]

Send channelised data from all Tiles

send_channelised_data_continuous(channel_id, number_of_samples=65536)[source]

Send continuous channelised data from all Tiles

send_channelised_data_narrowband(frequency, round_bits, number_of_samples=256)[source]

Send narrowband continuous channel data

send_raw_data(sync=False)[source]

Send raw data from all Tiles

send_raw_data_synchronised()[source]

Send synchronised raw data from all Tiles

set_multi_channel_dst_ip(dst_ip, destination_id)[source]
set_multi_channel_tx(instance_id, channel_id, destination_id)[source]

Set multichannel transmitter instance :param instance_id: Transmitter instance ID :param channel_id: Channel ID :param destination_id: 40G destination ID

start_multi_channel_tx(instances, seconds=0.2)[source]

Start multichannel data transmission from the TPM :param instances: 64 bit integer, each bit addresses the corresponding TX transmitter :param seconds: synchronisation delay ID

stop_data_transmission()[source]

Stop data transmission

stop_integrated_data()[source]

Stop integrated data transmission

stop_multi_channel_tx()[source]

Stop multichannel TX data transmission

switch_calibration_banks(switch_time=0)[source]

Switch calibration bank on all tiles

test_generator_disable_tone(dds, delay=512)[source]
test_generator_input_select(inputs)[source]
test_generator_set_noise(ampl=0.0, delay=512)[source]
test_generator_set_tone(dds, frequency=100000000.0, ampl=0.0, phase=0.0, delay=512)[source]
pyaavs.station.apply_config_file(input_dict, output_dict)[source]

Recursively copy value from input_dict to output_dict

pyaavs.station.create_tile_instance(config, tile_number)[source]

Add a new tile to the station :param config: Station configuration :param tile_number: TPM to associate tile to

pyaavs.station.initialise_tile(params)[source]

Internal connect method to thread connection :param params: Contain 0) Station configuration and 1) Tile number to initialise

pyaavs.station.load_configuration_file(filepath)[source]

Load station configuration from configuration file

pyaavs.station.load_station_configuration(config_params)[source]

Combine configuration defined in configuration file with command-line arguments

pyaavs.station.program_cpld(params)[source]

Update tile CPLD. :param params: Contain 0) Station configuration and 1) Tile number to program CPLD

pyaavs.station.program_fpgas(params)[source]

Program FPGAs :param params: Contain 0) Station configuration and 1) Tile number to program FPGAs