Startup
This commit is contained in:
20
script/test/TestCamtoolStreamIds.py
Normal file
20
script/test/TestCamtoolStreamIds.py
Normal file
@@ -0,0 +1,20 @@
|
||||
camtool.start("SLG-LCAM-C041")
|
||||
v=camtool.stream.take()
|
||||
ids = v.getIdentifiers()
|
||||
vals = v.getValues()
|
||||
for i in range(len(ids)):
|
||||
if "__len__" in dir(vals[i]):
|
||||
print ids[i] + " = " + str(type(vals[i]))
|
||||
else:
|
||||
print ids[i] + " = " + str(vals[i])
|
||||
|
||||
|
||||
for id in ids:
|
||||
obj = camtool.getValue(id)
|
||||
if (obj is None):
|
||||
obj="null"
|
||||
elif "__len__" in dir(obj):
|
||||
obj = type(obj)
|
||||
print str(id) + " = " + str(obj)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user