Closedown

This commit is contained in:
gac-x03da
2023-08-22 15:38:19 +02:00
parent 4fcdf5fda3
commit b2d76968fd
2 changed files with 17 additions and 16 deletions

View File

@@ -1,4 +1,4 @@
#Tue Aug 22 12:13:56 CEST 2023
#Tue Aug 22 15:27:44 CEST 2023
LastRunDate=230822
FileSequentialNumber=18666
DaySequentialNumber=8
FileSequentialNumber=18667
DaySequentialNumber=9

View File

@@ -72,20 +72,21 @@ be_axis.setRange(eb2, eb1)
def plot_cur_spectrum():
try:
while get_context().state.running:
#y = Scienta.spectrum.take(100) ###TODO restore
y = Scienta.spectrum.read()
if y is not None:
x = Scienta.spectrumX
#x = Scienta.spectrumScale.take(100)
if len(y)>len(x):
y=y[:len(x)]
spectrum_series.setData(x, y)
eb2, eb1 = get_binding_range(plots[0])
if (be_axis.min != eb2) or (be_axis.max != eb1):
plots[0].resetZoom()
be_axis.setRange(eb2, eb1)
try:
y = Scienta.spectrum.take(100)
if y is not None:
x = Scienta.spectrumX
#x = Scienta.spectrumScale.take(100)
if len(y)>len(x):
y=y[:len(x)]
spectrum_series.setData(x, y)
eb2, eb1 = get_binding_range(plots[0])
if (be_axis.min != eb2) or (be_axis.max != eb1):
plots[0].resetZoom()
be_axis.setRange(eb2, eb1)
except:
log("Error plotting online spectrum: ", sys.exc_info()[1])
time.sleep(1.0)
finally:
print "Stopping spectrum plotting"