Closedown

This commit is contained in:
gac-x03da
2018-04-18 11:59:45 +02:00
parent 2ae27877e1
commit fdd388558f
3 changed files with 9 additions and 145 deletions

View File

@@ -99,23 +99,23 @@ def prepare_keithleys(dwell, triggered):
dwell = dwell time in seconds (0.1 - 20.0)
"""
KeiSample.prepare(dwell, triggered)
KeiReference.prepare(dwell, triggered)
#KeiSample.prepare(dwell, triggered)
#KeiReference.prepare(dwell, triggered)
def trig_keithleys():
"""
trigger keithleys, do not wait.
after this, you have to wait for at least the dwell time before reading the value!
"""
KeiSample.trig()
KeiReference.trig()
#KeiSample.trig()
#KeiReference.trig()
def wait_keithleys():
"""
wait for one dwell time so that the keithleys can finish their measurement.
if we polled them too early, they would produce an error message.
"""
time.sleep(KeiSample.dwell * 2.2)
#time.sleep(KeiSample.dwell * 2.2)
def fetch_keithleys():
"""
@@ -123,16 +123,16 @@ def fetch_keithleys():
this requires that at least the dwell time has passed since the last trigger.
the value can then be read from the SampleCurrent and ReferenceCurrent devices.
"""
KeiSample.fetch()
KeiReference.fetch()
#KeiSample.fetch()
#KeiReference.fetch()
def release_keithleys():
"""
switch keithleys to free run.
0.1 s polling and dwell time
"""
KeiSample.release()
KeiReference.release()
#KeiSample.release()
#KeiReference.release()
diag_channels = []
diag_channels.append(Scienta.channelBegin) #diag_channels.append(ChannelDouble("ChannelBegin", "X03DA-SCIENTA:cam1:CHANNEL_BEGIN_RBV"))