Browse Source

fixes #34 and some bugs

Patrick Schreiber 8 years ago
parent
commit
ad711ce514

+ 1 - 1
KCG/VERSION

@@ -1,4 +1,4 @@
 Version: 0.2.3
-Build: 146.0302
+Build: 148.0302
 
 NOTE: this program is still in beta state and may have bugs

+ 1 - 1
KCG/base/backend/board/board_config.py

@@ -343,7 +343,7 @@ class BoardConfiguration:
             else:
                 control_bits = control_bits[:3] + '0' + control_bits[4:]
             dec_val_bits = int(control_bits, 2)
-            pci.write(hex(dec_val_bits), '0x9040')
+            pci.write(self.identifier, hex(dec_val_bits), '0x9040')
         except BoardError as e:
             reason = str(e) if str(e) != '' else "Unknown"
             self.logger.info("Error in Board Communication, was unable to write value to board "+reason)

+ 1 - 1
KCG/base/backend/board/sequences.py

@@ -146,6 +146,6 @@ def write_value_sequence(board_id):
     pci.write(board_id, '{0:08x}'.format(get_board_config(board_id).get('orbits_observe')), '0x9020')
     yield True
 
-    pci.write('{0:08x}'.format(get_board_config(board_id).get('orbits_skip')), '0x9028')
+    pci.write(board_id, '{0:08x}'.format(get_board_config(board_id).get('orbits_skip')), '0x9028')
     yield True
 

+ 2 - 0
KCG/base/controlwidget.py

@@ -168,6 +168,8 @@ class LogHandler(logging.Handler):
 
     def emit(self, record):
         self.text_area.append(self.format(record))
+        self.text_area.ensureCursorVisible()
+        QtGui.qApp.processEvents()
 
 
 class BoardControl(kcgw.KCGWidgets):