General > Users

Ruby code for Generic serial Device

(1/1)

corwin:
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

Navigation

[0] Message Index

Sitemap 
Go to full version