@@ -792,12 +792,30 class ABSConfiguration(Configuration): | |||
|
792 | 792 | |
|
793 | 793 | # Se manda a cero RC para poder realizar cambio de beam |
|
794 | 794 | confs = Configuration.objects.filter(experiment = self.experiment) |
|
795 |
conf |
|
|
796 | for conf in confs: | |
|
797 | if conf.device.device_type.name == 'rc': | |
|
798 | confrc = conf | |
|
799 | confrc.stop_device() | |
|
800 | break | |
|
795 | confdds = '' | |
|
796 | confjars = '' | |
|
797 | confrc = '' | |
|
798 | ||
|
799 | #TO STOP DEVICES: DDS-JARS-RC | |
|
800 | for i in range(0,len(confs)): | |
|
801 | if i==0: | |
|
802 | for conf in confs: | |
|
803 | if conf.device.device_type.name == 'dds': | |
|
804 | confdds = conf | |
|
805 | confdds.stop_device() | |
|
806 | break | |
|
807 | if i==1: | |
|
808 | for conf in confs: | |
|
809 | if conf.device.device_type.name == 'jars': | |
|
810 | confjars = conf | |
|
811 | confjars.stop_device() | |
|
812 | break | |
|
813 | if i==2: | |
|
814 | for conf in confs: | |
|
815 | if conf.device.device_type.name == 'rc': | |
|
816 | confrc = conf | |
|
817 | confrc.stop_device() | |
|
818 | break | |
|
801 | 819 | |
|
802 | 820 | if beam_pos > 0: |
|
803 | 821 | beam_pos = beam_pos - 1 |
@@ -851,10 +869,14 class ABSConfiguration(Configuration): | |||
|
851 | 869 | sock.close() |
|
852 | 870 | sock = None |
|
853 | 871 | |
|
854 | #Start RC | |
|
872 | #Start DDS-RC-JARS | |
|
873 | if confdds: | |
|
874 | confdds.start_device() | |
|
855 | 875 | if confrc: |
|
856 | 876 | #print confrc |
|
857 | 877 | confrc.start_device() |
|
878 | if confjars: | |
|
879 | confjars.start_device() | |
|
858 | 880 | |
|
859 | 881 | self.message = "ABS Beam has been changed" |
|
860 | 882 |
General Comments 0
You need to be logged in to leave comments.
Login now