mirror of
https://github.com/nqrduck/nqrduck-spectrometer-limenqr.git
synced 2024-11-09 11:10:03 +00:00
Added statusbar message and error handling.
This commit is contained in:
parent
bb1ecb3985
commit
1cc1cd8eac
1 changed files with 5 additions and 0 deletions
|
@ -53,6 +53,9 @@ class LimeNQRController(BaseSpectrometerController):
|
||||||
lime.spt = path
|
lime.spt = path
|
||||||
lime.fpa = "temp"
|
lime.fpa = "temp"
|
||||||
|
|
||||||
|
# Write to statusbar
|
||||||
|
self.module.nqrduck_signal.emit("statusbar_message", "Started Measurement")
|
||||||
|
|
||||||
logger.debug("Starting measurement")
|
logger.debug("Starting measurement")
|
||||||
lime.run()
|
lime.run()
|
||||||
|
|
||||||
|
@ -82,6 +85,8 @@ class LimeNQRController(BaseSpectrometerController):
|
||||||
|
|
||||||
# Emit the data to the nqrduck core
|
# Emit the data to the nqrduck core
|
||||||
logger.debug("Emitting measurement data")
|
logger.debug("Emitting measurement data")
|
||||||
|
self.module.nqrduck_signal.emit("statusbar_message", "Finished Measurement")
|
||||||
|
|
||||||
self.module.nqrduck_signal.emit("measurement_data", measurement_data)
|
self.module.nqrduck_signal.emit("measurement_data", measurement_data)
|
||||||
|
|
||||||
def update_settings(self, lime):
|
def update_settings(self, lime):
|
||||||
|
|
Loading…
Reference in a new issue