Script execution

This commit is contained in:
x03daop
2017-04-12 10:38:04 +02:00
parent ea0368be0f
commit 6f9b7cef73

View File

@@ -86,15 +86,14 @@ class ImageReader(ReadonlyRegisterBase, ReadonlyRegisterMatrix):
return ny
# plotting current spectrum
names = []
names.append("Online Spectrum")
names = "Online Spectrum"
plots = plot(None, names)
global online_spectrum_plot
online_spectrum_plot = plots[0].getSeries(0)
spectrum_series = plots[0].getSeries(0)
task = None
def plot_cur_spectrum():
global online_spectrum_plot
global spectrum_series
try:
while get_context().state.running:
y = Scienta.spectrum.take(100)