Author Topic: syntax error gsd rudy code  (Read 2185 times)

gonesurfing

  • Veteran
  • ***
  • Posts: 61
    • View Profile
syntax error gsd rudy code
« on: December 27, 2009, 08:51:40 am »
hi
can anyone tell me what i have got wrong here


Complete log
Device serial to dmx, # 123    
Device Template serial to dmx, device category Lighting Interface, manufacturer millford instruments.   
   
34 lines, displaying from 0 to 34   
1   

== ATTEMPT FRESH START ==
1   12/27/09 18:31:04   /usr/pluto/bin/Spawn_Device.sh 123 (spawning-device)   17694 Dev: 123; Already Running list: 15,16,18,19,27,28,21,22,26,94,23,25,93,30,
== FRESH START ==
1   12/27/09 18:31:04   /usr/pluto/bin/Spawn_Device.sh 123 (spawning-device)   device: 123 ip: localhost cmd_line: Generic_Serial_Device
0   12/27/09 18:31:04   123 (spawning-device)   Entering 123
========== NEW LOG SECTION ==========
1   12/27/09 18:31:05   123 (spawning-device)   Starting... 1
1   12/27/09 18:31:05   123 (spawning-device)   Found /usr/pluto/bin/Generic_Serial_Device
RCODE:
   0:require 'Ruby_Generic_Serial_Device'
   1:class Command < Ruby_Generic_Serial_Device::RubyCommandWrapper
   2:end
   3:class Device_123 < Ruby_Generic_Serial_Device::RubySerialIOWrapper
   4:def cmd_ReceiveCommandForChild(cmd)
   5:id=device_.childdevices_[cmd.devidto_].devdata_[12]#get child device number
   6:if cmd.id_==192#192 is on
   7:conn_.Send(id + ",240\r")#set channel ID to 95%
   8:end
   9:if cmd.id_==193#193 is off
  10:conn_.Send(id + ",0\r")#set channel ID off
  11:end
  12:end
  13:end
  14:#### START SETTERS ####################################################################
  15:def initialize()
  16:super
  17:@returnParamArray=Array.new
  18:end
  19:####  END  SETTERS ####################################################################
  20:end
 22:01   12/27/09 18:31:05.483      Failed loading code: Error loading code:
error: (eval):20: compile error
(eval):20: syntax error, unexpected kEND, expecting $end, line: 20
. <0xb57afb90>

thanks steve