AlexShkarin / pyLabLib

Python package for device control and experiment automation
http://pylablib.readthedocs.io
GNU General Public License v3.0
125 stars 28 forks source link

DCAM, impossible to set an attribute that exists in DCAMPROP #62

Closed Winounet closed 8 months ago

Winounet commented 8 months ago

Hi,

I am trying to change DCAMPROP_READOUT_DIRECTION attribute. that is defined in dcamprop_defs.py line 123 to 126. When I use: hcam.set_attribute_value("readout_direction", 1.0) an error raised: DCAMERR_NOTWRITABLE.

If I print all the attributes using hcam.get_all_attributes(), it returns:

'readout_direction': DCAMAttribute(name='READOUT DIRECTION', kind=enum, id=4194608, min=5, max=5, unit=0)

I don't understand why the min is 5. I checked on the DCAM.py file and I don't see where it could be forced to work only in mode 5 ('DIVERGE') ?

Thanks a lot,

Winounet commented 8 months ago

I finally got it, the sensor mode has to be changed before to progressive to access this parameter. Thanks,