alliedvision / VimbaPython

Old Allied Vision Vimba Python API. The successor to this API is VmbPy
BSD 2-Clause "Simplified" License
93 stars 40 forks source link

Error invoking "startstreaming/1AB2%3A0001/DEV_1AB22C003FC4/3": Invalid access while calling 'set()' of Feature 'TriggerMode'. Read access: allowed. Write access: allowed. #48

Open marciojersey opened 3 years ago

marciojersey commented 3 years ago

I randomly get the following error when I attempt to change the trigger mode property on a camera:

Error invoking "startstreaming/1AB2%3A0001/DEV_1AB22C003FC4/3": Invalid access while calling 'set()' of Feature 'TriggerMode'. Read access: allowed. Write access: allowed.

In fact, that error occurs on attempting to change any camera property. This even happened on a fresh computer restart. This problem can be temporarily fixed by issuing the reset command to the camera, but after a while the error start to manifest again.

simonfisher commented 3 years ago

I have this issue too, when trying to see the pixel format. Using 1800 u-120m USB cameras. The property is changeable fine in Vimba Viewer

NiklasKroeger-AlliedVision commented 3 years ago

First of all: Sorry for the long wait!

Error invoking "startstreaming/1AB2%3A0001/DEV_1AB22C003FC4/3": Invalid access while calling 'set()' of Feature 'TriggerMode'. Read access: allowed. Write access: allowed.

Hmm from the error message it seems like you should be allowed to change the TriggerMode feature at that point. Would i be possible for you to provide some more code around the line where the error occurs? Some of our command features may take some time to be executed. So perhaps the camera is still in streaming mode and does not accept the command even though VimbaPython assumes that streaming has already stopped. Some surrounding code would be helpful in seeing if that may be the case.