Closedown

This commit is contained in:
x03daop
2017-01-10 09:34:41 +01:00
parent ebe69be1f0
commit 0de937d812
5 changed files with 14 additions and 14 deletions

View File

@@ -14,7 +14,7 @@ if Scienta.acquisitionMode != Scienta.AcquisitionMode.Swept:
ret=[]
set_context(open = True)
set_exec_pars(open = True)
#Global arguments
Scienta.passEnergy = pass_energy
@@ -28,7 +28,7 @@ spectrum_series = plots[0].getSeries(0)
def plot_cur_spectrum():
global spectrum_series
try:
while context.state.running:
while get_context().state.running:
y = Scienta.spectrum.take(100)
x = Scienta.spectrumX
spectrum_series.setData(x, y)