Page 1 of 1

retreiving data from a camera control page

Posted: Sun Jun 23, 2024 6:49 pm
by smp
I'm writing a perl5 control module for an SV3C ptz camera. I created a new control type named Sv3c:


I can retrieve the stored value for step with:

Code: Select all

my $step = $self->getParam($params, 'step');
my $min = $self->getParam($params, 'min');
print(">>> Iris brightness " step: $step, min: $min <<<\n");
The zmc.log shows:

Code: Select all

Iris brightness step: 10, min:  <<<
I've tried min, range, irisMin, etc. - no joy.
  • Is it possible to retrieve all settings from this camera's control settings?
  • or only a subset?
  • Where would this be defined?

Re: retreiving data from a camera control page

Posted: Sun Jun 23, 2024 8:14 pm
by iconnor
I'm not really sure how that getParam thing is supposed to work.

You should be able to just do $self->CanTilt() or $$self{CanTilt}.

Re: retreiving data from a camera control page

Posted: Sun Jun 23, 2024 9:46 pm
by smp
Thanx!

Code: Select all

  my $max = $self->MaxIrisRange();
  print(">>> Iris brightness " step: $step, max: $max <<<\n");

Code: Select all

>> Iris brightness 40, step: 8, max: 255 <<<

Re: retreiving data from a camera control page

Posted: Sun Jun 23, 2024 10:15 pm
by smp
Thanx again!

Having gotten past that glitch, it took me less than 30 minutes to get iris working!!

Now a little cleanup and I'll see if I can figure out how to turn off those LEDs.