Script execution
This commit is contained in:
@@ -98,16 +98,16 @@ class ImageReader(ReadonlyRegisterBase, ReadonlyRegisterMatrix):
|
||||
return ny
|
||||
|
||||
# plotting current spectrum
|
||||
#names = "Scienta spectrum"
|
||||
#plots = plot(None, names)
|
||||
names = "Scienta spectrum"
|
||||
plots = plot(None, names, title="Live Spectrum")
|
||||
global spectrum_series
|
||||
spectrum_series = None #plots[0].getSeries(0)
|
||||
spectrum_series = plots[0].getSeries(0)
|
||||
task = None
|
||||
|
||||
def plot_cur_spectrum():
|
||||
global spectrum_series
|
||||
try:
|
||||
time.sleep(5.0)
|
||||
#time.sleep(5.0)
|
||||
while get_context().state.running:
|
||||
if spectrum_series is None:
|
||||
print "create new plot"
|
||||
|
||||
Reference in New Issue
Block a user