January 5th, 2006, 01:02 PM
converting from 3 to 4
Having problems converting a gml from Girder 3 to Girder 4
below is some code which was written by Mark F and converted to Girder 4 by Mike it allows info from my Meridian proccessor (volume, Source etc.) to be displayed on Netremote.
Initialize = function (self)
gir.LogMessage(self.Name, 'Port opened',3)
self.Status = "Port opened"
return serial.Classes.Queued.Initialize (self)
ReceiveResponse = function ( self, data, code )
if data then -- we received something
-- define local variable for parsed data
-- parse the data (based on white space) into the fields table
string.gsub(data, "(%w+)", function (w) table.insert(fields, w) end)
if (sourceNames[fields] ~= nil) then
gir.TriggerEvent(self.GlobalName.." Source", 18, fields, fields)
gir.TriggerEvent(self.GlobalName.." Other", 18, fields, fields)
if math.band (code,serial.INCOMPLETERESPONSETIMEOUT) > 0 and data then
code = serial.zerobits (code,serial.INCOMPLETERESPONSETIMEOUT) --clear this flag
if math.band (code, serial.NORESPONSETIMEOUT) > 0 then -- no response to command
This works fine but I am having problems sending this info from Girder to Netremote
in Girder 3 but it does not seem to work in Girder 4....... What do I need to change
January 5th, 2006, 02:01 PM
What's the problem - and where is this code located?
January 5th, 2006, 03:18 PM
I control a Meridian proccessor with Netremote and Girder.....I had it working with Girder 3 but I am having trouble converting it to Girder 4.......
A serial command was sent to the Meridian from Girder and the Meridian would send back info. to Girder.... this Girder event would trigger an action that would send that data to My (Dell Axim) running Netremote...i.e. displaying the change in source, volume, DSP setting etc.....
The sending to and receiving data from the Meridian appears to be working, but I am unable to send the data to Netremote....
I used an action with this script attached...
Is this still used by Girder 4 or is there another way to send the data to Netremote....
or is it a matter of changing the syntax....
as a note my programming skills are zero.... and most of what I achieved before was with the kind help of people on this forum and a lot of trial and error ( a lot of error)
January 5th, 2006, 04:11 PM
NetRemote.SendLabel should still work, although the recommended form is NetRemote.SetVariable
Just to check, you do have NetRemote support enabled don't you?
File|Settings - you should see NetRemote in the Automation section at the bottom left. Make sure that it's enabled
January 5th, 2006, 04:20 PM
yes it is enabled..... it is controlling the Meridian....i.e. it increases the volume.
When I test the action I get syntax error....with the statement below in interactive Lua console. (I think I may have mentioned this in another thred)
"Volume Changed too old: read version 4.0; expected at least 5.0"
January 5th, 2006, 04:24 PM
Actually that's no guarantee that the feedback part is enabled.
As I think I said in the other thread, you need to edit the volume changed action and save it so that it gets recompiled for Lua 5
January 5th, 2006, 06:04 PM
Sorry I am not really sure what you mean........
Hold on a second I think I might...........................
January 10th, 2006, 02:22 PM
got it working again. Although it momenterally displays the code which was sent to the Meridian i.e. VP for Volume + and VM for Volume -. This is replaced by the actual volume. Is there somthing in the Meridian Serial plug in that was written for Girder 4 that is different than the one written for Girder 3
Also My equipment is in a seperate under stairs cupboard and now with a PC in there as well, the temperature is getting a little hot......If I wanted to move the PC to a remote location what sort of equipment could I use to connect the PC to the Meridian (Wireless or not)
thanks for all the help
January 10th, 2006, 03:36 PM
January 12th, 2006, 04:59 AM
ideally three rooms away.....one wall more than the wireless router is from the Meridian at the moment....