From 6a56c17ca33a0baf0b464d59f02b7f5a9a5927e2 Mon Sep 17 00:00:00 2001 From: boccioli_m Date: Tue, 17 Oct 2017 14:26:05 +0200 Subject: [PATCH] Closedown --- plugins/TestingListDetails.java | 2 +- script/local.py | 22 +++++++---- script/tests/devices/bis-BMA1/.config | 4 +- script/tests/tests.properties | 2 +- .../Betriebsmode/Betriebsmode.py | 39 ++----------------- 5 files changed, 22 insertions(+), 47 deletions(-) diff --git a/plugins/TestingListDetails.java b/plugins/TestingListDetails.java index 47f02ca..d9d1c6d 100644 --- a/plugins/TestingListDetails.java +++ b/plugins/TestingListDetails.java @@ -422,7 +422,7 @@ public class TestingListDetails extends javax.swing.JPanel { HashMap mParameterAttributes = new HashMap(); //contians value and description for(int row=0 ; row 50: - motor_msta = 0 - # get value: - motor_val = sin(float(sample)/10.0)*10.0-10.0 - # add values to plot: - scan.append([readback1], [readback1], [motor_msta, motor_val]) - # now try with data from real device: this part will most probably fail: correct the PV names with existing ones. try: + ilk = Interlock() + ilk.masterReset() + ilk.setInterlockMode(mode) # set up connection to channels. "type" of data can be "d" (= double), "l" (= long). rpsChannel = Channel(channel , type='d') except: @@ -119,18 +98,6 @@ def startTest(testName, DEVICE, params): # send return information: test.sendFeedback(ret, success) return - # send a command to a channel (it is translated to a caput): uncomment this line below to try it - #pv_motor_com.put(1.0, timeout=None) # optionally, a timeout can be given. - # take 100 samples of the channels and plot them: - for sample in range(0, 100): - readback1 = sample #the x axis. - sleep(0.1) # settling time. - # get value (it is translated to a caget): - motor_msta = pv_motor_msta.get() - # get value: - motor_val = pv_motor_val.get() - # add values to plot: - scan.append([readback1], [readback1], [motor_msta, motor_val]) # Closing channels: all channels that were opened with Channel() must be closed before exit: rpsChannel.close()