Always need to save camerasetting before apply?

Discuss macros to control the hardware functions of your ZEISS microscope
Post Reply
user-6033
Posts: 89
Joined: Thu Jan 01, 1970 1:00 am

Always need to save camerasetting before apply?

Post by user-6033 »

Hi,
I start with:
cam = Zen.Acquisition.ActiveCamera.ReadCameraSetting()

Afterwards I set some parameters, either via Zen.Acquisition.ActiveCamera.Exposure/Binning etc, or via cam.SetParameter('Parameter', 'Value'). The first case works directly but the other way need to be applied as it seems. However, if I try to apply it then it complaints that it first needs to be saved. It seems a bit odd when comparing with how it works for the HardwareSettings. So the method is reading the active settings, changing parameters, saving, and finally applying to make it work?

I also noticed that when using one macro where one specific camera setting is loaded then it appears as I am able to ran another macro, starting with "cam = Zen.Acquisition.ActiveCamera.ReadCameraSetting()") and using cam.SetParameter(), which then seems to work instantly...


It would be nice if the colormode could be changed via a direct function, like binning and exposure time.

Best regards
Fredrik Olsson
user-4
Posts: 398
Joined: Thu Jan 01, 1970 1:00 am

Post by user-4 »

Hello Fredrik Olsson,

you are right, the CameraSetting is not ‚as expected‘.

At the moment the only workaround is via SaveAs before Apply, which is not nice but it does the job.

We will refactor CameraSetting for a better handling.

Thank you for your contribution!
Post Reply