From b5a6dc066495e6592efc0f3ff466f0a76a7d777a Mon Sep 17 00:00:00 2001 From: boccioli_m Date: Wed, 13 Jan 2016 15:13:58 +0100 Subject: [PATCH] Improved documentation --- script/tests/templates/testTemplate.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script/tests/templates/testTemplate.py b/script/tests/templates/testTemplate.py index 1b89d03..2fdee18 100644 --- a/script/tests/templates/testTemplate.py +++ b/script/tests/templates/testTemplate.py @@ -91,6 +91,7 @@ def startTest(testName, DEVICE, params): # inject a sinus into the plot, as example from math import sin motor_msta = 0 + # take 100 samples of a sinus and a jigsaw plot them: for sample in range(0, 100): readback1 = sample #the x axis. sleep(0.1) # settling time. @@ -103,7 +104,7 @@ def startTest(testName, DEVICE, params): # add values to plot: scan.append([readback1], [readback1], [motor_msta, motor_val]) - # now try with real device: this part will most probably fail: correct the PV names with existing ones. + # now try with data from real device: this part will most probably fail: correct the PV names with existing ones. try: # set up connection to channels. "type" of data can be "d" (= double), "l" (= long). pv_motor_msta = Channel(test.getDeviceName() + ':IST:2' , type='d')