Installation guide
Programming AMX Controllers for a Kaleidescape System
Page 32
The particular zone that the touch panel controls changes at runtime. When a touch
panel connects to a virtual device, send the REFRESH command to instruct the
module to resend page flips and text information.
button_event[KTouchPanels,500] //select no player
button_event[KTouchPanels,501] //select KPLAYER1
button_event[KTouchPanels,502] //select KPLAYER2
button_event[KTouchPanels,503] //select KPLAYER3
{
push:
{
stack_var integer touchpanelRef
stack_var integer interfaceRef
//determine the TP that generated this event
touchpanelRef = get_last(KTouchPanels)
//determine the player Ref that is requested
interfaceRef = button.input.channel – 500
//set the new player reference
controlledKplayer[touchpanelRef] = interfaceRef
//resend strings to the touch panel
if (interfaceRef != 0)
{
send_command Kplayer[interfaceRef],
'REFRESH'
}
}
}
This button event is only one example. These commands can be incorporated into
any routine used to perform source selection.
Controlling a movie zone with both SATP and OSD control
Using both the standalone touch panel (SATP) and the onscreen display (OSD)
interface to control a movie zone (like the single zone output of an M500 Player) the
user can select music from a touch panel without turning on the video display. The
best approach for this scenario is to imagine that the single zone is actually two
different devices: one is an OSD-controlled movie zone which can play movies or
music, and the other is an SATP-controlled music-only zone. Both SATP and OSD
templates must be loaded onto the touch panel. These two interfaces must be
treated as if the interfaces were two separate components, each with a virtual
device that switches back and forth in the program as needed.