
Code Definitions to be Included in User Program
350-11219-01 v1.0 Linx Matrix Switcher Programmer’s Guide for AMX Controllers 8
These lines of code needs to be included in the define_device section of the user's program:
RGB_LINX = 5001:1:0; //the serial port your linx is connected to
RGB_LINX_MODULE = 33001:1:0; //linx module
One of these line of code needs to be included after the define_variable section of the user's
program:
//use this one for RS-232
define_module 'RGB Linx RS-232' RGB_LINX_RS232( RGB_LINX_MODULE, RGB_LINX );
//use this one for ethernet
define_module 'RGB Linx Ethernet' RGB_LINX_ETHERNET( RGB_LINX_MODULE );
This code needs to be included in define_constant section of the user's program:
volatile integer
RGB_LINX_INPUT_FORCE_HOT_PLUG = 0,
RGB_LINX_INPUT_HDCP_ON = 100,
RGB_LINX_INPUT_HDCP_OFF = 200,
RGB_LINX_INPUT_RESYNC_AUDIO = 300,
RGB_LINX_INPUT_SIGNAL_TYPE_DVI = 400,
RGB_LINX_INPUT_SIGNAL_TYPE_RGB = 500,
RGB_LINX_INPUT_SIGNAL_TYPE_COMPONENT = 600,
RGB_LINX_OUTPUT_FREEZE_ON = 1000,
RGB_LINX_OUTPUT_FREEZE_OFF = 1100,
RGB_LINX_PRESET_RECALL = 2000,
RGB_LINX_MISC_SYSTEM_RESET = 3000,
RGB_LINX_ETHERNET_CONNECT = 3100,
RGB_LINX_ROUTE = 0,
RGB_LINX_OUTPUTS_MAX = 32;
This chuck of code needs to be included in define_event section of the user's program:
data_event[ RGB_LINX_MODULE ]
{
online:
{
//module won't work if we don't increase AMX's default number of channels
//and levels
set_virtual_channel_count( RGB_LINX_MODULE, RGB_LINX_ETHERNET_CONNECT );
set_virtual_level_count( RGB_LINX_MODULE, RGB_LINX_OUTPUTS_MAX );
//only needed for the ethernet module; change the IP address and password
//to match your system
send_command data.device, "'IP_ADDRESS=192.168.1.200'";
//send the IP address or DNS name
send_command data.device, "'PASSWORD=RGB'";
//send the password. default is "RGB"
//only needed for the ethernet module; this channel establishes the
//connection
//this channel must be turned on before ethernet communications will work
//if your Linx is always powered on, leave this channel on
//if your Linx is connected to a power sequencer, you'll need to connect
4. Code Definitions to be Included in User Program
Commenti su questo manuale