@@ -41,7 +41,9 | |||||
41 | def sendFile(self, filename): |
|
41 | def sendFile(self, filename): | |
42 |
|
42 | |||
43 | # data = self.abs2ControlModuleFormatFile(filename) |
|
43 | # data = self.abs2ControlModuleFormatFile(filename) | |
44 |
|
|
44 | tmp = self.__readFile(filename) | |
|
45 | #Sending content of file and the file name | |||
|
46 | data = filename + '\n' + tmp | |||
45 | self.__ConnectionWithCentralControl(cmd = "SNDF", data = data) |
|
47 | self.__ConnectionWithCentralControl(cmd = "SNDF", data = data) | |
46 |
|
48 | |||
47 | def changeBeam(self, newBeam): |
|
49 | def changeBeam(self, newBeam): |
@@ -144,8 +144,10 | |||||
144 |
|
144 | |||
145 | def __sendFile2Modules(self,cmd): |
|
145 | def __sendFile2Modules(self,cmd): | |
146 |
|
146 | |||
147 | filename = "tmp.txt" |
|
147 | rx_buffer_lst = self.rx_buffer.split('\n',1) | |
148 | self.__writeFile(filename,self.rx_buffer) |
|
148 | filename = rx_buffer_lst[0] | |
|
149 | tmp = rx_buffer_lst[1] | |||
|
150 | self.__writeFile(filename,tmp) | |||
149 | data = self.abs2ControlModuleFormatFile(filename) |
|
151 | data = self.abs2ControlModuleFormatFile(filename) | |
150 | #Needed for the loop |
|
152 | #Needed for the loop | |
151 | header, control_modules_lst = self.__All2Blocks(data) |
|
153 | header, control_modules_lst = self.__All2Blocks(data) |
General Comments 0
You need to be logged in to leave comments.
Login now