Improved documentation
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user