Extron VIdeo matrix
I am trying to program Extrom video matrix, and i have a problem with command to do that.
All I need is to pust two buttons on TP , and to put that to command.
Example:
push tp,1
push tp,2
send_string 'input 1 on output2'
All I need is to pust two buttons on TP , and to put that to command.
Example:
push tp,1
push tp,2
send_string 'input 1 on output2'
0
Comments
PUSH[dvPanel,1] { SEND_STRING dvExtron,'1*2!' // route In1 to Out2 both Video and Audio }'!' is video adn audio'%' is video only
'$' is audio only
Baud rate is 9800,N,8,1
To disconnect a route AFAIK it's
PUSH[dvPanel,2] { SEND_STRING dvExtron,'0*2!' // disconnect route to Out2, both video and audio }I mean , when I push button 3 and button 1 to create command '2*3!'
DEFINE_VARIABLE INTEGER nSource INTEGER nDest DEFINE_CALL 'SwitchExtron'(INTEGER In, INTEGER Out) { SEND_STRING dvExtron,"ITOA(In),'*',ITOA(Out),'!'" } DEFINE_PROGRAM PUSH[dvPanel,3] { nSource = 2 } PUSH[dvPanel,1] { nDest = 3 } IF((nIn>0) AND (nOut>0)) { CALL 'SwitchExtron'(nSource,nDest) nSource = 0 nDest = 0 }OK, this some kind of rudimental..... Depending on your experience and AMX platform there are a lot of solutions possible....
PUSH [TP,1] (* these are sources 1-8) PUSH [TP,2] PUSH [TP,3] PUSH [TP,4] PUSH [TP,5] PUSH [TP,6] PUSH [TP,7] PUSH [TP,8] { CurrSource = PUSH_CHANNEL } [TP,1] = (CurrSource = 1) (* Let's light up the active source button *) [TP,2] = (CurrSource = 2) [TP,3] = (CurrSource = 3) [TP,4] = (CurrSource = 4) [TP,5] = (CurrSource = 5) [TP,6] = (CurrSource = 6) [TP,7] = (CurrSource = 7) [TP,8] = (CurrSource = 8) PUSH [TP,11] (* once you select a source, then you can select where you want it to go *) PUSH [TP,12] (* these buttons are for destinations 1-8 *) PUSH [TP,13] PUSH [TP,14] PUSH [TP,15] PUSH [TP,16] PUSH [TP,17] PUSH [TP,18] { CurrDest = PUSH_CHANNEL - 10 SEND_STRING Extron,"ITOA(CurrSource),'*',ITOA(CurrDest),'!'" } (* You get to figure out how you want to do code for the destination buttons. :) *)- Chip