Ubasic :Unk stat ,with motion detection - General Help and Assistance on using CHDK stable releases - CHDK Forum  

Ubasic :Unk stat ,with motion detection

  • 17 Replies
  • 3125 Views
Ubasic :Unk stat ,with motion detection
« on: 24 / February / 2013, 09:02:58 »
Advertisements
hello
I,m in north France
my english is not on the top .....sorry!
I have an A 710 is canon with chdk
a script with intervalometre which runs very well !
but ..troubles with several script for motion detection!
allways this little message ! ubasic Unk stat
can you help me or better! can you give me a script which runs on a A 710 with the good parameters !
thanks!

Re: Ubasic :Unk stat ,with motion detection
« Reply #1 on: 24 / February / 2013, 09:06:00 »
CHDK supports two different scripting languages - uBASIC and Lua.    You tell CHDK which language a script is using by the file extension  ( e.g.   motion.lua means its in Lua,  motion.bas means its in uBASIC).   If you load a script written in Lua but do not give the script filename a .lua extension then you will get the "Unk stat".

So to make the scripts that are giving you trouble work, simply change the file name extension to .lua

Hint : the comment block at the start of a Lua script starts with

Code: [Select]
--[[
@title Motion Detect
]]--

while the same program written in uBASIC will just look like this

Code: [Select]
@title Motion Detect
« Last Edit: 24 / February / 2013, 09:11:29 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Ubasic :Unk stat ,with motion detection
« Reply #2 on: 24 / February / 2013, 09:26:44 »
I
i try to use this one
http://chdk.wikia.com/wiki/Motion_detection_settings#Motion_Detection_Settings Motion Detection Setting
which is very simple !
so I think it's wrote for Ubasic, so: .bas  isn't it?
can I use my camera in "automatic program" or not
merci !

*

Offline srsa_4c

  • ******
  • 4285
Re: Ubasic :Unk stat ,with motion detection
« Reply #3 on: 24 / February / 2013, 09:44:16 »
@Pasco
Make sure that you save the script as simple text (ASCII or ANSI, not UTF-whatever or Unicode).


Re: Ubasic :Unk stat ,with motion detection
« Reply #4 on: 24 / February / 2013, 09:47:12 »
i try to use this one
http://chdk.wikia.com/wiki/Motion_detection_settings#Motion_Detection_Settings Motion Detection Setting
which is very simple !
so I think it's wrote for Ubasic, so: .bas  isn't it?
can I use my camera in "automatic program" or not
merci !
There are two scripts listed on that wiki page.  The first is written in uBASIC and the other in Lua.  These two scripts are also included with the CHDK installation file so should already be on your camera in the script directory.

One other possible problem might be how you are creating your script files.  These need to be simple ASCII files with no extra embedded formatting (like you might get from using a word processor).   If you are using Windows,  create the files with Notepad. 

Bonne chance !
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Ubasic :Unk stat ,with motion detection
« Reply #5 on: 24 / February / 2013, 10:44:39 »
another message now!
uBasic:22 Parse err
(I wrote the script with notepad in ansi code)
do you see what that means?

Re: Ubasic :Unk stat ,with motion detection
« Reply #6 on: 24 / February / 2013, 10:46:25 »
another message now!
uBasic:22 Parse err
(I wrote the script with notepad in ansi code)
do you see what that means?
It means you have an error at line 22 of your script.  Is that the last line by any chance ?  Insert a blank line at the end if it is.

Otherwise,  please post the script here.  Its hard to help debug something you can't see :)
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Ubasic :Unk stat ,with motion detection
« Reply #7 on: 24 / February / 2013, 10:54:55 »
ok
the  script comes from this website so I just do "ctrl_c" ctrl_v" and change .Txt in .bas
I( try) to send my script !


Re: Ubasic :Unk stat ,with motion detection
« Reply #8 on: 24 / February / 2013, 11:06:20 »
ok  the  script comes from this website so I just do "ctrl_c" ctrl_v" and change .Txt in .bas
I( try) to send my script !
I was able to load and run your file on my A1200 (once I changed to filename to mouvt.bas).

What version of CHDK are you using and where did you get it? 

Tell me the exact file name - something like a710-100a-1.1.0-2594-full.zip
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Ubasic :Unk stat ,with motion detection
« Reply #9 on: 24 / February / 2013, 11:12:54 »
I've found This on web

 

Related Topics