Page 3 of 9 FirstFirst 12345 ... LastLast
Results 21 to 30 of 81

Thread: Where do I start with LUA

  1. #21
    Join Date
    May 2004
    Location
    Dallas, TX
    Posts
    1,032

    Default

    Path to install the file is ProgamFiles/promixis/girder5/luascript/transport/devices. Remove all previous instances of that file as well.
    Rick

    Girder 5.0 - Elk M1 Gold - JRMC 11.1 w/ M-Audio Delta 410 - NetRemote 2.0 - Panasonic KX-TA624 Phone System - ZoneMinder DVR
    Girder 5 Plugins - Elk M1/EZ8, Email Manager, Girder Backup, Ocelot, xAP Speedfan, xAP Ping, xAP Zoneminder and many more.


    Visit My Showcase

  2. #22
    Join Date
    Mar 2008
    Location
    Nottingham, England
    Posts
    406

    Default

    Right

    removed all additional files from devices...the only 4 that are there are the original example files


    restarted the lua engine


    reads this


    ScriptReset Start
    LOG: Component Manager : 4 - Components never started.
    Component Manager Shutdown Time 311.09456648817
    ScriptReset Done Calling ScriptReset Callbacks, Time: 480.15404192428
    Welcome to Promixis Girder 5.0.6 build 540
    { -- #0
    [1] = 2,
    [2] = "
    ",
    [3] = 1000,
    [4] = function,
    } -- #0


    i can select 'example4' in TM it shows


    attached

    Cheers

    Mark



    cheers

    Mark
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	ComMan.jpg 
Views:	74 
Size:	67.9 KB 
ID:	5242  
    some people learn by writing, some by reading, some by listening and some by doing?...me I'm not learning at all

  3. #23
    Join Date
    May 2004
    Location
    Dallas, TX
    Posts
    1,032

    Default

    Add in the file I attached in post 19. Restart Girder and see if you can select it.
    Rick

    Girder 5.0 - Elk M1 Gold - JRMC 11.1 w/ M-Audio Delta 410 - NetRemote 2.0 - Panasonic KX-TA624 Phone System - ZoneMinder DVR
    Girder 5 Plugins - Elk M1/EZ8, Email Manager, Girder Backup, Ocelot, xAP Speedfan, xAP Ping, xAP Zoneminder and many more.


    Visit My Showcase

  4. #24
    Join Date
    Mar 2008
    Location
    Nottingham, England
    Posts
    406

    Default

    these are the other two windows...
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	SerPor.jpg 
Views:	62 
Size:	56.4 KB 
ID:	5243   Click image for larger version. 

Name:	TranMan.jpg 
Views:	70 
Size:	67.7 KB 
ID:	5244  
    some people learn by writing, some by reading, some by listening and some by doing?...me I'm not learning at all

  5. #25
    Join Date
    Mar 2008
    Location
    Nottingham, England
    Posts
    406

    Default

    Hi Rick,

    Thanks for this....

    this is what I see now...
    cheers

    Mark
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	TranMan1.jpg 
Views:	70 
Size:	65.1 KB 
ID:	5245  
    some people learn by writing, some by reading, some by listening and some by doing?...me I'm not learning at all

  6. #26
    Join Date
    Mar 2008
    Location
    Nottingham, England
    Posts
    406

    Default

    Hi Rick,

    this is the Lua console.....

    Welcome to Promixis Girder 5.0.6 build 540
    { -- #0
    [1] = 2,
    [2] = "
    ",
    [3] = 1000,
    [4] = function,
    } -- #0
    { -- #0
    [1] = 3,
    [2] = 254,
    [3] = 1,
    [4] = 1000,
    [5] = function,
    } -- #0


    Cheers

    Mark
    some people learn by writing, some by reading, some by listening and some by doing?...me I'm not learning at all

  7. #27
    Join Date
    Jan 2000
    Location
    Jupiter, FL
    Posts
    11,350

    Default

    You have two devices trying to access com1,.. remove the one you don't want.
    Ron
    No support through PM

  8. #28
    Join Date
    Mar 2008
    Location
    Nottingham, England
    Posts
    406

    Default

    @Rick... cheers man...couldn't of got here without you.....


    the teac is connected in TM

    this what i see now

    Welcome to Promixis Girder 5.0.6 build 540
    { -- #0
    [1] = 3,
    [2] = 254,
    [3] = 1,
    [4] = 1000,
    [5] = function,
    } -- #0
    SEND 30 78 30 34 0x04
    LOG: My Teac AG-980 Transport : 4 - No response to last send
    SEND 30 78 30 34 0x04
    LOG: My Teac AG-980 Transport : 4 - No response to last send
    SEND 30 78 38 31 37 33 0x8173
    LOG: My Teac AG-980 Transport : 4 - No response to last send


    can some one educate me what a 'checksum' is...


    the teac has a SYSTEM ID code of 0x8173

    where do i put this??

    do i string the codes together ie

    0x8173 0x04


    where 0x8173 is system id
    and 0x04 is cd input select


    and is it text or hex?



    cheers

    Mark
    some people learn by writing, some by reading, some by listening and some by doing?...me I'm not learning at all

  9. #29
    Join Date
    Mar 2008
    Location
    Nottingham, England
    Posts
    406

    Default

    @Ron

    Do you think this is happening to me???


    It appears you might have been running into a bug.

    Change line 800 of transport/Core.lua from



    Code:
    if x < self.Settings.Transport.Post.NoResponseTimeout thento


    Code:
    if x < self.Settings.Transport.Post.NoResponseTimeout * 0.9 thenSometimes the event appears to fire a fraction of a second earlier then requested tripping up this check.

    Also you should probably increase the queue to a larger size:


    Code:
    local DefaultSettings = prepare(
    -- first base settigs.
    {
    Transport = {
    Post = {
    NoResponseTimeout = 2000,
    },
    },
    Parser = {
    Type = constants.parser.TERMINATED,
    Terminator = '\r',
    Timeout = 1000,
    },
    MaxQueuedItems = 10,
    },
    -- overrides for serial transport
    {
    Transport = {
    Post = {
    Baud = 9600,
    Flow = 'N',
    Parity = 'N',
    DataBits = 8,
    StopBits = 1,
    },
    },
    }
    )


    its in another thread you have posted in....


    cheers

    Mark
    some people learn by writing, some by reading, some by listening and some by doing?...me I'm not learning at all

  10. #30
    Join Date
    Jan 2000
    Location
    Jupiter, FL
    Posts
    11,350

    Default

    Possible, also possible your device is not responding yet. Anyway if you update to version 5.0.7 that fix is included. Use a RS232 snooper to see what is going on...
    Ron
    No support through PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •