AVForums.com is the UK's biggest & best home consumer electronics discussion resource New to AVForums.com? Start by reading our introduction here.


Go Back   AVForums.com > Home Cinema Construction and Configuration > Custom Installers and Installations

Reply
 
LinkBack Thread Tools Display Modes
Old 25-09-2006, 7:17 PM   #1 (permalink)
USCG_HQ
Guest
Posts: n/a
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
 
Reply With Quote
Old 26-09-2006, 3:08 PM   #2 (permalink)
Member
Join Date: Jul 2004
Location: Livingston, Scotland
Posts: 78
iTrader: (0)
Thanks: Gave 0, Got 15
Re: AMX Programming Help

Select Enable Netlinx Device Notification from the Diagnostics menu.

This will show send and receive data in the status window at the bottom of the screen.
Gerard Fernand is offline  
Reply With Quote
Old 27-09-2006, 7:24 PM   #3 (permalink)
Member
 
sijones's Avatar
Join Date: Nov 2001
Location: Reading
Posts: 429
iTrader: (15)
Thanks: Gave 2, Got 19
Re: AMX Programming Help

Hi Jeff,

Your SEND_STRING statements need some additional commas to separate each character that make up the string you are sending.

e.g. Instead of

SEND_STRING SWITCHER,"ITOA(I)'*'ITOA(O)'$'"

you need to use

SEND_STRING SWITCHER,"ITOA(I),'*',ITOA(O),'$'"

Also your SWITCHER declaration should be a device declaration using the Device:Port:System specification.

Regards,

Steve
__________________
Steve Jones

Last edited by sijones; 27-09-2006 at 7:27 PM.
sijones is offline  
Reply With Quote

Bookmarks

Tags
amx, programming


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Crestron and AMX Programming JJPhillipson Home Automation, Lighting, Security, Heating and Cooling 11 08-01-2007 2:34 PM
AMX or CRESTRON? dreek Home Cinema Magazines, Industry and Jobs 5 07-10-2006 11:55 PM
AMX programming position in London Danans Home Cinema Magazines, Industry and Jobs 0 25-07-2006 8:34 AM
AMX Programming help Rab1967 Custom Installers and Installations 5 22-03-2006 10:53 AM
Arcam & AMX bodi Arcam Owners' Forum 3 16-08-2004 3:59 PM


All times are GMT. The time now is 8:27 PM.

AV ForumsOptimised for Firefox.
RSS Feed
AVForums.com is owned and operated by M2N Limited.
Copyright © 2000-2008 M2N E. & O. E.
Global Gold
Web Hosting