extron switcher mps 112 problem
ajay thomas
Posts: 42
in AMX Hardware
I m not able to control the extron switcher thru the amx touch panel.
The rs 232 is working because thru notifications i can send and recieve the messages
i have defined the device
dvExtron =5001:2:0
dvTpExtronMVP7500 =10001:2:1
and my extron code is
PROGRAM_NAME='IncExtron'
DEFINE_VARIABLE
INTEGER Index
char Sbuff[40]
INTEGER nExtronbutton[] =
{
1,2,3,4, // VGA
5,6,7,8, // S- video
9,10,11,12 //video
}
DEFINE_START
create_buffer dvExtron,Sbuff
DEFINE_EVENT
DATA_EVENT[dvExtron]
{
online:
{
// Set Baud for Projector
send_command dvExtron,"'SET BAUD 9600,N,8,1'"
}
}
BUTTON_EVENT[dvTpExtronMVP7500,nExtronbutton]
{
push:
{
Index = GET_LAST(nExtronbutton)
SWITCH(Index)
{
CASE 1:
{
// VGA
send_string dvExtron,"'1!'"
break
}
CASE 2:
{
// VGA
send_string dvExtron,"'2!'"
break
}
CASE 3:
{
// VGA
send_string dvExtron,"'3!'"
break
}
CASE 4:
{
// VGA
send_string dvExtron,"'4!'"
break
}
CASE 5:
{
// S-video
send_string dvExtron,"'5!'"
break
}
CASE 6:
{
// S-video
send_string dvExtron,"'6!'"
break
}
CASE 7:
{
// S-video
send_string dvExtron,"'7!'"
break
}
CASE 8:
{
// S-video
send_string dvExtron,"'8!'"
break
}
CASE 9:
{
// video
send_string dvExtron,"'9!'"
break
}
CASE 10:
{
// video
send_string dvExtron,"'10!'"
break
}
CASE 11:
{
// video
send_string dvExtron,"'11!'"
break
}
CASE 12:
{
// video
send_string dvExtron,"'12!'"
break
}
}
}
}
i think the code i m sending to the extron switcher is not recognized by it
can anyone help me in this ,this is my first program.
The rs 232 is working because thru notifications i can send and recieve the messages
i have defined the device
dvExtron =5001:2:0
dvTpExtronMVP7500 =10001:2:1
and my extron code is
PROGRAM_NAME='IncExtron'
DEFINE_VARIABLE
INTEGER Index
char Sbuff[40]
INTEGER nExtronbutton[] =
{
1,2,3,4, // VGA
5,6,7,8, // S- video
9,10,11,12 //video
}
DEFINE_START
create_buffer dvExtron,Sbuff
DEFINE_EVENT
DATA_EVENT[dvExtron]
{
online:
{
// Set Baud for Projector
send_command dvExtron,"'SET BAUD 9600,N,8,1'"
}
}
BUTTON_EVENT[dvTpExtronMVP7500,nExtronbutton]
{
push:
{
Index = GET_LAST(nExtronbutton)
SWITCH(Index)
{
CASE 1:
{
// VGA
send_string dvExtron,"'1!'"
break
}
CASE 2:
{
// VGA
send_string dvExtron,"'2!'"
break
}
CASE 3:
{
// VGA
send_string dvExtron,"'3!'"
break
}
CASE 4:
{
// VGA
send_string dvExtron,"'4!'"
break
}
CASE 5:
{
// S-video
send_string dvExtron,"'5!'"
break
}
CASE 6:
{
// S-video
send_string dvExtron,"'6!'"
break
}
CASE 7:
{
// S-video
send_string dvExtron,"'7!'"
break
}
CASE 8:
{
// S-video
send_string dvExtron,"'8!'"
break
}
CASE 9:
{
// video
send_string dvExtron,"'9!'"
break
}
CASE 10:
{
// video
send_string dvExtron,"'10!'"
break
}
CASE 11:
{
// video
send_string dvExtron,"'11!'"
break
}
CASE 12:
{
// video
send_string dvExtron,"'12!'"
break
}
}
}
}
i think the code i m sending to the extron switcher is not recognized by it
can anyone help me in this ,this is my first program.
0
Comments
example
thanks to all for your help
Does this problem exist for SEND_COMMANDs to any device in its ONLINE: handler or is it strictly an RS-232 port problem?