watec¶
The object which takes photos with the optical Watec camera looking at the sample.
In Pylatus Script editor the watec object is already imported into Python interpreter.
Instance methods:¶
snap¶
watec.snap(name=None, dir=None)
Creates a sequence action to save the next camera frame as a JPEG named name in dir.
The dir is relative to the experiment root; if it is None, the photo is saved into the experiment root itself.
If name is None, the photo is named after its timestamp.
A snap is practically instant, but rarely the camera hangs for about 10 s.
A photo every second for 20 s, each named after its timestamp:
for i in range(20):
watec.snap(dir='photos')
diffractometer.sleep(1)