Strange pause with intervall script on S3IS - page 2 - Script Writing - CHDK Forum

Strange pause with intervall script on S3IS

  • 16 Replies
  • 5971 Views
*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: Strange pause with intervall script on S3IS
« Reply #10 on: 16 / April / 2008, 03:50:01 »
Advertisements
hm, isnt there a camera-ready-propcase somewhere? that would render the sleep statements obsolete. hm.

Re: Strange pause with intervall script on S3IS
« Reply #11 on: 16 / April / 2008, 05:14:10 »
When I wrote scripts I would embed "sleep" commands to compensate for it within the script instead. Others may not have done that.

Can't you use something like this (for Digic II, turn "205" into "206" for Digic III) instead of "sleep":
Code: [Select]
do
  get_prop 205 p
until p=0

Re: Strange pause with intervall script on S3IS
« Reply #12 on: 16 / April / 2008, 14:58:33 »
Hello,

indeed, I did not notice that there is a "general" setting that slows down the scripts. I don't have any delays anymore.
Thanks for your feedback though.

I did try something like this, but this takes only one picture, it just runs through ...
Can anyone correct this?

@title Simple Intervalometer
@param a Pause s beginning
@default a 2
@param d Number of Shots
@default d 5

n=1
p=0
print "Shot", n, "of", d
  sleep a*1000
  click "shoot_full"

:do_loop
  for n=2 to d
  print "Shot", n, "of", d
  do
     get_prop 205 p
  until p=0
  click "shoot_full"
  next n
end

*

Offline GrAnd

  • ****
  • 916
  • [A610, S3IS]
    • CHDK
Re: Strange pause with intervall script on S3IS
« Reply #13 on: 16 / April / 2008, 15:14:12 »
It can go through the script before 'p' is actually set to 1 during shooting. Try inserting extra delay after 'click' command.
CHDK Developer.


Re: Strange pause with intervall script on S3IS
« Reply #14 on: 17 / April / 2008, 11:59:05 »
I tried this, but it still doesn't work.
I think I'll stick to the Ultra-Intervallometer, it works for me now.

@title Simple Intervalometer
@param a Pause s beginning
@default a 2
@param d Number of Shots
@default d 5

n=1
p=0
print "Shot", n, "of", d
  sleep a*1000
  click "shoot_full"
  sleep 100

:do_loop
  for n=2 to d
  print "Shot", n, "of", d
  do
     get_prop 206 p
   sleep 100
  until p=0
  click "shoot_full"
  next n
end


*

Offline GrAnd

  • ****
  • 916
  • [A610, S3IS]
    • CHDK
Re: Strange pause with intervall script on S3IS
« Reply #15 on: 17 / April / 2008, 12:09:15 »
Maybe this...
Quote
@title Simple Intervalometer
@param a Pause s beginning
@default a 2
@param d Number of Shots
@default d 5

p=0
print "Waiting", a, "seconds..."
sleep a*1000

print "Shot 1 of", d
click "shoot_full"

:do_loop
for n=2 to d
   do
     get_prop 205 p
   until p=1
   do
     get_prop 205 p
   until p=0
print "Shot", n, "of", d
click "shoot_full"
next n
end
« Last Edit: 17 / April / 2008, 12:13:20 by GrAnd »
CHDK Developer.

*

Offline GrAnd

  • ****
  • 916
  • [A610, S3IS]
    • CHDK
Re: Strange pause with intervall script on S3IS
« Reply #16 on: 17 / April / 2008, 12:12:56 »
BTW. For S3 the property number is 205.
CHDK Developer.

 

Related Topics