Trouble running scripts (mx3's motion detection) on A640 - General Discussion and Assistance - CHDK Forum

Trouble running scripts (mx3's motion detection) on A640

  • 4 Replies
  • 4474 Views
Trouble running scripts (mx3's motion detection) on A640
« on: 16 / March / 2008, 10:05:49 »
Advertisements
I'm using Allbest #37 for my A640 and trying to run MK3's Motion Detection scripts from Barney Fife's post Highest Speed Motion-Detection (Lightning) Scripts.
I saved the text files per the  FAQ/Mac - CHDK Wiki guide just fine.
Then I moved the files over to my 8gb SD card scripts folder and put it back in the camera. 
I start the camera and run CHDK in play back then go into the scripting parameters and load the .bas file.
The -current script- will change to mx3a.bas and everything else is at defaults.
When I go to shoot mode I have the camera in manual with flash turned off and focus set to infinity.
I turn ALT mode on and MX3A.BAS and <ALT> are on the bottom of the screen.
I push the shutter button to start the scripts and I get a red error message top left that reads uBASIC:1 ukn stmt

This happens with every variation of the motion detection scripts I've ran. Any tips or suggestions. I have to be missing something.

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: Trouble running scripts (mx3's motion detection) on A640
« Reply #1 on: 16 / March / 2008, 10:14:01 »
so other kinds of scripts do run, without motion detection?
how do the scripts look like in the chdk-file-reader? the same as on pc?

Re: Trouble running scripts (mx3's motion detection) on A640
« Reply #2 on: 16 / March / 2008, 10:25:12 »
hmm they are not the same the very first line has added text I'm not seeing using Notepad UTF-8 encoding on Vista 64. it looks like:

Code: [Select]
n>>i@title MD Lightning6
@param a Columns
@default a 6
@param b Rows
@default b 4
@param c Threshold (0-255)
@default c 10
@param d Compare Interval (millisecs)
@default d 1
@param e Trigger Delay (0.1 secs)
@default e 12
@param f Rows to Exclude
@default f 0
@param g Pix-Step(speed/accuracy adj)
@default g 8
@param h Reg Mode(0-no,1-incl,2-excl)
@default h 0
@param i Measure Mode(1-Y,0-U,2-V)
@default i 1
if a<1 then a=1
if b<1 then b=1
if c<0 then c=0
if g<1 then g=1
if f<1 then f=1
e=e*100
print ">[";a;",";b;"] threshold: ";c
x=30000
:md
press "shoot_half"
t=0
do
md_detect_motion a, b, i, x, d, c, 1, t, h, 1, 1, a, f, 0, g, e
until t>0
click "shoot_full"
goto "md"

is there a way to keep notepad from doing this or is this normal?

Re: Trouble running scripts (mx3's motion detection) on A640
« Reply #3 on: 16 / March / 2008, 13:24:01 »
Deleted
« Last Edit: 22 / April / 2008, 14:19:25 by Barney Fife »
[acseven/admin commented out: please refrain from more direct offensive language to any user. FW complaints to me] I felt it imperative to withdraw my TOTAL participation. Nobody has my permission, nor the right, to reinstate MY posts. Make-do with my quoted text in others' replies only. Bye


Re: Trouble running scripts (mx3's motion detection) on A640
« Reply #4 on: 16 / March / 2008, 14:06:08 »
Thanks barney. I figured out if I use ANSI encoding while saving the script it will work. So far everything I've tested works, just needs plenty of tweaking.

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal