Author Topic: Ruby code for Generic serial Device  (Read 1153 times)

corwin

  • Regular Poster
  • **
  • Posts: 30
    • View Profile
Ruby code for Generic serial Device
« on: April 08, 2007, 07:29:08 am »
Hi,

Has anyone successfully created a GSD with custom Ruby code? I tried to follow the docs in the wiki but I'm getting nowhere...

From the Edit Ruby codes screen, I click on a command (say "ON"), enter Ruby code and save. Then I click on "ON" again, and my code isn't there...

Also, the examples are really confusing... I can't tell if I can simply enter single liners (like <$"PWON\r"$>) or if I need to define the device class and enter full functions as in the long samples. And nothing there says where the device state is stored or how to get/set it.

TIA, Itai