Radia controlled lights not turning off
ajay thomas
Posts: 42
i got the lights to dim up and down using send levels commands to the radia RDC-DC, but i m not able to turn the lights off.
When i send 0 or 1 value to level 1,the radia RDC-DC turns the led off on Channel 1,but voltage 0.14 volts is still going to the bulb.hence it is slightly lit.
Anyone knows why this happen or is there any other way to turn off the channels and the bulbs completely ,so i can turn the lights off .
Also for some reason ,my send strings or send commands dont work only send levels respond.
Hope someone can help me in this
Amx components
1.Radia Control Card (6 channel) RDC-DC
2.Radia module card (3 channel) RDM-3DC (connected to the RDC-DC)
3.NI 3100 Controller
4.TP : Mvp 7500
see my code below
PROGRAM_NAME='Inctest2'
DEFINE_VARIABLE
INTEGER nIndex1
INTEGER nLightButton[]=
{
1, // dimmer channel 1 ON
2, // dimmer channel 1 OFF
3, // dimmer channel 1 low
4, // dimmer channel 1 mid
5, // dimmer channel 2 on
6, // dimmer channel 2 off
7, // dimmer channel 2 low
8, // dimmer channel 2 mid
9, // dimmer channel 3 on
10,// dimmer channel 3 off
11,// dimmer channel 3 low
12,// dimmer channel 3 mid
13,// dimmer channel 4 on
14,// dimmer channel 4 off
15,// dimmer channel 4 low
16, // dimmer channel 4 mid
17,//ALl lights on
18 // ALL lights off
}
DEFINE_EVENT
BUTTON_EVENT[dv_RadiaTP,nLightButton]
{
push:
{
nIndex1 = GET_LAST(nLightButton)
SWITCH(nIndex1)
{
CASE 1:
{
// dimmer channel 1 ON
SEND_LEVEL dv_Light,1,100
}
CASE 2:
{
// dimmer channel 1 OFF
SEND_LEVEL dv_Light,1,1
}
CASE 3:
{
// dimmer channel 1 low
SEND_LEVEL dv_Light,1,75
}
CASE 4:
{
// Dimmer channel 1 high
SEND_LEVEL dv_Light,1,10
}
CASE 5:
{
// Dimmer channel 2 on
SEND_LEVEL dv_Light,2,100
}
CASE 6:
{
// Dimmer channel 2 OFF
SEND_LEVEL dv_Light,2,1
}
CASE 7:
{
// Dimmer channel 2 low
SEND_LEVEL dv_Light,2,10
}
CASE 8:
{
// Dimmer channel 2 high
SEND_LEVEL dv_Light,2,50
}
CASE 9:
{
// Dimmer channel 3 on
SEND_LEVEL dv_Light,3,100
}
CASE 10:
{
// Dimmer channel 3 OFF
SEND_LEVEL dv_Light,3,1
}
CASE 11:
{
// Dimmer channel 3 low
SEND_LEVEL dv_Light,3,10
}
CASE 12:
{
// Dimmer channel 3 high
SEND_LEVEL dv_Light,3,50
}
CASE 13:
{
// Dimmer channel 4 on
SEND_LEVEL dv_Light,4,100
}
CASE 14:
{
// Dimmer channel 4 OFF
SEND_LEVEL dv_Light,4,1
}
CASE 15:
{
// Dimmer channel 4 low
SEND_LEVEL dv_Light,4,10
}
CASE 16:
{
// Dimmer channel 4 high
SEND_LEVEL dv_Light,4,50
}
CASE 17:
{
// all Dimmer channel ON
SEND_LEVEL dv_Light,1,100
send_level dv_Light,2,100
send_level dv_Light,3,100
send_level dv_Light,4,100
}
CASE 18:
{
// All Dimmer channels OFF
SEND_LEVEL dv_Light,1,1
send_level dv_Light,2,1
send_level dv_Light,3,1
send_level dv_Light,4,1
}
}
}
}
When i send 0 or 1 value to level 1,the radia RDC-DC turns the led off on Channel 1,but voltage 0.14 volts is still going to the bulb.hence it is slightly lit.
Anyone knows why this happen or is there any other way to turn off the channels and the bulbs completely ,so i can turn the lights off .
Also for some reason ,my send strings or send commands dont work only send levels respond.
Hope someone can help me in this
Amx components
1.Radia Control Card (6 channel) RDC-DC
2.Radia module card (3 channel) RDM-3DC (connected to the RDC-DC)
3.NI 3100 Controller
4.TP : Mvp 7500
see my code below
PROGRAM_NAME='Inctest2'
DEFINE_VARIABLE
INTEGER nIndex1
INTEGER nLightButton[]=
{
1, // dimmer channel 1 ON
2, // dimmer channel 1 OFF
3, // dimmer channel 1 low
4, // dimmer channel 1 mid
5, // dimmer channel 2 on
6, // dimmer channel 2 off
7, // dimmer channel 2 low
8, // dimmer channel 2 mid
9, // dimmer channel 3 on
10,// dimmer channel 3 off
11,// dimmer channel 3 low
12,// dimmer channel 3 mid
13,// dimmer channel 4 on
14,// dimmer channel 4 off
15,// dimmer channel 4 low
16, // dimmer channel 4 mid
17,//ALl lights on
18 // ALL lights off
}
DEFINE_EVENT
BUTTON_EVENT[dv_RadiaTP,nLightButton]
{
push:
{
nIndex1 = GET_LAST(nLightButton)
SWITCH(nIndex1)
{
CASE 1:
{
// dimmer channel 1 ON
SEND_LEVEL dv_Light,1,100
}
CASE 2:
{
// dimmer channel 1 OFF
SEND_LEVEL dv_Light,1,1
}
CASE 3:
{
// dimmer channel 1 low
SEND_LEVEL dv_Light,1,75
}
CASE 4:
{
// Dimmer channel 1 high
SEND_LEVEL dv_Light,1,10
}
CASE 5:
{
// Dimmer channel 2 on
SEND_LEVEL dv_Light,2,100
}
CASE 6:
{
// Dimmer channel 2 OFF
SEND_LEVEL dv_Light,2,1
}
CASE 7:
{
// Dimmer channel 2 low
SEND_LEVEL dv_Light,2,10
}
CASE 8:
{
// Dimmer channel 2 high
SEND_LEVEL dv_Light,2,50
}
CASE 9:
{
// Dimmer channel 3 on
SEND_LEVEL dv_Light,3,100
}
CASE 10:
{
// Dimmer channel 3 OFF
SEND_LEVEL dv_Light,3,1
}
CASE 11:
{
// Dimmer channel 3 low
SEND_LEVEL dv_Light,3,10
}
CASE 12:
{
// Dimmer channel 3 high
SEND_LEVEL dv_Light,3,50
}
CASE 13:
{
// Dimmer channel 4 on
SEND_LEVEL dv_Light,4,100
}
CASE 14:
{
// Dimmer channel 4 OFF
SEND_LEVEL dv_Light,4,1
}
CASE 15:
{
// Dimmer channel 4 low
SEND_LEVEL dv_Light,4,10
}
CASE 16:
{
// Dimmer channel 4 high
SEND_LEVEL dv_Light,4,50
}
CASE 17:
{
// all Dimmer channel ON
SEND_LEVEL dv_Light,1,100
send_level dv_Light,2,100
send_level dv_Light,3,100
send_level dv_Light,4,100
}
CASE 18:
{
// All Dimmer channels OFF
SEND_LEVEL dv_Light,1,1
send_level dv_Light,2,1
send_level dv_Light,3,1
send_level dv_Light,4,1
}
}
}
}
0