Plasma to switch from Video to RGB
David_w
Junior Member
I have made an RGB and Video butoon for the Plasma and am trying to get it to switch when ever I hit the selected button. Below is the code I wrote but I keep getting error message anyone see what I am doing wrong.
Define_Function RGB_Select()
{
IF (!RGB_Input)
{
send_string dvPlasma,"'@G',13"
wait 20 send_string dvPlasma,"'%A1000',13"
SEND_STRING 0, "'%A1000',13"
On [RGB_Input]
Off[Video_Input]
}
}
Define_Function Video_Select()
{
IF (!Video_Input)
{
send_string dvPlasma,"'@G',13"
wait 20 send_string dvPlasma,"'%A1012',13"
SEND_STRING 0, "'%A1012',13"
Off [RGB_Input]
On[Video_Input]
}
}
Under Event
// Plasma RGB
BUTTON_EVENT[dvTP,302]
{
PUSH:
{
SEND_STRING dvPlasma,"'@G',13"
wait 10 send_string dvPlasma,"'A%1000',13"
send_string 0, ",'%A1000',13" /////// ERROR HAPPENS AT or Above.
}
}
BUTTON_EVENT[dvTP,303]
{
PUSH:
{
SEND_STRING dvPlasma,"'@G',13"
wait 10 send_string dvPlasma,"'A%1012',13"
send_string 0, ",'%A1012',13"
}
}
Define_Function RGB_Select()
{
IF (!RGB_Input)
{
send_string dvPlasma,"'@G',13"
wait 20 send_string dvPlasma,"'%A1000',13"
SEND_STRING 0, "'%A1000',13"
On [RGB_Input]
Off[Video_Input]
}
}
Define_Function Video_Select()
{
IF (!Video_Input)
{
send_string dvPlasma,"'@G',13"
wait 20 send_string dvPlasma,"'%A1012',13"
SEND_STRING 0, "'%A1012',13"
Off [RGB_Input]
On[Video_Input]
}
}
Under Event
// Plasma RGB
BUTTON_EVENT[dvTP,302]
{
PUSH:
{
SEND_STRING dvPlasma,"'@G',13"
wait 10 send_string dvPlasma,"'A%1000',13"
send_string 0, ",'%A1000',13" /////// ERROR HAPPENS AT or Above.
}
}
BUTTON_EVENT[dvTP,303]
{
PUSH:
{
SEND_STRING dvPlasma,"'@G',13"
wait 10 send_string dvPlasma,"'A%1012',13"
send_string 0, ",'%A1012',13"
}
}
Comments
-
Good ol' Fujitsu

The line immediately above your comment starts with A% instead of %A.
Also, the line of your comment has an extra comma in there -> ",'%A1000',13" -
Thank you
Thank you so much.... I been looking at the code for about an hour now. At least someone knows what they are doing. Thanks again. -
you have two functions to handle the switching but you don't use them?
Categories
- All Categories
- 2.5K AMX General Discussion
- 922 AMX Technical Discussion
- 514 AMX Hardware
- 502 AMX Control Products
- 3 AMX Video Distribution Products
- 9 AMX Networked AV (SVSI) Products
- AMX Workspace & Collaboration Products
- 3.4K AMX Software
- 151 AMX Resource Management Suite Software
- 386 AMX Design Tools
- 2.4K NetLinx Studio
- 135 Duet/Cafe Duet
- 248 NetLinx Modules & Duet Modules
- 57 AMX RPM Forum
- 228 MODPEDIA - The Public Repository of Modules for Everyone
- 943 AMX Specialty Forums
- 2.6K AMXForums Archive
- 2.6K AMXForums Archive Threads
- 1.5K AMX Hardware
- 432 AMX Applications and Solutions
- 249 Residential Forum
- 182 Tips and Tricks
- 146 AMX Website/Forums