diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2016-07-01 09:36:12 +0200 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2016-07-01 09:36:12 +0200 |
commit | a7a387042c38d1d9145fe8f52d5fd9c54349ce6d (patch) | |
tree | 426a194dd2e1e6d38619de525e2b7e1021d820ed /tango/stress-test.py | |
parent | 5e20651f52b7163b25488d9c4468350d72002b58 (diff) | |
download | libuca-a7a387042c38d1d9145fe8f52d5fd9c54349ce6d.tar.gz libuca-a7a387042c38d1d9145fe8f52d5fd9c54349ce6d.tar.bz2 libuca-a7a387042c38d1d9145fe8f52d5fd9c54349ce6d.tar.xz libuca-a7a387042c38d1d9145fe8f52d5fd9c54349ce6d.zip |
TANGO: allow testing software triggering
Diffstat (limited to 'tango/stress-test.py')
-rw-r--r-- | tango/stress-test.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tango/stress-test.py b/tango/stress-test.py index 2bb6dea..f2352bf 100644 --- a/tango/stress-test.py +++ b/tango/stress-test.py @@ -17,11 +17,15 @@ if __name__ == '__main__': help='TANGO device address') parser.add_argument('-n', '--number', type=int, default=1000, help='Number of frames to acquire') + parser.add_argument('-s', '--software-trigger', action='store_true', + default=False, + help='Use software trigger instead of auto') args = parser.parse_args() camera = PyTango.DeviceProxy(args.device) camera.exposure_time = 0.0001 + camera.trigger_source = 1 if args.software_trigger else 0 camera.Start() start = time.time() @@ -35,6 +39,9 @@ if __name__ == '__main__': for i in progress(range(args.number)): try: + if args.software_trigger: + camera.Trigger() + frame = camera.image except: camera.Stop() |