Commit 562a88cf authored by Laurent Claustre's avatar Laurent Claustre

Added and manage a new property force_video_mode to swich B/W cameras to video mode

parent bc99bad2
Pipeline #8642 passed with stages
in 12 minutes and 16 seconds
......@@ -127,6 +127,9 @@ class BaslerClass(PyTango.DeviceClass):
'packet_size':
[PyTango.DevLong,
"Network packet size (MTU)",8000],
'force_video_mode':
[PyTango.DevBoolean,
"For B/W camera force to color-video mode",False],
}
cmd_list = {
......@@ -154,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,**keys) :
packet_size = 8000,force_video_mode= False, **keys) :
global _BaslerCam
global _BaslerInterface
......@@ -178,7 +181,7 @@ def get_control(frame_transmission_delay = 0, inter_packet_delay = 0,
_BaslerCam = BaslerAcq.Camera(camera_id, int(packet_size))
_BaslerCam.setInterPacketDelay(int(inter_packet_delay))
_BaslerCam.setFrameTransmissionDelay(int(frame_transmission_delay))
_BaslerInterface = BaslerAcq.Interface(_BaslerCam)
_BaslerInterface = BaslerAcq.Interface(_BaslerCam, bool(force_video_mode))
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