Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: DeviceManager and Lua

  1. #11
    Join Date
    Jan 1998
    Location
    Jupiter, FL
    Posts
    13,553

    Default

    BTW 6.0.0.53 has been released.
    Ron
    No support through PM

  2. #12
    Join Date
    Mar 2013
    Location
    Eastern Switzerland
    Posts
    14

    Default

    Sorry Ron and yonu

    i'm too stupid to understand that...

    In G5 we (company manser) had a *.lua-driver in the luascript/transport directory and the transport plugin finding and loading it. But where the heck do i put these files in G6? If you know some thread which explains this more in detail than the manual, could you publish a link? I did many drivers in G5 by copying and adapting Simon's drivers, so hopefully i can make it in G6 too.

    In G5 we didn't write a UI für the driver, just plain coding. Is that also valid for G6, or does every communitation need to be transferred via the device manager, needing a plugin or how does it work?


    Sorry for my confusion, i'm again learning it from the very start...


    Also i can't learn IR via USBUIRT on Win7-64, and my other setup with a raspi (win frontend and Raspi service) connects for some second and reports a broken connection... every beginning is hard...

    Christian

  3. #13
    Join Date
    Mar 2013
    Location
    Eastern Switzerland
    Posts
    14

    Question G5 Driver Sony-Beamer to G6, What needs to be changed? try to understand G6 transport

    Hi Ron and all other girder experts

    In terms of understanding how the new transport is working, i share one of our Girder 5 drivers.
    Can anybody give me an advice what needs to be changed to run it in Girder 6?
    I can't figure out how and if i have to see it in the device manager.

    (I recently modified the GML to run a Sony VPL-FHZ55 Laserbeamer, but to prevent chaos in our data i send the original PX-41 driver, it partially fits to the FHZ55)

    The .lua-File had to be placed in this directory:
    C:\Program Files (x86)\Promixis\Girder5\luascript\transport\devices


    Can anybody help me please with that?

    sonyVP41.gml

    Sony_VPL-PX41.lua



    Sincerely and thank you very much!!

    Christian
    Last edited by chribe; June 12th, 2014 at 10:38 AM.

  4. #14
    Join Date
    Mar 2013
    Location
    Eastern Switzerland
    Posts
    14

    Unhappy Still got no clue, please help!

    I appreciate some help. Since i am an integrator but no professional programmer please excuse my lack of knowledge...

    Has nobody the same problems with changing to g6? I read the manual several times but have troubles to get the clue...
    The supplied example driver isn't too overdocumented... That's why i uploaded my own g5 driver which needs to be overhauled for g6

    Thank you
    Christian

  5. #15
    Join Date
    Jan 1998
    Location
    Jupiter, FL
    Posts
    13,553

    Default

    Sorry about the delay. We were on vacation last week and I'm catching up on all the work that piled up. I will try to look at this tomorrow.
    Ron
    No support through PM

  6. #16
    Join Date
    Jan 1998
    Location
    Jupiter, FL
    Posts
    13,553

    Default

    Again sorry about the delay. We've been swamped.

    I've attached a first pass at a port of the .lua script. Place it in the examples directory then run the following code to start it from a script action:


    Code:
    require('examples.Sony_VPL_PX41')     
    vpl = examples.Sony_VPL_PX41.new( "COM7" )
    vpl:connect()
    vpl:send("whatever")
    Change "whatever" to what you wish to send. Don't forget to change the comport as needed.
    Attached Files Attached Files
    Ron
    No support through PM

  7. #17
    Join Date
    Mar 2013
    Location
    Eastern Switzerland
    Posts
    14

    Default Samplescript also for RasPi?

    Hi Ron

    Thank you for your help. i'm actually trying to make it work, but as it seems the bit-module isn't yet implemented in the Raspberry Version, is that right?

    Got that message:


    12:08:31, Source=Script Action - PCall, Message=Auslöse-Skript / /opt/girder/lua/examples/Sony_VPL_PX41.lua:13: module 'bit' not found:
    no field package.preload['bit']
    no file './bit.lua'
    no file '/opt/girder/lua/bit.lua'
    no file '/opt/girder/lua/bit/init.lua'
    no file './libbit.so'
    no file './bit.so'
    stack traceback:
    [C]: in function 'require'
    /opt/girder/lua/examples/Sony_VPL_PX41.lua:13: in main chunk
    [C]: in function 'require'
    [string "Ausl?se-Skript"]:1: in main chunk, Node=( {C6778701-D3E2-443E-B7D2-A3D466B60883}, 1852790592)



    Are these files somewhere arount, so i could copy them to these paths?

    And how do i establish the connection then not using a COM but direct TCP?


    Thank you and have nice holidays - if you aren't already there...

    Christian


    ---------------------------------



    I've attached a first pass at a port of the .lua script. Place it in the examples directory then run the following code to start it from a script action:


    Code:
    require('examples.Sony_VPL_PX41')     
    vpl = examples.Sony_VPL_PX41.new( "COM7" )
    vpl:connect()
    vpl:send("whatever")
    Change "whatever" to what you wish to send. Don't forget to change the comport as needed.[/QUOTE]

  8. #18
    Join Date
    Jan 1998
    Location
    Jupiter, FL
    Posts
    13,553

    Default

    bit problem is documented here:

    http://www.promixis.com/forums/showt...erry-pi-distro

    Positing from hotel in Pensacola! So yes vacation has arrived.
    Ron
    No support through PM

  9. #19
    Join Date
    Mar 2013
    Location
    Eastern Switzerland
    Posts
    14

    Default

    Hi Ron

    After a long time i try to get into girder again... Working for a new company with different systems and a lot of learning in between, i now started to overhoul my own girder 5 system.

    Is there some documentation on writing drivers for girder 6?

    I actually try to figure out how to write a driver for a velleman VM-201 relais card. Since i learn girder 6 from the scratch, it was very helpful to have some example to start with.


    Thank you for further assistance and have a nice day

    Christian

Page 2 of 2 FirstFirst 12

Posting Permissions

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