diff --git a/CDB/integration_ConfigDb.json b/CDB/integration_ConfigDb.json deleted file mode 100644 index 7cfbd82751791d7968315923edfc2ba971480308..0000000000000000000000000000000000000000 --- a/CDB/integration_ConfigDb.json +++ /dev/null @@ -1,305 +0,0 @@ -{ - "servers": { - "APSCT": { - "STAT": { - "APSCT": { - "STAT/APSCT/1": { - "properties": { - "OPC_Server_Name": [ - "apsct-sim" - ], - "OPC_Server_Port": [ - "4843" - ], - "OPC_Time_Out": [ - "5.0" - ] - } - } - } - } - }, - "APSPU": { - "STAT": { - "APSPU": { - "STAT/APSPU/1": { - "properties": { - "OPC_Server_Name": [ - "apspu-sim" - ], - "OPC_Server_Port": [ - "4843" - ], - "OPC_Time_Out": [ - "5.0" - ] - } - } - } - } - }, - "RECV": { - "STAT": { - "RECV": { - "STAT/RECV/1": { - "properties": { - "OPC_Server_Name": [ - "recv-sim" - ], - "OPC_Server_Port": [ - "4840" - ], - "OPC_Time_Out": [ - "5.0" - ] - } - } - } - } - }, - "SDP": { - "STAT": { - "SDP": { - "STAT/SDP/1": { - "properties": { - "OPC_Server_Name": [ - "sdptr-sim" - ], - "OPC_Server_Port": [ - "4840" - ], - "OPC_Time_Out": [ - "5.0" - ], - "FPGA_sdp_info_station_id_RW_default": [ - "901", - "901", - "901", - "901", - "901", - "901", - "901", - "901", - "901", - "901", - "901", - "901", - "901", - "901", - "901", - "901" - ], - "polled_attr": [ - "fpga_temp_r", - "1000", - "state", - "1000", - "status", - "1000", - "fpga_mask_rw", - "1000", - "fpga_scrap_r", - "1000", - "fpga_scrap_rw", - "1000", - "fpga_status_r", - "1000", - "fpga_version_r", - "1000", - "fpga_weights_r", - "1000", - "fpga_weights_rw", - "1000", - "tr_busy_r", - "1000", - "tr_reload_rw", - "1000", - "tr_tod_r", - "1000", - "tr_uptime_r", - "1000" - ] - } - } - } - } - }, - "SST": { - "STAT": { - "SST": { - "STAT/SST/1": { - "properties": { - "Statistics_Client_UDP_Port": [ - "5001" - ], - "Statistics_Client_TCP_Port": [ - "5101" - ], - "OPC_Server_Name": [ - "sdptr-sim" - ], - "OPC_Server_Port": [ - "4840" - ], - "OPC_Time_Out": [ - "5.0" - ], - "FPGA_sst_offload_hdr_eth_destination_mac_RW_default": [ - "6c:2b:59:97:be:dd", - "6c:2b:59:97:be:dd", - "6c:2b:59:97:be:dd", - "6c:2b:59:97:be:dd", - "6c:2b:59:97:be:dd", - "6c:2b:59:97:be:dd", - "6c:2b:59:97:be:dd", - "6c:2b:59:97:be:dd", - "6c:2b:59:97:be:dd", - "6c:2b:59:97:be:dd", - "6c:2b:59:97:be:dd", - "6c:2b:59:97:be:dd", - "6c:2b:59:97:be:dd", - "6c:2b:59:97:be:dd", - "6c:2b:59:97:be:dd", - "6c:2b:59:97:be:dd" - ], - "FPGA_sst_offload_hdr_ip_destination_address_RW_default": [ - "10.99.250.250", - "10.99.250.250", - "10.99.250.250", - "10.99.250.250", - "10.99.250.250", - "10.99.250.250", - "10.99.250.250", - "10.99.250.250", - "10.99.250.250", - "10.99.250.250", - "10.99.250.250", - "10.99.250.250", - "10.99.250.250", - "10.99.250.250", - "10.99.250.250", - "10.99.250.250" - ], - "FPGA_sst_offload_hdr_udp_destination_port_RW_default": [ - "5001", - "5001", - "5001", - "5001", - "5001", - "5001", - "5001", - "5001", - "5001", - "5001", - "5001", - "5001", - "5001", - "5001", - "5001", - "5001" - ] - } - } - } - } - }, - "XST": { - "STAT": { - "XST": { - "STAT/XST/1": { - "properties": { - "Statistics_Client_UDP_Port": [ - "5002" - ], - "Statistics_Client_TCP_Port": [ - "5102" - ], - "OPC_Server_Name": [ - "sdptr-sim" - ], - "OPC_Server_Port": [ - "4840" - ], - "OPC_Time_Out": [ - "5.0" - ], - "FPGA_xst_offload_hdr_eth_destination_mac_RW_default": [ - "6c:2b:59:97:be:dd", - "6c:2b:59:97:be:dd", - "6c:2b:59:97:be:dd", - "6c:2b:59:97:be:dd", - "6c:2b:59:97:be:dd", - "6c:2b:59:97:be:dd", - "6c:2b:59:97:be:dd", - "6c:2b:59:97:be:dd", - "6c:2b:59:97:be:dd", - "6c:2b:59:97:be:dd", - "6c:2b:59:97:be:dd", - "6c:2b:59:97:be:dd", - "6c:2b:59:97:be:dd", - "6c:2b:59:97:be:dd", - "6c:2b:59:97:be:dd", - "6c:2b:59:97:be:dd" - ], - "FPGA_xst_offload_hdr_ip_destination_address_RW_default": [ - "10.99.250.250", - "10.99.250.250", - "10.99.250.250", - "10.99.250.250", - "10.99.250.250", - "10.99.250.250", - "10.99.250.250", - "10.99.250.250", - "10.99.250.250", - "10.99.250.250", - "10.99.250.250", - "10.99.250.250", - "10.99.250.250", - "10.99.250.250", - "10.99.250.250", - "10.99.250.250" - ], - "FPGA_xst_offload_hdr_udp_destination_port_RW_default": [ - "5002", - "5002", - "5002", - "5002", - "5002", - "5002", - "5002", - "5002", - "5002", - "5002", - "5002", - "5002", - "5002", - "5002", - "5002", - "5002" - ] - } - } - } - } - }, - "UNB2": { - "STAT": { - "UNB2": { - "STAT/UNB2/1": { - "properties": { - "OPC_Server_Name": [ - "unb2-sim" - ], - "OPC_Server_Port": [ - "4841" - ], - "OPC_Time_Out": [ - "5.0" - ] - } - } - } - } - } - } -} diff --git a/CDB/integrations/recvcluster_ConfigDb.json b/CDB/integrations/recvcluster_ConfigDb.json new file mode 100644 index 0000000000000000000000000000000000000000..1b27092a198f26f2916e27a3043c8d5528e064a1 --- /dev/null +++ b/CDB/integrations/recvcluster_ConfigDb.json @@ -0,0 +1,2278 @@ +{ + "servers": { + "TileBeam": { + "STAT": { + "TileBeam": { + "STAT/TileBeam/2": {}, + "STAT/TileBeam/3": {}, + "STAT/TileBeam/4": {} + } + } + }, + "RECV": { + "STAT": { + "RECV": { + "STAT/RECV/2": { + "attribute_properties": { + "Ant_mask_RW": { + "archive_period": [ + "600000" + ] + }, + "CLK_Enable_PWR_R": { + "archive_period": [ + "600000" + ] + }, + "CLK_I2C_STATUS_R": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1", + "1" + ], + "rel_change": [ + "-1", + "1" + ] + }, + "CLK_PLL_error_R": { + "archive_period": [ + "600000" + ] + }, + "CLK_PLL_locked_R": { + "archive_period": [ + "600000" + ] + }, + "CLK_monitor_rate_RW": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1", + "1" + ], + "rel_change": [ + "-1", + "1" + ] + }, + "CLK_translator_busy_R": { + "archive_period": [ + "600000" + ] + }, + "HBA_element_LNA_pwr_R": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1", + "1" + ], + "rel_change": [ + "-1", + "1" + ] + }, + "HBA_element_LNA_pwr_RW": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1", + "1" + ], + "rel_change": [ + "-1", + "1" + ] + }, + "HBA_element_beamformer_delays_R": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1", + "1" + ], + "rel_change": [ + "-1", + "1" + ] + }, + "HBA_element_beamformer_delays_RW": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1", + "1" + ], + "rel_change": [ + "-1", + "1" + ] + }, + "HBA_element_led_R": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1", + "1" + ], + "rel_change": [ + "-1", + "1" + ] + }, + "HBA_element_led_RW": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1", + "1" + ], + "rel_change": [ + "-1", + "1" + ] + }, + "HBA_element_pwr_R": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1", + "1" + ], + "rel_change": [ + "-1", + "1" + ] + }, + "HBA_element_pwr_RW": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1", + "1" + ], + "rel_change": [ + "-1", + "1" + ] + }, + "RCU_ADC_lock_R": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1", + "1" + ], + "rel_change": [ + "-1", + "1" + ] + }, + "RCU_I2C_STATUS_R": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1", + "1" + ], + "rel_change": [ + "-1", + "1" + ] + }, + "RCU_ID_R": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1", + "1" + ], + "rel_change": [ + "-1", + "1" + ] + }, + "RCU_LED0_R": { + "archive_period": [ + "600000" + ] + }, + "RCU_LED0_RW": { + "archive_period": [ + "600000" + ] + }, + "RCU_LED1_R": { + "archive_period": [ + "600000" + ] + }, + "RCU_LED1_RW": { + "archive_period": [ + "600000" + ] + }, + "RCU_Pwr_dig_R": { + "archive_period": [ + "600000" + ] + }, + "RCU_attenuator_R": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1", + "1" + ], + "rel_change": [ + "-1", + "1" + ] + }, + "RCU_attenuator_RW": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1", + "1" + ], + "rel_change": [ + "-1", + "1" + ] + }, + "RCU_band_R": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1", + "1" + ], + "rel_change": [ + "-1", + "1" + ] + }, + "RCU_band_RW": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1", + "1" + ], + "rel_change": [ + "-1", + "1" + ] + }, + "RCU_mask_RW": { + "archive_period": [ + "600000" + ] + }, + "RCU_monitor_rate_RW": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1.0", + "1.0" + ], + "rel_change": [ + "-1.0", + "1.0" + ] + }, + "RCU_temperature_R": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1.0", + "1.0" + ], + "rel_change": [ + "-1.0", + "1.0" + ] + }, + "RCU_translator_busy_R": { + "archive_period": [ + "600000" + ] + }, + "RCU_version_R": { + "archive_period": [ + "600000" + ] + }, + "State": { + "archive_period": [ + "600000" + ], + "event_period": [ + "0" + ] + }, + "Status": { + "archive_period": [ + "600000" + ], + "event_period": [ + "0" + ] + } + }, + "properties": { + "HBAT_reference_itrf": [ + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786" + ], + "HBAT_antenna_itrf_offsets": [ + "-1.847", + "-1.180", + " 1.493", + "-1.581", + " 0.003", + " 1.186", + "-1.315", + " 1.185", + " 0.880", + "-1.049", + " 2.367", + " 0.573", + "-0.882", + "-1.575", + " 0.804", + "-0.616", + "-0.393", + " 0.498", + "-0.350", + " 0.789", + " 0.191", + "-0.083", + " 1.971", + "-0.116", + " 0.083", + "-1.971", + " 0.116", + " 0.350", + "-0.789", + "-0.191", + " 0.616", + " 0.393", + "-0.498", + " 0.882", + " 1.575", + "-0.804", + " 1.049", + "-2.367", + "-0.573", + " 1.315", + "-1.185", + "-0.880", + " 1.581", + "-0.003", + "-1.186", + " 1.847", + " 1.180", + "-1.493" + ], + "OPC_Server_Name": [ + "recv-sim" + ], + "OPC_Server_Port": [ + "4840" + ], + "OPC_Time_Out": [ + "5.0" + ], + "polled_attr": [ + "state", + "1000", + "status", + "1000", + "ant_mask_rw", + "1000", + "rcu_adc_lock_r", + "1000", + "rcu_attenuator_r", + "1000", + "rcu_attenuator_rw", + "1000", + "rcu_band_r", + "1000", + "rcu_band_rw", + "1000", + "rcu_id_r", + "1000", + "rcu_led0_r", + "1000", + "rcu_led0_rw", + "1000", + "rcu_mask_rw", + "1000", + "rcu_monitor_rate_rw", + "1000", + "rcu_pwr_dig_r", + "1000", + "rcu_temperature_r", + "1000", + "rcu_version_r", + "1000", + "hba_element_beamformer_delays_r", + "1000", + "hba_element_beamformer_delays_rw", + "1000", + "hba_element_led_r", + "1000", + "hba_element_led_rw", + "1000", + "hba_element_pwr_r", + "1000", + "hba_element_pwr_rw", + "1000", + "clk_enable_pwr_r", + "1000", + "clk_i2c_status_r", + "1000", + "clk_monitor_rate_rw", + "1000", + "clk_pll_error_r", + "1000", + "clk_pll_locked_r", + "1000", + "clk_translator_busy_r", + "1000", + "hba_element_lna_pwr_r", + "1000", + "hba_element_lna_pwr_rw", + "1000", + "rcu_i2c_status_r", + "1000", + "rcu_led1_r", + "1000", + "rcu_led1_rw", + "1000", + "rcu_translator_busy_r", + "1000" + ] + } + }, + "STAT/RECV/3": { + "attribute_properties": { + "Ant_mask_RW": { + "archive_period": [ + "600000" + ] + }, + "CLK_Enable_PWR_R": { + "archive_period": [ + "600000" + ] + }, + "CLK_I2C_STATUS_R": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1", + "1" + ], + "rel_change": [ + "-1", + "1" + ] + }, + "CLK_PLL_error_R": { + "archive_period": [ + "600000" + ] + }, + "CLK_PLL_locked_R": { + "archive_period": [ + "600000" + ] + }, + "CLK_monitor_rate_RW": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1", + "1" + ], + "rel_change": [ + "-1", + "1" + ] + }, + "CLK_translator_busy_R": { + "archive_period": [ + "600000" + ] + }, + "HBA_element_LNA_pwr_R": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1", + "1" + ], + "rel_change": [ + "-1", + "1" + ] + }, + "HBA_element_LNA_pwr_RW": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1", + "1" + ], + "rel_change": [ + "-1", + "1" + ] + }, + "HBA_element_beamformer_delays_R": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1", + "1" + ], + "rel_change": [ + "-1", + "1" + ] + }, + "HBA_element_beamformer_delays_RW": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1", + "1" + ], + "rel_change": [ + "-1", + "1" + ] + }, + "HBA_element_led_R": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1", + "1" + ], + "rel_change": [ + "-1", + "1" + ] + }, + "HBA_element_led_RW": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1", + "1" + ], + "rel_change": [ + "-1", + "1" + ] + }, + "HBA_element_pwr_R": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1", + "1" + ], + "rel_change": [ + "-1", + "1" + ] + }, + "HBA_element_pwr_RW": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1", + "1" + ], + "rel_change": [ + "-1", + "1" + ] + }, + "RCU_ADC_lock_R": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1", + "1" + ], + "rel_change": [ + "-1", + "1" + ] + }, + "RCU_I2C_STATUS_R": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1", + "1" + ], + "rel_change": [ + "-1", + "1" + ] + }, + "RCU_ID_R": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1", + "1" + ], + "rel_change": [ + "-1", + "1" + ] + }, + "RCU_LED0_R": { + "archive_period": [ + "600000" + ] + }, + "RCU_LED0_RW": { + "archive_period": [ + "600000" + ] + }, + "RCU_LED1_R": { + "archive_period": [ + "600000" + ] + }, + "RCU_LED1_RW": { + "archive_period": [ + "600000" + ] + }, + "RCU_Pwr_dig_R": { + "archive_period": [ + "600000" + ] + }, + "RCU_attenuator_R": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1", + "1" + ], + "rel_change": [ + "-1", + "1" + ] + }, + "RCU_attenuator_RW": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1", + "1" + ], + "rel_change": [ + "-1", + "1" + ] + }, + "RCU_band_R": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1", + "1" + ], + "rel_change": [ + "-1", + "1" + ] + }, + "RCU_band_RW": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1", + "1" + ], + "rel_change": [ + "-1", + "1" + ] + }, + "RCU_mask_RW": { + "archive_period": [ + "600000" + ] + }, + "RCU_monitor_rate_RW": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1.0", + "1.0" + ], + "rel_change": [ + "-1.0", + "1.0" + ] + }, + "RCU_temperature_R": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1.0", + "1.0" + ], + "rel_change": [ + "-1.0", + "1.0" + ] + }, + "RCU_translator_busy_R": { + "archive_period": [ + "600000" + ] + }, + "RCU_version_R": { + "archive_period": [ + "600000" + ] + }, + "State": { + "archive_period": [ + "600000" + ], + "event_period": [ + "0" + ] + }, + "Status": { + "archive_period": [ + "600000" + ], + "event_period": [ + "0" + ] + } + }, + "properties": { + "HBAT_reference_itrf": [ + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786" + ], + "HBAT_antenna_itrf_offsets": [ + "-1.847", + "-1.180", + " 1.493", + "-1.581", + " 0.003", + " 1.186", + "-1.315", + " 1.185", + " 0.880", + "-1.049", + " 2.367", + " 0.573", + "-0.882", + "-1.575", + " 0.804", + "-0.616", + "-0.393", + " 0.498", + "-0.350", + " 0.789", + " 0.191", + "-0.083", + " 1.971", + "-0.116", + " 0.083", + "-1.971", + " 0.116", + " 0.350", + "-0.789", + "-0.191", + " 0.616", + " 0.393", + "-0.498", + " 0.882", + " 1.575", + "-0.804", + " 1.049", + "-2.367", + "-0.573", + " 1.315", + "-1.185", + "-0.880", + " 1.581", + "-0.003", + "-1.186", + " 1.847", + " 1.180", + "-1.493" + ], + "OPC_Server_Name": [ + "recv-sim" + ], + "OPC_Server_Port": [ + "4840" + ], + "OPC_Time_Out": [ + "5.0" + ], + "polled_attr": [ + "state", + "1000", + "status", + "1000", + "ant_mask_rw", + "1000", + "rcu_adc_lock_r", + "1000", + "rcu_attenuator_r", + "1000", + "rcu_attenuator_rw", + "1000", + "rcu_band_r", + "1000", + "rcu_band_rw", + "1000", + "rcu_id_r", + "1000", + "rcu_led0_r", + "1000", + "rcu_led0_rw", + "1000", + "rcu_mask_rw", + "1000", + "rcu_monitor_rate_rw", + "1000", + "rcu_pwr_dig_r", + "1000", + "rcu_temperature_r", + "1000", + "rcu_version_r", + "1000", + "hba_element_beamformer_delays_r", + "1000", + "hba_element_beamformer_delays_rw", + "1000", + "hba_element_led_r", + "1000", + "hba_element_led_rw", + "1000", + "hba_element_pwr_r", + "1000", + "hba_element_pwr_rw", + "1000", + "clk_enable_pwr_r", + "1000", + "clk_i2c_status_r", + "1000", + "clk_monitor_rate_rw", + "1000", + "clk_pll_error_r", + "1000", + "clk_pll_locked_r", + "1000", + "clk_translator_busy_r", + "1000", + "hba_element_lna_pwr_r", + "1000", + "hba_element_lna_pwr_rw", + "1000", + "rcu_i2c_status_r", + "1000", + "rcu_led1_r", + "1000", + "rcu_led1_rw", + "1000", + "rcu_translator_busy_r", + "1000" + ] + } + }, + "STAT/RECV/4": { + "attribute_properties": { + "Ant_mask_RW": { + "archive_period": [ + "600000" + ] + }, + "CLK_Enable_PWR_R": { + "archive_period": [ + "600000" + ] + }, + "CLK_I2C_STATUS_R": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1", + "1" + ], + "rel_change": [ + "-1", + "1" + ] + }, + "CLK_PLL_error_R": { + "archive_period": [ + "600000" + ] + }, + "CLK_PLL_locked_R": { + "archive_period": [ + "600000" + ] + }, + "CLK_monitor_rate_RW": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1", + "1" + ], + "rel_change": [ + "-1", + "1" + ] + }, + "CLK_translator_busy_R": { + "archive_period": [ + "600000" + ] + }, + "HBA_element_LNA_pwr_R": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1", + "1" + ], + "rel_change": [ + "-1", + "1" + ] + }, + "HBA_element_LNA_pwr_RW": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1", + "1" + ], + "rel_change": [ + "-1", + "1" + ] + }, + "HBA_element_beamformer_delays_R": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1", + "1" + ], + "rel_change": [ + "-1", + "1" + ] + }, + "HBA_element_beamformer_delays_RW": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1", + "1" + ], + "rel_change": [ + "-1", + "1" + ] + }, + "HBA_element_led_R": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1", + "1" + ], + "rel_change": [ + "-1", + "1" + ] + }, + "HBA_element_led_RW": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1", + "1" + ], + "rel_change": [ + "-1", + "1" + ] + }, + "HBA_element_pwr_R": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1", + "1" + ], + "rel_change": [ + "-1", + "1" + ] + }, + "HBA_element_pwr_RW": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1", + "1" + ], + "rel_change": [ + "-1", + "1" + ] + }, + "RCU_ADC_lock_R": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1", + "1" + ], + "rel_change": [ + "-1", + "1" + ] + }, + "RCU_I2C_STATUS_R": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1", + "1" + ], + "rel_change": [ + "-1", + "1" + ] + }, + "RCU_ID_R": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1", + "1" + ], + "rel_change": [ + "-1", + "1" + ] + }, + "RCU_LED0_R": { + "archive_period": [ + "600000" + ] + }, + "RCU_LED0_RW": { + "archive_period": [ + "600000" + ] + }, + "RCU_LED1_R": { + "archive_period": [ + "600000" + ] + }, + "RCU_LED1_RW": { + "archive_period": [ + "600000" + ] + }, + "RCU_Pwr_dig_R": { + "archive_period": [ + "600000" + ] + }, + "RCU_attenuator_R": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1", + "1" + ], + "rel_change": [ + "-1", + "1" + ] + }, + "RCU_attenuator_RW": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1", + "1" + ], + "rel_change": [ + "-1", + "1" + ] + }, + "RCU_band_R": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1", + "1" + ], + "rel_change": [ + "-1", + "1" + ] + }, + "RCU_band_RW": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1", + "1" + ], + "rel_change": [ + "-1", + "1" + ] + }, + "RCU_mask_RW": { + "archive_period": [ + "600000" + ] + }, + "RCU_monitor_rate_RW": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1.0", + "1.0" + ], + "rel_change": [ + "-1.0", + "1.0" + ] + }, + "RCU_temperature_R": { + "archive_period": [ + "600000" + ], + "archive_rel_change": [ + "-1.0", + "1.0" + ], + "rel_change": [ + "-1.0", + "1.0" + ] + }, + "RCU_translator_busy_R": { + "archive_period": [ + "600000" + ] + }, + "RCU_version_R": { + "archive_period": [ + "600000" + ] + }, + "State": { + "archive_period": [ + "600000" + ], + "event_period": [ + "0" + ] + }, + "Status": { + "archive_period": [ + "600000" + ], + "event_period": [ + "0" + ] + } + }, + "properties": { + "HBAT_reference_itrf": [ + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786", + "3826577.066", + "461022.948", + "5064892.786" + ], + "HBAT_antenna_itrf_offsets": [ + "-1.847", + "-1.180", + " 1.493", + "-1.581", + " 0.003", + " 1.186", + "-1.315", + " 1.185", + " 0.880", + "-1.049", + " 2.367", + " 0.573", + "-0.882", + "-1.575", + " 0.804", + "-0.616", + "-0.393", + " 0.498", + "-0.350", + " 0.789", + " 0.191", + "-0.083", + " 1.971", + "-0.116", + " 0.083", + "-1.971", + " 0.116", + " 0.350", + "-0.789", + "-0.191", + " 0.616", + " 0.393", + "-0.498", + " 0.882", + " 1.575", + "-0.804", + " 1.049", + "-2.367", + "-0.573", + " 1.315", + "-1.185", + "-0.880", + " 1.581", + "-0.003", + "-1.186", + " 1.847", + " 1.180", + "-1.493" + ], + "OPC_Server_Name": [ + "recv-sim" + ], + "OPC_Server_Port": [ + "4840" + ], + "OPC_Time_Out": [ + "5.0" + ], + "polled_attr": [ + "state", + "1000", + "status", + "1000", + "ant_mask_rw", + "1000", + "rcu_adc_lock_r", + "1000", + "rcu_attenuator_r", + "1000", + "rcu_attenuator_rw", + "1000", + "rcu_band_r", + "1000", + "rcu_band_rw", + "1000", + "rcu_id_r", + "1000", + "rcu_led0_r", + "1000", + "rcu_led0_rw", + "1000", + "rcu_mask_rw", + "1000", + "rcu_monitor_rate_rw", + "1000", + "rcu_pwr_dig_r", + "1000", + "rcu_temperature_r", + "1000", + "rcu_version_r", + "1000", + "hba_element_beamformer_delays_r", + "1000", + "hba_element_beamformer_delays_rw", + "1000", + "hba_element_led_r", + "1000", + "hba_element_led_rw", + "1000", + "hba_element_pwr_r", + "1000", + "hba_element_pwr_rw", + "1000", + "clk_enable_pwr_r", + "1000", + "clk_i2c_status_r", + "1000", + "clk_monitor_rate_rw", + "1000", + "clk_pll_error_r", + "1000", + "clk_pll_locked_r", + "1000", + "clk_translator_busy_r", + "1000", + "hba_element_lna_pwr_r", + "1000", + "hba_element_lna_pwr_rw", + "1000", + "rcu_i2c_status_r", + "1000", + "rcu_led1_r", + "1000", + "rcu_led1_rw", + "1000", + "rcu_translator_busy_r", + "1000" + ] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/sbin/run_integration_test.sh b/sbin/run_integration_test.sh index 780faa73fc2d0b42bc53d7903ef07b40e0f94081..1dc410d55bd9a81b45490fbb867f2bd0927ced91 100755 --- a/sbin/run_integration_test.sh +++ b/sbin/run_integration_test.sh @@ -52,3 +52,9 @@ make up integration-test # Run the default integration tests make run integration-test default + +# Configure integration test for recv_cluster module +bash "${LOFAR20_DIR}"/sbin/update_ConfigDb.sh "${LOFAR20_DIR}"/CDB/integrations/recvcluster_ConfigDb.json +make restart device-recv device-tilebeam +sleep 5 +make run integration-test recv_cluster diff --git a/tangostationcontrol/tangostationcontrol/devices/lofar_device.py b/tangostationcontrol/tangostationcontrol/devices/lofar_device.py index 740d45626ae02dcb62b1ff2a00d5b30b31be91ab..fc5c661b7937bf2489da23e6ed000f2050e97630 100644 --- a/tangostationcontrol/tangostationcontrol/devices/lofar_device.py +++ b/tangostationcontrol/tangostationcontrol/devices/lofar_device.py @@ -228,15 +228,19 @@ class lofar_device(Device, metaclass=DeviceMeta): # functions that can or must be overloaded def configure_for_fault(self): + """Overloadable function called in Fault after state is set to FAULT""" pass def configure_for_off(self): + """Overloadable function called in Off after state is set to OFF""" pass def configure_for_on(self): + """Overloadable function called in On BEFORE state is set to ON""" pass def configure_for_initialise(self): + """Overloadable function called in initialise with state INIT, STANDBY after call""" pass def always_executed_hook(self): diff --git a/tangostationcontrol/tangostationcontrol/devices/tilebeam.py b/tangostationcontrol/tangostationcontrol/devices/tilebeam.py index 948a3657279bf489039bd372b1a096052d3556ec..aa83c96f142dae5e8dac24767f50cf89e38c6a7a 100644 --- a/tangostationcontrol/tangostationcontrol/devices/tilebeam.py +++ b/tangostationcontrol/tangostationcontrol/devices/tilebeam.py @@ -11,9 +11,10 @@ import numpy import datetime from json import loads -from tango.server import attribute, command, device_property -from tango import AttrWriteType, DebugIt, DevState, DeviceProxy, DevVarStringArray, DevVarDoubleArray, DevString, DevSource from threading import Thread, Lock, Condition +from tango import AttrWriteType, DebugIt, DevState, DeviceProxy, DevVarStringArray, DevVarDoubleArray, DevString, DevSource +from tango.server import attribute, command, device_property +from tango import Util # Additional import from tangostationcontrol.common.entrypoint import entry @@ -58,7 +59,7 @@ class TileBeam(lofar_device): HBAT_pointing_direction_R = attribute(access=AttrWriteType.READ, dtype=((numpy.str,),), max_dim_x=3, max_dim_y=96, fget=lambda self: self._hbat_pointing_direction_r) - + HBAT_pointing_direction_RW = attribute(access=AttrWriteType.READ_WRITE, dtype=((numpy.str,),), max_dim_x=3, max_dim_y=96, fget=lambda self: self._hbat_pointing_direction_rw) @@ -106,8 +107,11 @@ class TileBeam(lofar_device): # Initialise tracking control self._hbat_tracking_enabled_rw = True - # Set a reference of RECV device - self.recv_proxy = DeviceProxy("STAT/RECV/1") + # Set a reference of RECV device that is correlated to this BEAM device + util = Util.instance() + instance_number = self.get_name().split('/')[2] + self.recv_proxy = DeviceProxy( + f"{util.get_ds_inst_name()}/RECV/{instance_number}") self.recv_proxy.set_source(DevSource.DEV) # Retrieve positions from RECV device @@ -130,7 +134,7 @@ class TileBeam(lofar_device): # Start beam tracking thread if self._hbat_tracking_enabled_rw: self.HBAT_beam_tracker.start() - + @log_exceptions() def configure_for_off(self): if self.HBAT_beam_tracker: @@ -254,7 +258,7 @@ class TileBeam(lofar_device): @command(dtype_in=DevVarStringArray, dtype_out=DevVarDoubleArray) @DebugIt() @log_exceptions() - @only_in_states([DevState.ON]) + @only_in_states([DevState.ON, DevState.STANDBY]) def HBAT_delays(self, pointing_direction: numpy.array, timestamp: datetime.datetime = None): """ Calculate the delays (in seconds) based on the pointing list and the timestamp @@ -275,7 +279,7 @@ class TileBeam(lofar_device): @command(dtype_in=DevVarStringArray) @DebugIt() @log_exceptions() - @only_in_states([DevState.ON]) + @only_in_states([DevState.ON, DevState.STANDBY]) def HBAT_set_pointing(self, pointing_direction: list, timestamp: datetime.datetime = None): """ Uploads beam weights based on a given pointing direction 2D array (96 tiles x 3 parameters) @@ -293,7 +297,7 @@ class TileBeam(lofar_device): @command(dtype_in = DevString) @DebugIt() - @only_in_states([DevState.ON]) + @only_in_states([DevState.ON, DevState.STANDBY]) def HBAT_set_pointing_for_specific_time(self, parameters: DevString = None): """ Uploads beam weights based on a given pointing direction 2D array (96 tiles x 3 parameters) @@ -361,9 +365,9 @@ class BeamTracker(): """ Force the pointing to be updated. """ self.stale_pointing = True - self.unlock_thread() + self.notify_thread() - def unlock_thread(self): + def notify_thread(self): # inform the thread to stop waiting with self.update_lock: self.update_condition.notify() @@ -413,7 +417,7 @@ class BeamTracker(): def _update_HBAT_pointing_direction(self): """ Updates the beam weights using a fixed interval of time """ - # Check if flag beamtracking is true + # Check if flag beamtracking is true with self.update_lock: while not self.done: self.stale_pointing = False diff --git a/tangostationcontrol/tangostationcontrol/integration_test/default/devices/test_device_tilebeam.py b/tangostationcontrol/tangostationcontrol/integration_test/default/devices/test_device_tilebeam.py index 4948dd7f70a1d1c122dcd3a3c50cda6184bb44d3..c6935e256caa035611d508922fd8dcde2937ac4a 100644 --- a/tangostationcontrol/tangostationcontrol/integration_test/default/devices/test_device_tilebeam.py +++ b/tangostationcontrol/tangostationcontrol/integration_test/default/devices/test_device_tilebeam.py @@ -67,6 +67,7 @@ class TestDeviceTileBeam(AbstractTestBases.TestDeviceBase): # Verify writing operation does not lead to errors self.proxy.HBAT_set_pointing(self.pointing_direction) # write values to RECV HBAT_delays_r2 = numpy.array(recv_proxy.read_attribute('HBAT_BF_delay_steps_RW').value) + self.assertIsNotNone(HBAT_delays_r2) # Verify delays changed (to be discussed) diff --git a/tangostationcontrol/tangostationcontrol/integration_test/recv_cluster/test_demo.py b/tangostationcontrol/tangostationcontrol/integration_test/recv_cluster/test_demo.py deleted file mode 100644 index 78ea0de074ee4f5336820a4fa91e88d3ef4a73c5..0000000000000000000000000000000000000000 --- a/tangostationcontrol/tangostationcontrol/integration_test/recv_cluster/test_demo.py +++ /dev/null @@ -1,28 +0,0 @@ -# -*- coding: utf-8 -*- -# -# This file is part of the LOFAR 2.0 Station Software -# -# -# -# Distributed under the terms of the APACHE license. -# See LICENSE.txt for more info. - -import logging - -from tangostationcontrol.integration_test import base - -logger = logging.getLogger() - - -class TestDemo(base.IntegrationTestCase): - """ This test will not be run until L2SS-484 is merged. - It serves as a trivial example of test exclusion since the unit tests pass - even though assertTrue(False) can trivially be determined to never succeed. - """ - - def setUp(self): - - super(TestDemo, self).setUp() - - def test_fail(self): - self.assertTrue(False) diff --git a/tangostationcontrol/tangostationcontrol/integration_test/recv_cluster/test_recv_cluster.py b/tangostationcontrol/tangostationcontrol/integration_test/recv_cluster/test_recv_cluster.py new file mode 100644 index 0000000000000000000000000000000000000000..898ca83892593852472387b9a489a4a51cc0204c --- /dev/null +++ b/tangostationcontrol/tangostationcontrol/integration_test/recv_cluster/test_recv_cluster.py @@ -0,0 +1,67 @@ +# -*- coding: utf-8 -*- +# +# This file is part of the LOFAR 2.0 Station Software +# +# +# +# Distributed under the terms of the APACHE license. +# See LICENSE.txt for more info. + +import time +import numpy +import logging +import statistics + +from tango import DevState + +from tangostationcontrol.integration_test import base +from tangostationcontrol.integration_test.device_proxy import TestDeviceProxy + +logger = logging.getLogger() + + +class TestRecvCluster(base.IntegrationTestCase): + + pointing_direction = numpy.array([["J2000", "0deg", "0deg"]] * 96).flatten() + + def setUp(self): + + super(TestRecvCluster, self).setUp() + + def test_recv_cluster_performance(self): + beam_proxies = [] + recv_proxies = [] + + # Beam / Recv 1,2,3,4 + for i in range(1, 5): + recv_proxies.append(TestDeviceProxy(f"STAT/RECV/{i}")) + beam_proxies.append(TestDeviceProxy(f"STAT/TileBeam/{i}")) + + # Recv devices must be ready before TileBeam + for proxy in recv_proxies: + proxy.off() + self.assertTrue(proxy.state() is DevState.OFF) + proxy.initialise() + self.assertTrue(proxy.state() is DevState.STANDBY) + proxy.set_defaults() + proxy.on() + self.assertTrue(proxy.state() is DevState.ON) + + for proxy in beam_proxies: + proxy.off() + self.assertTrue(proxy.state() is DevState.OFF) + proxy.initialise() + self.assertTrue(proxy.state() is DevState.STANDBY) + proxy.on() + self.assertTrue(proxy.state() is DevState.ON) + + results = [] + for _i in range(25): + start_time = time.monotonic_ns() + for proxy in beam_proxies: + proxy.HBAT_set_pointing(self.pointing_direction) + stop_time = time.monotonic_ns() + results.append(stop_time - start_time) + + logging.error(f"Median {statistics.median(results) / 1.e9} Stdev " + f"{statistics.stdev(results) / 1.e9}") diff --git a/tangostationcontrol/tox.ini b/tangostationcontrol/tox.ini index 9a7799463c22c24e85236c4e780a57e951502964..40f6e5cf38bace12fc00a2ccba1c0515678906c3 100644 --- a/tangostationcontrol/tox.ini +++ b/tangostationcontrol/tox.ini @@ -31,7 +31,7 @@ commands = {envpython} -m stestr run {posargs} passenv = TANGO_HOST setenv = TESTS_DIR=./tangostationcontrol/integration_test/{posargs} commands = - {envpython} -m stestr run --serial + {envpython} -m stestr run --serial {posargs} [testenv:cover] ; stestr does not natively support generating coverage reports use