|
AMX Programming Help
OK, So I've programmed AMX Axcess stuff in the past, but this Netlinx language is new to me. I've got 90% of it figured out, but I'm having trouble controlling my Extron Matrix Switcher. I have the original Axcess code which is working fine, but no matter what I do, I cant get it to work in netlinx. The serial TX light is lighting up when I send the signal to the switcher, and the RX light is lighting up right after that. However, I can't figure out how to see what the switcher is saying back to me, so I have no idea what its telling me.
Here's the Axcess Code that works.
---------------------------
SWITCHER=3
DEFINE_CALL 'SWITCHAUDIO' (I,O)
{
SEND_STRING SWITCHER,"ITOA(I)'*'ITOA(O)'$'"
}
DEFINE_CALL 'SWITCHVIDEO' (I,O)
{
SEND_STRING SWITCHER,"ITOA(I)'*'ITOA(O)'%'"
}
PUSH [TP,17]
{
CALL 'SWITCHAUDIO'(4,2)
CALL 'SWITCHVIDEO'(4,2)
}
-------------------------------
Anybody out there have suggestions?
Jeff
|