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()