Script execution
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user