Update
This commit is contained in:
13
script/test/TestScaleOffset.py
Normal file
13
script/test/TestScaleOffset.py
Normal file
@@ -0,0 +1,13 @@
|
||||
channel="TESTIOC:TESTSINUS:SinCalc"
|
||||
|
||||
pv1 = ReadonlyProcessVariable("C1", channel)
|
||||
pv2 = ReadonlyProcessVariable("C2", channel)
|
||||
pv1.config.offset = 10
|
||||
pv1.config.scale = 2
|
||||
pv2.config.offset = 20
|
||||
pv1.config.scale = 4
|
||||
|
||||
pv1.initialize()
|
||||
pv2.initialize()
|
||||
|
||||
tscan([pv1, pv2], 10, 0.1)
|
||||
Reference in New Issue
Block a user