Home AMX User Forum NetLinx Studio

code for radia lights

Has any one ever used Radia Lighting controlers with a NXI master? The issue that I am running into is that when ever you turn off a Radia device channel number for the off channels (135-140) the actual relay does not turn off untill about 5seconds after you turn on the channel, also if you try and turn off multiple lights(ie relays) one right after the other the channels for off come on but the lights dont go out.This may seem confuseing so i have attached my code to show more detail

PROGRAM_NAME='LIGHTS'

DEFINE_DEVICE
dvRadia = 96:1:0 //RADIA LIGHTING CONTROLER 1
dvPLK_SB1 = 6001:1:0 //PLK-SD LIGHT SWITCHES
dvPLK_SB2 = 6002:1:0 //PLK-SD LIGHT SWITCHES
dvPLK_SB3 = 6003:1:0 //PLK-SD LIGHT SWITCHES
dvPLK_SB4 = 6004:1:0 //PLK-SD LIGHT SWITCHES
dvPLK_SB5 = 6005:1:0 //PLK-SD LIGHT SWITCHES
dvPLK_SB6 = 6006:1:0 //PLK-SD LIGHT SWITCHES

vdvPLK_SB1 = 36001:1:0 //PLK-SD LIGHT SWITCHES
vdvPLK_SB2 = 36002:1:0 //PLK-SD LIGHT SWITCHES
vdvPLK_SB3 = 36003:1:0 //PLK-SD LIGHT SWITCHES
vdvPLK_SB4 = 36004:1:0 //PLK-SD LIGHT SWITCHES
vdvPLK_SB5 = 36005:1:0 //PLK-SD LIGHT SWITCHES
vdvPLK_SB6 = 36006:1:0 //PLK-SD LIGHT SWITCHES

DEFINE_EVENT

BUTTON_EVENT[vdvPLK_SB1,1]//on
{
push:{on[dvRadia,129]}
}
BUTTON_EVENT[vdvPLK_SB1,2]//off
{
push:{on[dvRadia,135]}
}
BUTTON_EVENT[vdvPLK_SB2,1]
{
push:{on[dvRadia,130]}
}
BUTTON_EVENT[vdvPLK_SB2,2]
{
push:{on[dvRadia,136]}
}
BUTTON_EVENT[vdvPLK_SB3,1]
{
push:{on[dvRadia,131]}
}
BUTTON_EVENT[vdvPLK_SB3,2]
{
push:{on[dvRadia,137]}
}
BUTTON_EVENT[vdvPLK_SB4,1]
{
push:{on[dvRadia,132]}
}
BUTTON_EVENT[vdvPLK_SB4,2]
{
push:{on[dvRadia,138]}
}
BUTTON_EVENT[vdvPLK_SB5,1]
{
push:{on[dvRadia,133]}
}
BUTTON_EVENT[vdvPLK_SB5,2]
{
push:{on[dvRadia,139]}
}
BUTTON_EVENT[vdvPLK_SB6,1]
{
push:{on[dvRadia,134]}
}
BUTTON_EVENT[vdvPLK_SB6,2]
{
push:{on[dvRadia,140]}
}
DEFINE_PROGRAM
[dvPLK_SB1,1] = [dvRadia,129]
[dvPLK_SB1,2] = [dvRadia,135]

[dvPLK_SB2,1] = [dvRadia,130]
[dvPLK_SB2,2] = [dvRadia,136]

[dvPLK_SB3,1] = [dvRadia,131]
[dvPLK_SB3,2] = [dvRadia,137]

[dvPLK_SB4,1] = [dvRadia,132]
[dvPLK_SB4,2] = [dvRadia,138]

[dvPLK_SB5,1] = [dvRadia,133]
[dvPLK_SB5,2] = [dvRadia,139]

[dvPLK_SB6,1] = [dvRadia,134]
[dvPLK_SB6,2] = [dvRadia,140]


What happens is if you turn on any on channel for a zone the channel turns on and the lights turn on. If you turn on an off channel the relay takes about 5 seconds to turn the lights off.Any help would be great.I

Comments

  • Hi Steve,

    I have several Radia units with my NI-3000 as a master and they work fine. But I've always used send_string to control them. Quite frankly I didn't even know they responded to or otherwise used channels... The documentation I have doesn't say anything about channels.

    So, you might try send_string instead. Mine respond instantly.
  • I thought the feedback channels were from 1-128?
Sign In or Register to comment.