Commit 3c03d5c0 authored by Laurent Claustre's avatar Laurent Claustre

tango device force_video_mode passed as a string via get_control

parent 620a387b
Pipeline #9286 passed with stages
in 10 minutes and 55 seconds
......@@ -157,7 +157,7 @@ _BaslerInterface = None
# directory for for details about network optimization.
def get_control(frame_transmission_delay = 0, inter_packet_delay = 0,
packet_size = 8000,force_video_mode= False, **keys) :
packet_size = 8000,force_video_mode= 'false', **keys) :
global _BaslerCam
global _BaslerInterface
......@@ -176,12 +176,18 @@ def get_control(frame_transmission_delay = 0, inter_packet_delay = 0,
camera_id = 'uname://' + util.get_ds_inst_name()
print ("basler camera_id:", camera_id)
# all properties are passed as string from LimaCCDs device get_control helper
# so need to be converted to correct type
if force_video_mode == 'true':
force = True
else: force = False
if _BaslerCam is None:
_BaslerCam = BaslerAcq.Camera(camera_id, int(packet_size))
_BaslerCam.setInterPacketDelay(int(inter_packet_delay))
_BaslerCam.setFrameTransmissionDelay(int(frame_transmission_delay))
_BaslerInterface = BaslerAcq.Interface(_BaslerCam, bool(force_video_mode))
_BaslerInterface = BaslerAcq.Interface(_BaslerCam, force)
return Core.CtControl(_BaslerInterface)
def get_tango_specific_class_n_device():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment