using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Linq;
using Crestron;
using Crestron.Logos.SplusLibrary;
using Crestron.Logos.SplusObjects;
using Crestron.SimplSharp;

namespace UserModule_HDMI_MATRIX_8X8_CN_A
{
    public class UserModuleClass_HDMI_MATRIX_8X8_CN_A : SplusObject
    {
        static CCriticalSection g_criticalSection = new CCriticalSection();
        
        
        
        
        
        
        
        Crestron.Logos.SplusObjects.DigitalInput POWER_ON;
        Crestron.Logos.SplusObjects.DigitalInput POWER_OFF;
        Crestron.Logos.SplusObjects.DigitalInput SYSTEM_MUTE_ON;
        Crestron.Logos.SplusObjects.DigitalInput SYSTEM_MUTE_OFF;
        Crestron.Logos.SplusObjects.DigitalInput REBOOT;
        Crestron.Logos.SplusObjects.DigitalInput ALL_IN_LOCK_ON;
        Crestron.Logos.SplusObjects.DigitalInput ALL_IN_LOCK_OFF;
        Crestron.Logos.SplusObjects.DigitalInput ALL_INPUT_PHPOW_ON;
        Crestron.Logos.SplusObjects.DigitalInput ALL_INPUT_PHPOW_OFF;
        Crestron.Logos.SplusObjects.DigitalInput ALL_INPUT_MUTE_ON;
        Crestron.Logos.SplusObjects.DigitalInput ALL_INPUT_MUTE_OFF;
        Crestron.Logos.SplusObjects.DigitalInput ALL_INPUT_GAIN_UP;
        Crestron.Logos.SplusObjects.DigitalInput ALL_INPUT_GAIN_DOWN;
        Crestron.Logos.SplusObjects.DigitalInput ALL_INPUT_INVERT_ON;
        Crestron.Logos.SplusObjects.DigitalInput ALL_INPUT_INVERT_OFF;
        Crestron.Logos.SplusObjects.DigitalInput ALL_OUTPUT_LOCK_ON;
        Crestron.Logos.SplusObjects.DigitalInput ALL_OUTPUT_LOCK_OFF;
        Crestron.Logos.SplusObjects.DigitalInput ALL_OUTPUT_GAIN_UP;
        Crestron.Logos.SplusObjects.DigitalInput ALL_OUTPUT_GAIN_DOWN;
        Crestron.Logos.SplusObjects.DigitalInput ALL_OUTPUT_INVERT_ON;
        Crestron.Logos.SplusObjects.DigitalInput ALL_OUTPUT_INVERT_OFF;
        Crestron.Logos.SplusObjects.DigitalInput ALL_OUTPUT_MUTE_ON;
        Crestron.Logos.SplusObjects.DigitalInput ALL_OUTPUT_MUTE_OFF;
        Crestron.Logos.SplusObjects.DigitalInput ALL_AM_INPUT_MUTE_ON;
        Crestron.Logos.SplusObjects.DigitalInput ALL_AM_INPUT_MUTE_OFF;
        Crestron.Logos.SplusObjects.DigitalInput ALL_AM_INPUT_GAIN_UP;
        Crestron.Logos.SplusObjects.DigitalInput ALL_AM_INPUT_GAIN_DOWN;
        Crestron.Logos.SplusObjects.DigitalInput ALL_AM_INPUT_AUTO_ON;
        Crestron.Logos.SplusObjects.DigitalInput ALL_AM_INPUT_AUTO_OFF;
        InOutArray<Crestron.Logos.SplusObjects.DigitalInput> INPUT_LOCK_ON;
        InOutArray<Crestron.Logos.SplusObjects.DigitalInput> INPUT_LOCK_OFF;
        InOutArray<Crestron.Logos.SplusObjects.DigitalInput> INPUT_PHPOW_ON;
        InOutArray<Crestron.Logos.SplusObjects.DigitalInput> INPUT_PHPOW_OFF;
        InOutArray<Crestron.Logos.SplusObjects.DigitalInput> INPUT_INVERT_ON;
        InOutArray<Crestron.Logos.SplusObjects.DigitalInput> INPUT_INVERT_OFF;
        InOutArray<Crestron.Logos.SplusObjects.DigitalInput> INPUT_MUTE_ON;
        InOutArray<Crestron.Logos.SplusObjects.DigitalInput> INPUT_MUTE_OFF;
        InOutArray<Crestron.Logos.SplusObjects.DigitalInput> OUTPUT_LOCK_ON;
        InOutArray<Crestron.Logos.SplusObjects.DigitalInput> OUTPUT_LOCK_OFF;
        InOutArray<Crestron.Logos.SplusObjects.DigitalInput> OUTPUT_INVERT_ON;
        InOutArray<Crestron.Logos.SplusObjects.DigitalInput> OUTPUT_INVERT_OFF;
        InOutArray<Crestron.Logos.SplusObjects.DigitalInput> OUTPUT_MUTE_ON;
        InOutArray<Crestron.Logos.SplusObjects.DigitalInput> OUTPUT_MUTE_OFF;
        InOutArray<Crestron.Logos.SplusObjects.DigitalInput> AM_INPUT_MUTE_ON;
        InOutArray<Crestron.Logos.SplusObjects.DigitalInput> AM_INPUT_MUTE_OFF;
        InOutArray<Crestron.Logos.SplusObjects.DigitalInput> AM_INPUT_AUTO_ON;
        InOutArray<Crestron.Logos.SplusObjects.DigitalInput> AM_INPUT_AUTO_OFF;
        InOutArray<Crestron.Logos.SplusObjects.DigitalInput> INPUT_GAIN_UP;
        InOutArray<Crestron.Logos.SplusObjects.DigitalInput> INPUT_GAIN_DOWN;
        InOutArray<Crestron.Logos.SplusObjects.DigitalInput> OUTPUT_GAIN_UP;
        InOutArray<Crestron.Logos.SplusObjects.DigitalInput> OUTPUT_GAIN_DOWN;
        InOutArray<Crestron.Logos.SplusObjects.DigitalInput> AM_INPUT_GAIN_UP;
        InOutArray<Crestron.Logos.SplusObjects.DigitalInput> AM_INPUT_GAIN_DOWN;
        Crestron.Logos.SplusObjects.AnalogInput PRESET_SAVE;
        Crestron.Logos.SplusObjects.AnalogInput PRESET_RECALL;
        Crestron.Logos.SplusObjects.AnalogInput PRESET_CLEAR;
        Crestron.Logos.SplusObjects.AnalogInput ALL_INPUT_LEVEL;
        Crestron.Logos.SplusObjects.AnalogInput ALL_INPUT_GAIN;
        Crestron.Logos.SplusObjects.AnalogInput ALL_OUTPUT_LEVEL;
        Crestron.Logos.SplusObjects.AnalogInput ALL_OUTPUT_GAIN;
        Crestron.Logos.SplusObjects.AnalogInput ALL_AM_INPUT_GAIN;
        Crestron.Logos.SplusObjects.AnalogInput ALL_AM_INPUT_PRIORITY;
        Crestron.Logos.SplusObjects.AnalogInput ALL_OUTPUT_FROM_INPUT;
        Crestron.Logos.SplusObjects.AnalogInput ALL_OUTPUT_REMOVE_INPUT;
        Crestron.Logos.SplusObjects.BufferInput FROM_DEVICE;
        InOutArray<Crestron.Logos.SplusObjects.AnalogInput> INPUT_LEVEL;
        InOutArray<Crestron.Logos.SplusObjects.AnalogInput> INPUT_GAIN;
        InOutArray<Crestron.Logos.SplusObjects.AnalogInput> OUTPUT_LEVEL;
        InOutArray<Crestron.Logos.SplusObjects.AnalogInput> OUTPUT_GAIN;
        InOutArray<Crestron.Logos.SplusObjects.AnalogInput> AM_INPUT_GAIN;
        InOutArray<Crestron.Logos.SplusObjects.AnalogInput> AM_INPUT_PRIORITY;
        InOutArray<Crestron.Logos.SplusObjects.AnalogInput> OUTPUT_FROM_INPUT;
        InOutArray<Crestron.Logos.SplusObjects.AnalogInput> OUTPUT_REMOVE_INPUT;
        InOutArray<Crestron.Logos.SplusObjects.StringInput> PRESET_NAME;
        Crestron.Logos.SplusObjects.StringOutput TO_DEVICE;
        Crestron.Logos.SplusObjects.DigitalOutput POWER_ON_FB;
        Crestron.Logos.SplusObjects.DigitalOutput POWER_OFF_FB;
        Crestron.Logos.SplusObjects.DigitalOutput SYSTEM_MUTE_ON_FB;
        Crestron.Logos.SplusObjects.DigitalOutput SYSTEM_MUTE_OFF_FB;
        InOutArray<Crestron.Logos.SplusObjects.DigitalOutput> INPUT_LOCK_ON_FB;
        InOutArray<Crestron.Logos.SplusObjects.DigitalOutput> INPUT_LOCK_OFF_FB;
        InOutArray<Crestron.Logos.SplusObjects.DigitalOutput> INPUT_PHPOW_ON_FB;
        InOutArray<Crestron.Logos.SplusObjects.DigitalOutput> INPUT_PHPOW_OFF_FB;
        InOutArray<Crestron.Logos.SplusObjects.DigitalOutput> INPUT_INVERT_ON_FB;
        InOutArray<Crestron.Logos.SplusObjects.DigitalOutput> INPUT_INVERT_OFF_FB;
        InOutArray<Crestron.Logos.SplusObjects.DigitalOutput> INPUT_MUTE_ON_FB;
        InOutArray<Crestron.Logos.SplusObjects.DigitalOutput> INPUT_MUTE_OFF_FB;
        InOutArray<Crestron.Logos.SplusObjects.DigitalOutput> OUTPUT_LOCK_ON_FB;
        InOutArray<Crestron.Logos.SplusObjects.DigitalOutput> OUTPUT_LOCK_OFF_FB;
        InOutArray<Crestron.Logos.SplusObjects.DigitalOutput> OUTPUT_INVERT_ON_FB;
        InOutArray<Crestron.Logos.SplusObjects.DigitalOutput> OUTPUT_INVERT_OFF_FB;
        InOutArray<Crestron.Logos.SplusObjects.DigitalOutput> OUTPUT_MUTE_ON_FB;
        InOutArray<Crestron.Logos.SplusObjects.DigitalOutput> OUTPUT_MUTE_OFF_FB;
        InOutArray<Crestron.Logos.SplusObjects.DigitalOutput> AM_INPUT_MUTE_ON_FB;
        InOutArray<Crestron.Logos.SplusObjects.DigitalOutput> AM_INPUT_MUTE_OFF_FB;
        InOutArray<Crestron.Logos.SplusObjects.DigitalOutput> AM_INPUT_AUTO_ON_FB;
        InOutArray<Crestron.Logos.SplusObjects.DigitalOutput> AM_INPUT_AUTO_OFF_FB;
        InOutArray<Crestron.Logos.SplusObjects.DigitalOutput> OUTPUT1_FROM_INPUT_FB;
        InOutArray<Crestron.Logos.SplusObjects.DigitalOutput> OUTPUT2_FROM_INPUT_FB;
        InOutArray<Crestron.Logos.SplusObjects.DigitalOutput> OUTPUT3_FROM_INPUT_FB;
        InOutArray<Crestron.Logos.SplusObjects.DigitalOutput> OUTPUT4_FROM_INPUT_FB;
        InOutArray<Crestron.Logos.SplusObjects.DigitalOutput> OUTPUT5_FROM_INPUT_FB;
        InOutArray<Crestron.Logos.SplusObjects.DigitalOutput> OUTPUT6_FROM_INPUT_FB;
        InOutArray<Crestron.Logos.SplusObjects.DigitalOutput> OUTPUT7_FROM_INPUT_FB;
        InOutArray<Crestron.Logos.SplusObjects.DigitalOutput> OUTPUT8_FROM_INPUT_FB;
        InOutArray<Crestron.Logos.SplusObjects.AnalogOutput> INPUT_LEVEL_FB;
        InOutArray<Crestron.Logos.SplusObjects.AnalogOutput> INPUT_GAIN_FB;
        InOutArray<Crestron.Logos.SplusObjects.AnalogOutput> OUTPUT_LEVEL_FB;
        InOutArray<Crestron.Logos.SplusObjects.AnalogOutput> OUTPUT_GAIN_FB;
        InOutArray<Crestron.Logos.SplusObjects.AnalogOutput> AM_INPUT_GAIN_FB;
        InOutArray<Crestron.Logos.SplusObjects.AnalogOutput> AM_INPUT_PRIORITY_FB;
        UShortParameter DEBUGMODE;
        ShortParameter GAIN_UPPER_LIMIT;
        ShortParameter GAIN_LOWER_LIMIT;
        ShortParameter ALL_OUTPUT_FROM_INPUT_LEVEL;
        InOutArray<ShortParameter> OUTPUT_FROM_INPUT_LEVEL;
        StringParameter INPUT_GAIN_STEP;
        StringParameter OUTPUT_GAIN_STEP;
        StringParameter AM_INPUT_GAIN_STEP;
        short GGAIN = 0;
        private void SENDCMD (  SplusExecutionContext __context__, CrestronString CMD ) 
            { 
            
            __context__.SourceCodeLine = 199;
            if ( Functions.TestForTrue  ( ( Functions.BoolToInt (CMD != ""))  ) ) 
                { 
                __context__.SourceCodeLine = 200;
                if ( Functions.TestForTrue  ( ( DEBUGMODE  .Value)  ) ) 
                    {
                    __context__.SourceCodeLine = 200;
                    Print( "[SendCmd] cmd = {0}", CMD ) ; 
                    }
                
                __context__.SourceCodeLine = 201;
                MakeString ( TO_DEVICE , "{0}{1}", CMD , "\u000D\u000A" ) ; 
                __context__.SourceCodeLine = 202;
                Functions.Delay (  (int) ( 15 ) ) ; 
                } 
            
            else 
                { 
                __context__.SourceCodeLine = 204;
                if ( Functions.TestForTrue  ( ( DEBUGMODE  .Value)  ) ) 
                    {
                    __context__.SourceCodeLine = 204;
                    Print( "[SendCmd] cmd is null!!!\r\n") ; 
                    }
                
                } 
            
            
            }
            
        private CrestronString GETGAINSTRING (  SplusExecutionContext __context__, ushort GAIN ) 
            { 
            CrestronString GSGAIN;
            GSGAIN  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this );
            
            
            __context__.SourceCodeLine = 210;
            if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( GAIN > 32767 ))  ) ) 
                { 
                __context__.SourceCodeLine = 212;
                GGAIN = (short) ( (GAIN - 65536) ) ; 
                __context__.SourceCodeLine = 213;
                GSGAIN  .UpdateValue ( "-" + Functions.ItoA (  (int) ( Functions.Abs( GGAIN ) ) )  ) ; 
                } 
            
            else 
                { 
                __context__.SourceCodeLine = 216;
                GGAIN = (short) ( GAIN ) ; 
                __context__.SourceCodeLine = 217;
                GSGAIN  .UpdateValue ( Functions.ItoA (  (int) ( GGAIN ) )  ) ; 
                } 
            
            __context__.SourceCodeLine = 219;
            if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( (Functions.TestForTrue ( Functions.BoolToInt ( GGAIN >= GAIN_LOWER_LIMIT  .Value ) ) && Functions.TestForTrue ( Functions.BoolToInt ( GGAIN <= GAIN_UPPER_LIMIT  .Value ) )) ))  ) ) 
                { 
                __context__.SourceCodeLine = 221;
                return ( GSGAIN ) ; 
                } 
            
            else 
                { 
                __context__.SourceCodeLine = 224;
                return ( "" ) ; 
                } 
            
            
            return ""; // default return value (none specified in module)
            }
            
        private void SETOUTPUTFROMINPUT (  SplusExecutionContext __context__, ushort OUTPUT_ID , ushort INPUT_ID , ushort FLAG ) 
            { 
            ushort I = 0;
            
            
            __context__.SourceCodeLine = 230;
            switch ((int)OUTPUT_ID)
            
                { 
                case 1 : 
                
                    { 
                    __context__.SourceCodeLine = 234;
                    OUTPUT1_FROM_INPUT_FB [ INPUT_ID]  .Value = (ushort) ( FLAG ) ; 
                    __context__.SourceCodeLine = 235;
                    break ; 
                    } 
                
                goto case 2 ;
                case 2 : 
                
                    { 
                    __context__.SourceCodeLine = 239;
                    OUTPUT2_FROM_INPUT_FB [ INPUT_ID]  .Value = (ushort) ( FLAG ) ; 
                    __context__.SourceCodeLine = 241;
                    break ; 
                    } 
                
                goto case 3 ;
                case 3 : 
                
                    { 
                    __context__.SourceCodeLine = 246;
                    OUTPUT3_FROM_INPUT_FB [ INPUT_ID]  .Value = (ushort) ( FLAG ) ; 
                    __context__.SourceCodeLine = 247;
                    break ; 
                    } 
                
                goto case 4 ;
                case 4 : 
                
                    { 
                    __context__.SourceCodeLine = 251;
                    OUTPUT4_FROM_INPUT_FB [ INPUT_ID]  .Value = (ushort) ( FLAG ) ; 
                    __context__.SourceCodeLine = 253;
                    break ; 
                    } 
                
                goto case 5 ;
                case 5 : 
                
                    { 
                    __context__.SourceCodeLine = 257;
                    OUTPUT5_FROM_INPUT_FB [ INPUT_ID]  .Value = (ushort) ( FLAG ) ; 
                    __context__.SourceCodeLine = 266;
                    break ; 
                    } 
                
                goto case 6 ;
                case 6 : 
                
                    { 
                    __context__.SourceCodeLine = 270;
                    OUTPUT6_FROM_INPUT_FB [ INPUT_ID]  .Value = (ushort) ( FLAG ) ; 
                    __context__.SourceCodeLine = 271;
                    break ; 
                    } 
                
                goto case 7 ;
                case 7 : 
                
                    { 
                    __context__.SourceCodeLine = 275;
                    OUTPUT7_FROM_INPUT_FB [ INPUT_ID]  .Value = (ushort) ( FLAG ) ; 
                    __context__.SourceCodeLine = 277;
                    break ; 
                    } 
                
                goto case 8 ;
                case 8 : 
                
                    { 
                    __context__.SourceCodeLine = 281;
                    OUTPUT8_FROM_INPUT_FB [ INPUT_ID]  .Value = (ushort) ( FLAG ) ; 
                    __context__.SourceCodeLine = 282;
                    break ; 
                    } 
                
                goto case 0 ;
                case 0 : 
                
                    { 
                    __context__.SourceCodeLine = 286;
                    OUTPUT1_FROM_INPUT_FB [ INPUT_ID]  .Value = (ushort) ( FLAG ) ; 
                    __context__.SourceCodeLine = 287;
                    OUTPUT2_FROM_INPUT_FB [ INPUT_ID]  .Value = (ushort) ( FLAG ) ; 
                    __context__.SourceCodeLine = 288;
                    OUTPUT3_FROM_INPUT_FB [ INPUT_ID]  .Value = (ushort) ( FLAG ) ; 
                    __context__.SourceCodeLine = 289;
                    OUTPUT4_FROM_INPUT_FB [ INPUT_ID]  .Value = (ushort) ( FLAG ) ; 
                    __context__.SourceCodeLine = 290;
                    OUTPUT5_FROM_INPUT_FB [ INPUT_ID]  .Value = (ushort) ( FLAG ) ; 
                    __context__.SourceCodeLine = 291;
                    OUTPUT6_FROM_INPUT_FB [ INPUT_ID]  .Value = (ushort) ( FLAG ) ; 
                    __context__.SourceCodeLine = 292;
                    OUTPUT7_FROM_INPUT_FB [ INPUT_ID]  .Value = (ushort) ( FLAG ) ; 
                    __context__.SourceCodeLine = 293;
                    OUTPUT8_FROM_INPUT_FB [ INPUT_ID]  .Value = (ushort) ( FLAG ) ; 
                    __context__.SourceCodeLine = 294;
                    break ; 
                    } 
                
                goto default;
                default : 
                
                    { 
                    __context__.SourceCodeLine = 296;
                    break ; 
                    } 
                break;
                
                } 
                
            
            
            }
            
        private void ANALYSISDATA (  SplusExecutionContext __context__, CrestronString DATA ) 
            { 
            ushort I = 0;
            ushort ID = 0;
            ushort INPUT_ID = 0;
            ushort OUTPUT_ID = 0;
            ushort FLAG = 0;
            ushort AMINPUT_ID = 0;
            ushort INDEX = 0;
            
            short GAIN = 0;
            
            
            __context__.SourceCodeLine = 304;
            if ( Functions.TestForTrue  ( ( DEBUGMODE  .Value)  ) ) 
                {
                __context__.SourceCodeLine = 304;
                Print( " [AnalysisData] Receive Data  {0} \r\n", DATA ) ; 
                }
            
            __context__.SourceCodeLine = 305;
            if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( (Functions.TestForTrue ( Functions.BoolToInt ( Functions.Find( "power on" , DATA ) > 0 ) ) || Functions.TestForTrue ( Functions.BoolToInt ( Functions.Find( "power : on" , DATA ) > 0 ) )) ))  ) ) 
                { 
                __context__.SourceCodeLine = 307;
                POWER_ON_FB  .Value = (ushort) ( 1 ) ; 
                __context__.SourceCodeLine = 308;
                POWER_OFF_FB  .Value = (ushort) ( 0 ) ; 
                } 
            
            else 
                {
                __context__.SourceCodeLine = 309;
                if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( (Functions.TestForTrue ( Functions.BoolToInt ( Functions.Find( "power : off" , DATA ) > 0 ) ) || Functions.TestForTrue ( Functions.BoolToInt ( Functions.Find( "power off" , DATA ) > 0 ) )) ))  ) ) 
                    { 
                    __context__.SourceCodeLine = 311;
                    POWER_ON_FB  .Value = (ushort) ( 0 ) ; 
                    __context__.SourceCodeLine = 312;
                    POWER_OFF_FB  .Value = (ushort) ( 1 ) ; 
                    } 
                
                else 
                    {
                    __context__.SourceCodeLine = 314;
                    if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( "system mute:" , DATA ) > 0 ))  ) ) 
                        { 
                        __context__.SourceCodeLine = 316;
                        SYSTEM_MUTE_ON_FB  .Value = (ushort) ( Functions.BoolToInt ( Functions.Find( " on" , DATA ) > 0 ) ) ; 
                        __context__.SourceCodeLine = 317;
                        SYSTEM_MUTE_OFF_FB  .Value = (ushort) ( Functions.Not( SYSTEM_MUTE_ON_FB  .Value ) ) ; 
                        } 
                    
                    else 
                        {
                        __context__.SourceCodeLine = 318;
                        if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( (Functions.TestForTrue ( Functions.BoolToInt ( Functions.Find( "lock mode: " , DATA ) > 0 ) ) && Functions.TestForTrue ( Functions.BoolToInt ( Functions.Find( "set " , DATA ) <= 0 ) )) ))  ) ) 
                            { 
                            __context__.SourceCodeLine = 320;
                            FLAG = (ushort) ( Functions.BoolToInt ( Functions.Find( "on" , DATA ) > 0 ) ) ; 
                            __context__.SourceCodeLine = 321;
                            if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( "1/2" , DATA ) > 0 ))  ) ) 
                                { 
                                __context__.SourceCodeLine = 323;
                                ID = (ushort) ( 1 ) ; 
                                } 
                            
                            else 
                                {
                                __context__.SourceCodeLine = 324;
                                if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( "3/4" , DATA ) > 0 ))  ) ) 
                                    { 
                                    __context__.SourceCodeLine = 326;
                                    ID = (ushort) ( 2 ) ; 
                                    } 
                                
                                else 
                                    {
                                    __context__.SourceCodeLine = 327;
                                    if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( "5/6" , DATA ) > 0 ))  ) ) 
                                        { 
                                        __context__.SourceCodeLine = 329;
                                        ID = (ushort) ( 3 ) ; 
                                        } 
                                    
                                    else 
                                        {
                                        __context__.SourceCodeLine = 330;
                                        if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( "7/8" , DATA ) > 0 ))  ) ) 
                                            { 
                                            __context__.SourceCodeLine = 332;
                                            ID = (ushort) ( 4 ) ; 
                                            } 
                                        
                                        }
                                    
                                    }
                                
                                }
                            
                            __context__.SourceCodeLine = 334;
                            if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( "in" , DATA ) > 0 ))  ) ) 
                                { 
                                __context__.SourceCodeLine = 336;
                                if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( "all" , DATA ) > 0 ))  ) ) 
                                    { 
                                    __context__.SourceCodeLine = 339;
                                    ushort __FN_FORSTART_VAL__1 = (ushort) ( 1 ) ;
                                    ushort __FN_FOREND_VAL__1 = (ushort)4; 
                                    int __FN_FORSTEP_VAL__1 = (int)1; 
                                    for ( I  = __FN_FORSTART_VAL__1; (__FN_FORSTEP_VAL__1 > 0)  ? ( (I  >= __FN_FORSTART_VAL__1) && (I  <= __FN_FOREND_VAL__1) ) : ( (I  <= __FN_FORSTART_VAL__1) && (I  >= __FN_FOREND_VAL__1) ) ; I  += (ushort)__FN_FORSTEP_VAL__1) 
                                        { 
                                        __context__.SourceCodeLine = 341;
                                        INPUT_LOCK_ON_FB [ I]  .Value = (ushort) ( FLAG ) ; 
                                        __context__.SourceCodeLine = 342;
                                        INPUT_LOCK_OFF_FB [ I]  .Value = (ushort) ( Functions.Not( FLAG ) ) ; 
                                        __context__.SourceCodeLine = 339;
                                        } 
                                    
                                    } 
                                
                                else 
                                    { 
                                    __context__.SourceCodeLine = 347;
                                    INPUT_LOCK_ON_FB [ ID]  .Value = (ushort) ( FLAG ) ; 
                                    __context__.SourceCodeLine = 348;
                                    INPUT_LOCK_OFF_FB [ ID]  .Value = (ushort) ( Functions.Not( FLAG ) ) ; 
                                    } 
                                
                                } 
                            
                            else 
                                {
                                __context__.SourceCodeLine = 350;
                                if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( "out" , DATA ) > 0 ))  ) ) 
                                    { 
                                    __context__.SourceCodeLine = 352;
                                    if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( "all" , DATA ) > 0 ))  ) ) 
                                        { 
                                        __context__.SourceCodeLine = 354;
                                        ushort __FN_FORSTART_VAL__2 = (ushort) ( 1 ) ;
                                        ushort __FN_FOREND_VAL__2 = (ushort)4; 
                                        int __FN_FORSTEP_VAL__2 = (int)1; 
                                        for ( I  = __FN_FORSTART_VAL__2; (__FN_FORSTEP_VAL__2 > 0)  ? ( (I  >= __FN_FORSTART_VAL__2) && (I  <= __FN_FOREND_VAL__2) ) : ( (I  <= __FN_FORSTART_VAL__2) && (I  >= __FN_FOREND_VAL__2) ) ; I  += (ushort)__FN_FORSTEP_VAL__2) 
                                            { 
                                            __context__.SourceCodeLine = 356;
                                            OUTPUT_LOCK_ON_FB [ I]  .Value = (ushort) ( FLAG ) ; 
                                            __context__.SourceCodeLine = 357;
                                            OUTPUT_LOCK_OFF_FB [ I]  .Value = (ushort) ( Functions.Not( FLAG ) ) ; 
                                            __context__.SourceCodeLine = 354;
                                            } 
                                        
                                        } 
                                    
                                    else 
                                        { 
                                        __context__.SourceCodeLine = 362;
                                        OUTPUT_LOCK_ON_FB [ ID]  .Value = (ushort) ( FLAG ) ; 
                                        __context__.SourceCodeLine = 363;
                                        OUTPUT_LOCK_OFF_FB [ ID]  .Value = (ushort) ( Functions.Not( FLAG ) ) ; 
                                        } 
                                    
                                    } 
                                
                                }
                            
                            } 
                        
                        else 
                            {
                            __context__.SourceCodeLine = 369;
                            if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( (Functions.TestForTrue ( Functions.BoolToInt ( (Functions.TestForTrue ( Functions.BoolToInt ( Functions.Find( "level: " , DATA ) > 0 ) ) && Functions.TestForTrue ( Functions.BoolToInt ( Functions.Find( "in" , DATA ) > 0 ) )) ) ) && Functions.TestForTrue ( Functions.BoolToInt ( Functions.Find( "set " , DATA ) <= 0 ) )) ))  ) ) 
                                { 
                                __context__.SourceCodeLine = 372;
                                if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( "-35dbv" , DATA ) > 0 ))  ) ) 
                                    { 
                                    __context__.SourceCodeLine = 374;
                                    FLAG = (ushort) ( 1 ) ; 
                                    } 
                                
                                else 
                                    {
                                    __context__.SourceCodeLine = 375;
                                    if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( "-28dbv" , DATA ) > 0 ))  ) ) 
                                        { 
                                        __context__.SourceCodeLine = 377;
                                        FLAG = (ushort) ( 2 ) ; 
                                        } 
                                    
                                    else 
                                        {
                                        __context__.SourceCodeLine = 378;
                                        if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( "-10dbv" , DATA ) > 0 ))  ) ) 
                                            { 
                                            __context__.SourceCodeLine = 380;
                                            FLAG = (ushort) ( 3 ) ; 
                                            } 
                                        
                                        else 
                                            {
                                            __context__.SourceCodeLine = 381;
                                            if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( "0dbv" , DATA ) > 0 ))  ) ) 
                                                { 
                                                __context__.SourceCodeLine = 383;
                                                FLAG = (ushort) ( 4 ) ; 
                                                } 
                                            
                                            else 
                                                {
                                                __context__.SourceCodeLine = 384;
                                                if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( "0dbu" , DATA ) > 0 ))  ) ) 
                                                    { 
                                                    __context__.SourceCodeLine = 386;
                                                    FLAG = (ushort) ( 5 ) ; 
                                                    } 
                                                
                                                else 
                                                    {
                                                    __context__.SourceCodeLine = 387;
                                                    if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( (Functions.TestForTrue ( Functions.BoolToInt ( Functions.Find( "4dbu" , DATA ) > 0 ) ) && Functions.TestForTrue ( Functions.BoolToInt ( Functions.Find( "24dbu" , DATA ) <= 0 ) )) ))  ) ) 
                                                        { 
                                                        __context__.SourceCodeLine = 389;
                                                        FLAG = (ushort) ( 6 ) ; 
                                                        } 
                                                    
                                                    else 
                                                        {
                                                        __context__.SourceCodeLine = 390;
                                                        if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( "12dbu" , DATA ) > 0 ))  ) ) 
                                                            { 
                                                            __context__.SourceCodeLine = 392;
                                                            FLAG = (ushort) ( 7 ) ; 
                                                            } 
                                                        
                                                        else 
                                                            {
                                                            __context__.SourceCodeLine = 393;
                                                            if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( "18dbu" , DATA ) > 0 ))  ) ) 
                                                                { 
                                                                __context__.SourceCodeLine = 395;
                                                                FLAG = (ushort) ( 8 ) ; 
                                                                } 
                                                            
                                                            else 
                                                                {
                                                                __context__.SourceCodeLine = 396;
                                                                if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( "24dbu" , DATA ) > 0 ))  ) ) 
                                                                    { 
                                                                    __context__.SourceCodeLine = 398;
                                                                    FLAG = (ushort) ( 9 ) ; 
                                                                    } 
                                                                
                                                                }
                                                            
                                                            }
                                                        
                                                        }
                                                    
                                                    }
                                                
                                                }
                                            
                                            }
                                        
                                        }
                                    
                                    }
                                
                                __context__.SourceCodeLine = 400;
                                if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( "all " , DATA ) > 0 ))  ) ) 
                                    { 
                                    __context__.SourceCodeLine = 402;
                                    ushort __FN_FORSTART_VAL__3 = (ushort) ( 1 ) ;
                                    ushort __FN_FOREND_VAL__3 = (ushort)8; 
                                    int __FN_FORSTEP_VAL__3 = (int)1; 
                                    for ( I  = __FN_FORSTART_VAL__3; (__FN_FORSTEP_VAL__3 > 0)  ? ( (I  >= __FN_FORSTART_VAL__3) && (I  <= __FN_FOREND_VAL__3) ) : ( (I  <= __FN_FORSTART_VAL__3) && (I  >= __FN_FOREND_VAL__3) ) ; I  += (ushort)__FN_FORSTEP_VAL__3) 
                                        { 
                                        __context__.SourceCodeLine = 404;
                                        INPUT_LEVEL_FB [ I]  .Value = (ushort) ( FLAG ) ; 
                                        __context__.SourceCodeLine = 402;
                                        } 
                                    
                                    } 
                                
                                else 
                                    { 
                                    __context__.SourceCodeLine = 408;
                                    INPUT_LEVEL_FB [ Functions.Atoi( DATA )]  .Value = (ushort) ( FLAG ) ; 
                                    } 
                                
                                } 
                            
                            else 
                                {
                                __context__.SourceCodeLine = 411;
                                if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( (Functions.TestForTrue ( Functions.BoolToInt ( Functions.Find( "gain: " , DATA ) > 0 ) ) && Functions.TestForTrue ( Functions.BoolToInt ( Functions.Find( "set " , DATA ) <= 0 ) )) ))  ) ) 
                                    { 
                                    __context__.SourceCodeLine = 413;
                                    INDEX = (ushort) ( Functions.Find( "gain: " , DATA ) ) ; 
                                    __context__.SourceCodeLine = 414;
                                    GAIN = (short) ( Functions.Atoi( Functions.Right( DATA , (int)( (Functions.Length( DATA ) - INDEX) ) ) ) ) ; 
                                    __context__.SourceCodeLine = 415;
                                    if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( "-" , Functions.Right( DATA , (int)( (Functions.Length( DATA ) - INDEX) ) ) ) > 0 ))  ) ) 
                                        { 
                                        __context__.SourceCodeLine = 417;
                                        GAIN = (short) ( (0 - GAIN) ) ; 
                                        } 
                                    
                                    __context__.SourceCodeLine = 421;
                                    if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( (Functions.TestForTrue ( Functions.BoolToInt ( (Functions.TestForTrue ( Functions.BoolToInt ( Functions.Find( "in" , DATA ) > 0 ) ) && Functions.TestForTrue ( Functions.BoolToInt ( Functions.Find( "auto mixer" , DATA ) <= 0 ) )) ) ) && Functions.TestForTrue ( Functions.BoolToInt ( Functions.Find( "out" , DATA ) <= 0 ) )) ))  ) ) 
                                        { 
                                        __context__.SourceCodeLine = 424;
                                        if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( "all" , DATA ) <= 0 ))  ) ) 
                                            { 
                                            __context__.SourceCodeLine = 426;
                                            if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( "group a" , DATA ) > 0 ))  ) ) 
                                                { 
                                                __context__.SourceCodeLine = 428;
                                                INPUT_GAIN_FB [ 9]  .Value = (ushort) ( GAIN ) ; 
                                                } 
                                            
                                            else 
                                                {
                                                __context__.SourceCodeLine = 429;
                                                if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( "group b" , DATA ) > 0 ))  ) ) 
                                                    { 
                                                    __context__.SourceCodeLine = 431;
                                                    INPUT_GAIN_FB [ 10]  .Value = (ushort) ( GAIN ) ; 
                                                    } 
                                                
                                                else 
                                                    { 
                                                    __context__.SourceCodeLine = 434;
                                                    INPUT_GAIN_FB [ Functions.Atoi( DATA )]  .Value = (ushort) ( GAIN ) ; 
                                                    } 
                                                
                                                }
                                            
                                            } 
                                        
                                        else 
                                            { 
                                            __context__.SourceCodeLine = 438;
                                            ushort __FN_FORSTART_VAL__4 = (ushort) ( 1 ) ;
                                            ushort __FN_FOREND_VAL__4 = (ushort)10; 
                                            int __FN_FORSTEP_VAL__4 = (int)1; 
                                            for ( I  = __FN_FORSTART_VAL__4; (__FN_FORSTEP_VAL__4 > 0)  ? ( (I  >= __FN_FORSTART_VAL__4) && (I  <= __FN_FOREND_VAL__4) ) : ( (I  <= __FN_FORSTART_VAL__4) && (I  >= __FN_FOREND_VAL__4) ) ; I  += (ushort)__FN_FORSTEP_VAL__4) 
                                                { 
                                                __context__.SourceCodeLine = 440;
                                                INPUT_GAIN_FB [ I]  .Value = (ushort) ( GAIN ) ; 
                                                __context__.SourceCodeLine = 438;
                                                } 
                                            
                                            } 
                                        
                                        } 
                                    
                                    else 
                                        {
                                        __context__.SourceCodeLine = 445;
                                        if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( "out" , DATA ) > 0 ))  ) ) 
                                            { 
                                            __context__.SourceCodeLine = 450;
                                            if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( "all" , DATA ) <= 0 ))  ) ) 
                                                { 
                                                __context__.SourceCodeLine = 453;
                                                if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( "group a" , DATA ) > 0 ))  ) ) 
                                                    { 
                                                    __context__.SourceCodeLine = 455;
                                                    OUTPUT_GAIN_FB [ 9]  .Value = (ushort) ( GAIN ) ; 
                                                    } 
                                                
                                                else 
                                                    {
                                                    __context__.SourceCodeLine = 456;
                                                    if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( "group b" , DATA ) > 0 ))  ) ) 
                                                        { 
                                                        __context__.SourceCodeLine = 458;
                                                        OUTPUT_GAIN_FB [ 10]  .Value = (ushort) ( GAIN ) ; 
                                                        } 
                                                    
                                                    else 
                                                        { 
                                                        __context__.SourceCodeLine = 461;
                                                        OUTPUT_GAIN_FB [ Functions.Atoi( DATA )]  .Value = (ushort) ( GAIN ) ; 
                                                        } 
                                                    
                                                    }
                                                
                                                } 
                                            
                                            else 
                                                { 
                                                __context__.SourceCodeLine = 466;
                                                ushort __FN_FORSTART_VAL__5 = (ushort) ( 1 ) ;
                                                ushort __FN_FOREND_VAL__5 = (ushort)10; 
                                                int __FN_FORSTEP_VAL__5 = (int)1; 
                                                for ( I  = __FN_FORSTART_VAL__5; (__FN_FORSTEP_VAL__5 > 0)  ? ( (I  >= __FN_FORSTART_VAL__5) && (I  <= __FN_FOREND_VAL__5) ) : ( (I  <= __FN_FORSTART_VAL__5) && (I  >= __FN_FOREND_VAL__5) ) ; I  += (ushort)__FN_FORSTEP_VAL__5) 
                                                    { 
                                                    __context__.SourceCodeLine = 468;
                                                    OUTPUT_GAIN_FB [ I]  .Value = (ushort) ( GAIN ) ; 
                                                    __context__.SourceCodeLine = 466;
                                                    } 
                                                
                                                } 
                                            
                                            } 
                                        
                                        else 
                                            {
                                            __context__.SourceCodeLine = 473;
                                            if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( "auto mixer " , DATA ) > 0 ))  ) ) 
                                                { 
                                                __context__.SourceCodeLine = 477;
                                                if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( "all" , DATA ) > 0 ))  ) ) 
                                                    { 
                                                    __context__.SourceCodeLine = 479;
                                                    ushort __FN_FORSTART_VAL__6 = (ushort) ( 1 ) ;
                                                    ushort __FN_FOREND_VAL__6 = (ushort)9; 
                                                    int __FN_FORSTEP_VAL__6 = (int)1; 
                                                    for ( I  = __FN_FORSTART_VAL__6; (__FN_FORSTEP_VAL__6 > 0)  ? ( (I  >= __FN_FORSTART_VAL__6) && (I  <= __FN_FOREND_VAL__6) ) : ( (I  <= __FN_FORSTART_VAL__6) && (I  >= __FN_FOREND_VAL__6) ) ; I  += (ushort)__FN_FORSTEP_VAL__6) 
                                                        { 
                                                        __context__.SourceCodeLine = 481;
                                                        AM_INPUT_GAIN_FB [ I]  .Value = (ushort) ( GAIN ) ; 
                                                        __context__.SourceCodeLine = 479;
                                                        } 
                                                    
                                                    } 
                                                
                                                else 
                                                    {
                                                    __context__.SourceCodeLine = 485;
                                                    if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( " am " , DATA ) > 0 ))  ) ) 
                                                        { 
                                                        __context__.SourceCodeLine = 487;
                                                        AM_INPUT_GAIN_FB [ 9]  .Value = (ushort) ( GAIN ) ; 
                                                        } 
                                                    
                                                    else 
                                                        { 
                                                        __context__.SourceCodeLine = 491;
                                                        AM_INPUT_GAIN_FB [ Functions.Atoi( DATA )]  .Value = (ushort) ( GAIN ) ; 
                                                        } 
                                                    
                                                    }
                                                
                                                } 
                                            
                                            }
                                        
                                        }
                                    
                                    } 
                                
                                else 
                                    {
                                    __context__.SourceCodeLine = 495;
                                    if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( (Functions.TestForTrue ( Functions.BoolToInt ( Functions.Find( "phantom power: " , DATA ) > 0 ) ) && Functions.TestForTrue ( Functions.BoolToInt ( Functions.Find( "set " , DATA ) <= 0 ) )) ))  ) ) 
                                        { 
                                        __context__.SourceCodeLine = 497;
                                        FLAG = (ushort) ( Functions.BoolToInt ( Functions.Find( "on" , DATA ) > 0 ) ) ; 
                                        __context__.SourceCodeLine = 499;
                                        if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( "all " , DATA ) > 0 ))  ) ) 
                                            { 
                                            __context__.SourceCodeLine = 501;
                                            ushort __FN_FORSTART_VAL__7 = (ushort) ( 1 ) ;
                                            ushort __FN_FOREND_VAL__7 = (ushort)8; 
                                            int __FN_FORSTEP_VAL__7 = (int)1; 
                                            for ( I  = __FN_FORSTART_VAL__7; (__FN_FORSTEP_VAL__7 > 0)  ? ( (I  >= __FN_FORSTART_VAL__7) && (I  <= __FN_FOREND_VAL__7) ) : ( (I  <= __FN_FORSTART_VAL__7) && (I  >= __FN_FOREND_VAL__7) ) ; I  += (ushort)__FN_FORSTEP_VAL__7) 
                                                { 
                                                __context__.SourceCodeLine = 503;
                                                INPUT_PHPOW_ON_FB [ I]  .Value = (ushort) ( FLAG ) ; 
                                                __context__.SourceCodeLine = 504;
                                                INPUT_PHPOW_OFF_FB [ I]  .Value = (ushort) ( Functions.Not( FLAG ) ) ; 
                                                __context__.SourceCodeLine = 501;
                                                } 
                                            
                                            } 
                                        
                                        else 
                                            { 
                                            __context__.SourceCodeLine = 509;
                                            INPUT_PHPOW_ON_FB [ Functions.Atoi( DATA )]  .Value = (ushort) ( FLAG ) ; 
                                            __context__.SourceCodeLine = 510;
                                            INPUT_PHPOW_OFF_FB [ Functions.Atoi( DATA )]  .Value = (ushort) ( Functions.Not( FLAG ) ) ; 
                                            } 
                                        
                                        } 
                                    
                                    else 
                                        {
                                        __context__.SourceCodeLine = 513;
                                        if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( (Functions.TestForTrue ( Functions.BoolToInt ( Functions.Find( "invert:" , DATA ) > 0 ) ) && Functions.TestForTrue ( Functions.BoolToInt ( Functions.Find( "set " , DATA ) <= 0 ) )) ))  ) ) 
                                            { 
                                            __context__.SourceCodeLine = 515;
                                            FLAG = (ushort) ( Functions.BoolToInt ( Functions.Find( "on" , DATA ) > 0 ) ) ; 
                                            __context__.SourceCodeLine = 516;
                                            if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( (Functions.TestForTrue ( Functions.BoolToInt ( Functions.Find( "in" , DATA ) > 0 ) ) && Functions.TestForTrue ( Functions.BoolToInt ( Functions.Find( "out" , DATA ) <= 0 ) )) ))  ) ) 
                                                { 
                                                __context__.SourceCodeLine = 518;
                                                if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( "all " , DATA ) > 0 ))  ) ) 
                                                    { 
                                                    __context__.SourceCodeLine = 520;
                                                    ushort __FN_FORSTART_VAL__8 = (ushort) ( 1 ) ;
                                                    ushort __FN_FOREND_VAL__8 = (ushort)8; 
                                                    int __FN_FORSTEP_VAL__8 = (int)1; 
                                                    for ( I  = __FN_FORSTART_VAL__8; (__FN_FORSTEP_VAL__8 > 0)  ? ( (I  >= __FN_FORSTART_VAL__8) && (I  <= __FN_FOREND_VAL__8) ) : ( (I  <= __FN_FORSTART_VAL__8) && (I  >= __FN_FOREND_VAL__8) ) ; I  += (ushort)__FN_FORSTEP_VAL__8) 
                                                        { 
                                                        __context__.SourceCodeLine = 522;
                                                        INPUT_INVERT_ON_FB [ I]  .Value = (ushort) ( FLAG ) ; 
                                                        __context__.SourceCodeLine = 523;
                                                        INPUT_INVERT_OFF_FB [ I]  .Value = (ushort) ( Functions.Not( FLAG ) ) ; 
                                                        __context__.SourceCodeLine = 520;
                                                        } 
                                                    
                                                    } 
                                                
                                                else 
                                                    { 
                                                    __context__.SourceCodeLine = 528;
                                                    INPUT_INVERT_ON_FB [ Functions.Atoi( DATA )]  .Value = (ushort) ( FLAG ) ; 
                                                    __context__.SourceCodeLine = 529;
                                                    INPUT_INVERT_OFF_FB [ Functions.Atoi( DATA )]  .Value = (ushort) ( Functions.Not( FLAG ) ) ; 
                                                    } 
                                                
                                                } 
                                            
                                            else 
                                                {
                                                __context__.SourceCodeLine = 534;
                                                if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( "out" , DATA ) > 0 ))  ) ) 
                                                    { 
                                                    __context__.SourceCodeLine = 536;
                                                    if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( "all " , DATA ) > 0 ))  ) ) 
                                                        { 
                                                        __context__.SourceCodeLine = 538;
                                                        ushort __FN_FORSTART_VAL__9 = (ushort) ( 1 ) ;
                                                        ushort __FN_FOREND_VAL__9 = (ushort)8; 
                                                        int __FN_FORSTEP_VAL__9 = (int)1; 
                                                        for ( I  = __FN_FORSTART_VAL__9; (__FN_FORSTEP_VAL__9 > 0)  ? ( (I  >= __FN_FORSTART_VAL__9) && (I  <= __FN_FOREND_VAL__9) ) : ( (I  <= __FN_FORSTART_VAL__9) && (I  >= __FN_FOREND_VAL__9) ) ; I  += (ushort)__FN_FORSTEP_VAL__9) 
                                                            { 
                                                            __context__.SourceCodeLine = 540;
                                                            OUTPUT_INVERT_ON_FB [ I]  .Value = (ushort) ( FLAG ) ; 
                                                            __context__.SourceCodeLine = 541;
                                                            OUTPUT_INVERT_OFF_FB [ I]  .Value = (ushort) ( Functions.Not( FLAG ) ) ; 
                                                            __context__.SourceCodeLine = 538;
                                                            } 
                                                        
                                                        } 
                                                    
                                                    else 
                                                        { 
                                                        __context__.SourceCodeLine = 546;
                                                        OUTPUT_INVERT_ON_FB [ Functions.Atoi( DATA )]  .Value = (ushort) ( FLAG ) ; 
                                                        __context__.SourceCodeLine = 547;
                                                        OUTPUT_INVERT_OFF_FB [ Functions.Atoi( DATA )]  .Value = (ushort) ( Functions.Not( FLAG ) ) ; 
                                                        } 
                                                    
                                                    } 
                                                
                                                }
                                            
                                            } 
                                        
                                        else 
                                            {
                                            __context__.SourceCodeLine = 553;
                                            if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( (Functions.TestForTrue ( Functions.BoolToInt ( Functions.Find( "mute:" , DATA ) > 0 ) ) && Functions.TestForTrue ( Functions.BoolToInt ( Functions.Find( "set " , DATA ) <= 0 ) )) ))  ) ) 
                                                { 
                                                __context__.SourceCodeLine = 555;
                                                FLAG = (ushort) ( Functions.BoolToInt ( Functions.Find( "on" , DATA ) > 0 ) ) ; 
                                                __context__.SourceCodeLine = 556;
                                                if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( (Functions.TestForTrue ( Functions.BoolToInt ( Functions.Find( "in" , DATA ) > 0 ) ) && Functions.TestForTrue ( Functions.BoolToInt ( Functions.Find( "auto mixer" , DATA ) <= 0 ) )) ))  ) ) 
                                                    { 
                                                    __context__.SourceCodeLine = 558;
                                                    if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( "all " , DATA ) > 0 ))  ) ) 
                                                        { 
                                                        __context__.SourceCodeLine = 560;
                                                        ushort __FN_FORSTART_VAL__10 = (ushort) ( 1 ) ;
                                                        ushort __FN_FOREND_VAL__10 = (ushort)10; 
                                                        int __FN_FORSTEP_VAL__10 = (int)1; 
                                                        for ( I  = __FN_FORSTART_VAL__10; (__FN_FORSTEP_VAL__10 > 0)  ? ( (I  >= __FN_FORSTART_VAL__10) && (I  <= __FN_FOREND_VAL__10) ) : ( (I  <= __FN_FORSTART_VAL__10) && (I  >= __FN_FOREND_VAL__10) ) ; I  += (ushort)__FN_FORSTEP_VAL__10) 
                                                            { 
                                                            __context__.SourceCodeLine = 562;
                                                            INPUT_MUTE_ON_FB [ I]  .Value = (ushort) ( FLAG ) ; 
                                                            __context__.SourceCodeLine = 563;
                                                            INPUT_MUTE_OFF_FB [ I]  .Value = (ushort) ( Functions.Not( FLAG ) ) ; 
                                                            __context__.SourceCodeLine = 560;
                                                            } 
                                                        
                                                        } 
                                                    
                                                    else 
                                                        { 
                                                        __context__.SourceCodeLine = 567;
                                                        if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( "group a" , DATA ) > 0 ))  ) ) 
                                                            { 
                                                            __context__.SourceCodeLine = 569;
                                                            INPUT_MUTE_ON_FB [ 9]  .Value = (ushort) ( FLAG ) ; 
                                                            __context__.SourceCodeLine = 570;
                                                            INPUT_MUTE_OFF_FB [ 9]  .Value = (ushort) ( Functions.Not( FLAG ) ) ; 
                                                            } 
                                                        
                                                        else 
                                                            {
                                                            __context__.SourceCodeLine = 571;
                                                            if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( "group b" , DATA ) > 0 ))  ) ) 
                                                                { 
                                                                __context__.SourceCodeLine = 573;
                                                                INPUT_MUTE_ON_FB [ 10]  .Value = (ushort) ( FLAG ) ; 
                                                                __context__.SourceCodeLine = 574;
                                                                INPUT_MUTE_OFF_FB [ 10]  .Value = (ushort) ( Functions.Not( FLAG ) ) ; 
                                                                } 
                                                            
                                                            else 
                                                                { 
                                                                __context__.SourceCodeLine = 577;
                                                                INPUT_MUTE_ON_FB [ Functions.Atoi( DATA )]  .Value = (ushort) ( FLAG ) ; 
                                                                __context__.SourceCodeLine = 578;
                                                                INPUT_MUTE_OFF_FB [ Functions.Atoi( DATA )]  .Value = (ushort) ( Functions.Not( FLAG ) ) ; 
                                                                } 
                                                            
                                                            }
                                                        
                                                        } 
                                                    
                                                    } 
                                                
                                                else 
                                                    {
                                                    __context__.SourceCodeLine = 583;
                                                    if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( "out" , DATA ) > 0 ))  ) ) 
                                                        { 
                                                        __context__.SourceCodeLine = 585;
                                                        if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( "all " , DATA ) > 0 ))  ) ) 
                                                            { 
                                                            __context__.SourceCodeLine = 587;
                                                            ushort __FN_FORSTART_VAL__11 = (ushort) ( 1 ) ;
                                                            ushort __FN_FOREND_VAL__11 = (ushort)10; 
                                                            int __FN_FORSTEP_VAL__11 = (int)1; 
                                                            for ( I  = __FN_FORSTART_VAL__11; (__FN_FORSTEP_VAL__11 > 0)  ? ( (I  >= __FN_FORSTART_VAL__11) && (I  <= __FN_FOREND_VAL__11) ) : ( (I  <= __FN_FORSTART_VAL__11) && (I  >= __FN_FOREND_VAL__11) ) ; I  += (ushort)__FN_FORSTEP_VAL__11) 
                                                                { 
                                                                __context__.SourceCodeLine = 589;
                                                                OUTPUT_MUTE_ON_FB [ I]  .Value = (ushort) ( FLAG ) ; 
                                                                __context__.SourceCodeLine = 590;
                                                                OUTPUT_MUTE_OFF_FB [ I]  .Value = (ushort) ( Functions.Not( FLAG ) ) ; 
                                                                __context__.SourceCodeLine = 587;
                                                                } 
                                                            
                                                            } 
                                                        
                                                        else 
                                                            { 
                                                            __context__.SourceCodeLine = 594;
                                                            if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( "group a" , DATA ) > 0 ))  ) ) 
                                                                { 
                                                                __context__.SourceCodeLine = 596;
                                                                OUTPUT_MUTE_ON_FB [ 9]  .Value = (ushort) ( FLAG ) ; 
                                                                __context__.SourceCodeLine = 597;
                                                                OUTPUT_MUTE_OFF_FB [ 9]  .Value = (ushort) ( Functions.Not( FLAG ) ) ; 
                                                                } 
                                                            
                                                            else 
                                                                {
                                                                __context__.SourceCodeLine = 598;
                                                                if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( "group b" , DATA ) > 0 ))  ) ) 
                                                                    { 
                                                                    __context__.SourceCodeLine = 600;
                                                                    OUTPUT_MUTE_ON_FB [ 10]  .Value = (ushort) ( FLAG ) ; 
                                                                    __context__.SourceCodeLine = 601;
                                                                    OUTPUT_MUTE_OFF_FB [ 10]  .Value = (ushort) ( Functions.Not( FLAG ) ) ; 
                                                                    } 
                                                                
                                                                else 
                                                                    { 
                                                                    __context__.SourceCodeLine = 604;
                                                                    OUTPUT_MUTE_ON_FB [ Functions.Atoi( DATA )]  .Value = (ushort) ( FLAG ) ; 
                                                                    __context__.SourceCodeLine = 605;
                                                                    OUTPUT_MUTE_OFF_FB [ Functions.Atoi( DATA )]  .Value = (ushort) ( Functions.Not( FLAG ) ) ; 
                                                                    } 
                                                                
                                                                }
                                                            
                                                            } 
                                                        
                                                        } 
                                                    
                                                    else 
                                                        {
                                                        __context__.SourceCodeLine = 610;
                                                        if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( "auto mixer" , DATA ) > 0 ))  ) ) 
                                                            { 
                                                            __context__.SourceCodeLine = 612;
                                                            if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( "all " , DATA ) > 0 ))  ) ) 
                                                                { 
                                                                __context__.SourceCodeLine = 614;
                                                                ushort __FN_FORSTART_VAL__12 = (ushort) ( 1 ) ;
                                                                ushort __FN_FOREND_VAL__12 = (ushort)8; 
                                                                int __FN_FORSTEP_VAL__12 = (int)1; 
                                                                for ( I  = __FN_FORSTART_VAL__12; (__FN_FORSTEP_VAL__12 > 0)  ? ( (I  >= __FN_FORSTART_VAL__12) && (I  <= __FN_FOREND_VAL__12) ) : ( (I  <= __FN_FORSTART_VAL__12) && (I  >= __FN_FOREND_VAL__12) ) ; I  += (ushort)__FN_FORSTEP_VAL__12) 
                                                                    { 
                                                                    __context__.SourceCodeLine = 616;
                                                                    AM_INPUT_MUTE_ON_FB [ I]  .Value = (ushort) ( FLAG ) ; 
                                                                    __context__.SourceCodeLine = 617;
                                                                    AM_INPUT_MUTE_OFF_FB [ I]  .Value = (ushort) ( Functions.Not( FLAG ) ) ; 
                                                                    __context__.SourceCodeLine = 614;
                                                                    } 
                                                                
                                                                } 
                                                            
                                                            else 
                                                                { 
                                                                __context__.SourceCodeLine = 621;
                                                                AM_INPUT_MUTE_ON_FB [ Functions.Atoi( DATA )]  .Value = (ushort) ( FLAG ) ; 
                                                                __context__.SourceCodeLine = 622;
                                                                AM_INPUT_MUTE_OFF_FB [ Functions.Atoi( DATA )]  .Value = (ushort) ( Functions.Not( FLAG ) ) ; 
                                                                } 
                                                            
                                                            } 
                                                        
                                                        }
                                                    
                                                    }
                                                
                                                } 
                                            
                                            else 
                                                {
                                                __context__.SourceCodeLine = 629;
                                                if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( (Functions.TestForTrue ( Functions.BoolToInt ( (Functions.TestForTrue ( Functions.BoolToInt ( Functions.Find( "out" , DATA ) > 0 ) ) && Functions.TestForTrue ( Functions.BoolToInt ( Functions.Find( "level: " , DATA ) > 0 ) )) ) ) && Functions.TestForTrue ( Functions.BoolToInt ( Functions.Find( "set " , DATA ) <= 0 ) )) ))  ) ) 
                                                    { 
                                                    __context__.SourceCodeLine = 632;
                                                    INDEX = (ushort) ( Functions.Find( "level: " , DATA ) ) ; 
                                                    __context__.SourceCodeLine = 633;
                                                    if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( (Functions.TestForTrue ( Functions.BoolToInt ( Functions.Find( "18dbu" , DATA ) > 0 ) ) || Functions.TestForTrue ( Functions.BoolToInt ( Functions.Find( "20dbu" , DATA ) > 0 ) )) ))  ) ) 
                                                        { 
                                                        __context__.SourceCodeLine = 635;
                                                        FLAG = (ushort) ( 1 ) ; 
                                                        } 
                                                    
                                                    else 
                                                        {
                                                        __context__.SourceCodeLine = 636;
                                                        if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( "4dbu" , DATA ) > 0 ))  ) ) 
                                                            { 
                                                            __context__.SourceCodeLine = 638;
                                                            FLAG = (ushort) ( 2 ) ; 
                                                            } 
                                                        
                                                        else 
                                                            {
                                                            __context__.SourceCodeLine = 639;
                                                            if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( (Functions.TestForTrue ( Functions.BoolToInt ( Functions.Find( "0dbu" , DATA ) > 0 ) ) && Functions.TestForTrue ( Functions.BoolToInt ( Functions.Find( "20dbu" , DATA ) <= 0 ) )) ))  ) ) 
                                                                { 
                                                                __context__.SourceCodeLine = 641;
                                                                FLAG = (ushort) ( 3 ) ; 
                                                                } 
                                                            
                                                            else 
                                                                {
                                                                __context__.SourceCodeLine = 642;
                                                                if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( "-10dbv" , DATA ) > 0 ))  ) ) 
                                                                    { 
                                                                    __context__.SourceCodeLine = 644;
                                                                    FLAG = (ushort) ( 4 ) ; 
                                                                    } 
                                                                
                                                                }
                                                            
                                                            }
                                                        
                                                        }
                                                    
                                                    __context__.SourceCodeLine = 646;
                                                    if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( "all " , DATA ) > 0 ))  ) ) 
                                                        { 
                                                        __context__.SourceCodeLine = 648;
                                                        ushort __FN_FORSTART_VAL__13 = (ushort) ( 1 ) ;
                                                        ushort __FN_FOREND_VAL__13 = (ushort)8; 
                                                        int __FN_FORSTEP_VAL__13 = (int)1; 
                                                        for ( I  = __FN_FORSTART_VAL__13; (__FN_FORSTEP_VAL__13 > 0)  ? ( (I  >= __FN_FORSTART_VAL__13) && (I  <= __FN_FOREND_VAL__13) ) : ( (I  <= __FN_FORSTART_VAL__13) && (I  >= __FN_FOREND_VAL__13) ) ; I  += (ushort)__FN_FORSTEP_VAL__13) 
                                                            { 
                                                            __context__.SourceCodeLine = 650;
                                                            OUTPUT_LEVEL_FB [ I]  .Value = (ushort) ( FLAG ) ; 
                                                            __context__.SourceCodeLine = 648;
                                                            } 
                                                        
                                                        } 
                                                    
                                                    else 
                                                        { 
                                                        __context__.SourceCodeLine = 654;
                                                        OUTPUT_LEVEL_FB [ Functions.Atoi( DATA )]  .Value = (ushort) ( FLAG ) ; 
                                                        } 
                                                    
                                                    } 
                                                
                                                else 
                                                    {
                                                    __context__.SourceCodeLine = 657;
                                                    if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( (Functions.TestForTrue ( Functions.BoolToInt ( (Functions.TestForTrue ( Functions.BoolToInt ( Functions.Find( "auto mixer" , DATA ) > 0 ) ) && Functions.TestForTrue ( Functions.BoolToInt ( Functions.Find( "auto:" , DATA ) > 0 ) )) ) ) && Functions.TestForTrue ( Functions.BoolToInt ( Functions.Find( "set " , DATA ) <= 0 ) )) ))  ) ) 
                                                        { 
                                                        __context__.SourceCodeLine = 659;
                                                        FLAG = (ushort) ( Functions.BoolToInt ( Functions.Find( "on" , DATA ) > 0 ) ) ; 
                                                        __context__.SourceCodeLine = 660;
                                                        if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( "all " , DATA ) > 0 ))  ) ) 
                                                            { 
                                                            __context__.SourceCodeLine = 663;
                                                            ushort __FN_FORSTART_VAL__14 = (ushort) ( 1 ) ;
                                                            ushort __FN_FOREND_VAL__14 = (ushort)8; 
                                                            int __FN_FORSTEP_VAL__14 = (int)1; 
                                                            for ( I  = __FN_FORSTART_VAL__14; (__FN_FORSTEP_VAL__14 > 0)  ? ( (I  >= __FN_FORSTART_VAL__14) && (I  <= __FN_FOREND_VAL__14) ) : ( (I  <= __FN_FORSTART_VAL__14) && (I  >= __FN_FOREND_VAL__14) ) ; I  += (ushort)__FN_FORSTEP_VAL__14) 
                                                                { 
                                                                __context__.SourceCodeLine = 665;
                                                                AM_INPUT_AUTO_ON_FB [ I]  .Value = (ushort) ( FLAG ) ; 
                                                                __context__.SourceCodeLine = 666;
                                                                AM_INPUT_AUTO_OFF_FB [ I]  .Value = (ushort) ( Functions.Not( FLAG ) ) ; 
                                                                __context__.SourceCodeLine = 663;
                                                                } 
                                                            
                                                            } 
                                                        
                                                        else 
                                                            { 
                                                            __context__.SourceCodeLine = 670;
                                                            AM_INPUT_AUTO_ON_FB [ Functions.Atoi( DATA )]  .Value = (ushort) ( FLAG ) ; 
                                                            __context__.SourceCodeLine = 671;
                                                            AM_INPUT_AUTO_OFF_FB [ Functions.Atoi( DATA )]  .Value = (ushort) ( Functions.Not( FLAG ) ) ; 
                                                            } 
                                                        
                                                        } 
                                                    
                                                    else 
                                                        {
                                                        __context__.SourceCodeLine = 674;
                                                        if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( (Functions.TestForTrue ( Functions.BoolToInt ( (Functions.TestForTrue ( Functions.BoolToInt ( Functions.Find( "auto mixer" , DATA ) > 0 ) ) && Functions.TestForTrue ( Functions.BoolToInt ( Functions.Find( "priority:" , DATA ) > 0 ) )) ) ) && Functions.TestForTrue ( Functions.BoolToInt ( Functions.Find( "set " , DATA ) <= 0 ) )) ))  ) ) 
                                                            { 
                                                            __context__.SourceCodeLine = 676;
                                                            INDEX = (ushort) ( Functions.Find( "priority:" , DATA ) ) ; 
                                                            __context__.SourceCodeLine = 677;
                                                            FLAG = (ushort) ( Functions.Atoi( Functions.Right( DATA , (int)( (Functions.Length( DATA ) - INDEX) ) ) ) ) ; 
                                                            __context__.SourceCodeLine = 678;
                                                            if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( "all" , DATA ) > 0 ))  ) ) 
                                                                { 
                                                                __context__.SourceCodeLine = 680;
                                                                ushort __FN_FORSTART_VAL__15 = (ushort) ( 1 ) ;
                                                                ushort __FN_FOREND_VAL__15 = (ushort)8; 
                                                                int __FN_FORSTEP_VAL__15 = (int)1; 
                                                                for ( I  = __FN_FORSTART_VAL__15; (__FN_FORSTEP_VAL__15 > 0)  ? ( (I  >= __FN_FORSTART_VAL__15) && (I  <= __FN_FOREND_VAL__15) ) : ( (I  <= __FN_FORSTART_VAL__15) && (I  >= __FN_FOREND_VAL__15) ) ; I  += (ushort)__FN_FORSTEP_VAL__15) 
                                                                    { 
                                                                    __context__.SourceCodeLine = 682;
                                                                    AM_INPUT_PRIORITY_FB [ I]  .Value = (ushort) ( FLAG ) ; 
                                                                    __context__.SourceCodeLine = 680;
                                                                    } 
                                                                
                                                                } 
                                                            
                                                            else 
                                                                { 
                                                                __context__.SourceCodeLine = 687;
                                                                AM_INPUT_PRIORITY_FB [ Functions.Atoi( DATA )]  .Value = (ushort) ( FLAG ) ; 
                                                                } 
                                                            
                                                            } 
                                                        
                                                        else 
                                                            {
                                                            __context__.SourceCodeLine = 690;
                                                            if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( (Functions.TestForTrue ( Functions.BoolToInt ( (Functions.TestForTrue ( Functions.BoolToInt ( Functions.Find( "in" , DATA ) > 0 ) ) && Functions.TestForTrue ( Functions.BoolToInt ( Functions.Find( "from " , DATA ) > 0 ) )) ) ) && Functions.TestForTrue ( Functions.BoolToInt ( Functions.Find( "set " , DATA ) <= 0 ) )) ))  ) ) 
                                                                { 
                                                                __context__.SourceCodeLine = 692;
                                                                INDEX = (ushort) ( Functions.Find( "from " , DATA ) ) ; 
                                                                __context__.SourceCodeLine = 694;
                                                                if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( " am" , DATA ) > 0 ))  ) ) 
                                                                    { 
                                                                    __context__.SourceCodeLine = 696;
                                                                    INPUT_ID = (ushort) ( 9 ) ; 
                                                                    } 
                                                                
                                                                else 
                                                                    {
                                                                    __context__.SourceCodeLine = 698;
                                                                    if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( " afc" , DATA ) > 0 ))  ) ) 
                                                                        { 
                                                                        __context__.SourceCodeLine = 700;
                                                                        INPUT_ID = (ushort) ( 11 ) ; 
                                                                        } 
                                                                    
                                                                    else 
                                                                        {
                                                                        __context__.SourceCodeLine = 702;
                                                                        if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( " aec" , DATA ) > 0 ))  ) ) 
                                                                            { 
                                                                            __context__.SourceCodeLine = 704;
                                                                            INPUT_ID = (ushort) ( 11 ) ; 
                                                                            } 
                                                                        
                                                                        else 
                                                                            {
                                                                            __context__.SourceCodeLine = 706;
                                                                            if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( " ans" , DATA ) > 0 ))  ) ) 
                                                                                { 
                                                                                __context__.SourceCodeLine = 708;
                                                                                INPUT_ID = (ushort) ( 12 ) ; 
                                                                                } 
                                                                            
                                                                            else 
                                                                                { 
                                                                                __context__.SourceCodeLine = 712;
                                                                                INPUT_ID = (ushort) ( Functions.Atoi( Functions.Right( DATA , (int)( (Functions.Length( DATA ) - INDEX) ) ) ) ) ; 
                                                                                } 
                                                                            
                                                                            }
                                                                        
                                                                        }
                                                                    
                                                                    }
                                                                
                                                                __context__.SourceCodeLine = 714;
                                                                if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( "remove" , DATA ) > 0 ))  ) ) 
                                                                    { 
                                                                    __context__.SourceCodeLine = 716;
                                                                    FLAG = (ushort) ( 0 ) ; 
                                                                    } 
                                                                
                                                                else 
                                                                    { 
                                                                    __context__.SourceCodeLine = 719;
                                                                    FLAG = (ushort) ( 1 ) ; 
                                                                    } 
                                                                
                                                                __context__.SourceCodeLine = 721;
                                                                if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( Functions.Find( "all " , DATA ) > 0 ))  ) ) 
                                                                    { 
                                                                    __context__.SourceCodeLine = 723;
                                                                    OUTPUT_ID = (ushort) ( 0 ) ; 
                                                                    } 
                                                                
                                                                else 
                                                                    { 
                                                                    __context__.SourceCodeLine = 726;
                                                                    OUTPUT_ID = (ushort) ( Functions.Atoi( DATA ) ) ; 
                                                                    } 
                                                                
                                                                __context__.SourceCodeLine = 728;
                                                                SETOUTPUTFROMINPUT (  __context__ , (ushort)( OUTPUT_ID ), (ushort)( INPUT_ID ), (ushort)( FLAG )) ; 
                                                                } 
                                                            
                                                            }
                                                        
                                                        }
                                                    
                                                    }
                                                
                                                }
                                            
                                            }
                                        
                                        }
                                    
                                    }
                                
                                }
                            
                            }
                        
                        }
                    
                    }
                
                }
            
            
            }
            
        object POWER_ON_OnPush_0 ( Object __EventInfo__ )
        
            { 
            Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
            try
            {
                SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
                
                __context__.SourceCodeLine = 734;
                SENDCMD (  __context__ , "power on") ; 
                
                
            }
            catch(Exception e) { ObjectCatchHandler(e); }
            finally { ObjectFinallyHandler( __SignalEventArg__ ); }
            return this;
            
        }
        
    object POWER_OFF_OnPush_1 ( Object __EventInfo__ )
    
        { 
        Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
        try
        {
            SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
            
            __context__.SourceCodeLine = 738;
            SENDCMD (  __context__ , "power off") ; 
            
            
        }
        catch(Exception e) { ObjectCatchHandler(e); }
        finally { ObjectFinallyHandler( __SignalEventArg__ ); }
        return this;
        
    }
    
object SYSTEM_MUTE_ON_OnPush_2 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        
        __context__.SourceCodeLine = 743;
        SENDCMD (  __context__ , "set system mute on") ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object SYSTEM_MUTE_OFF_OnPush_3 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        
        __context__.SourceCodeLine = 747;
        SENDCMD (  __context__ , "set system mute off") ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object REBOOT_OnPush_4 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        
        __context__.SourceCodeLine = 753;
        SENDCMD (  __context__ , "reboot") ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object ALL_IN_LOCK_ON_OnPush_5 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        
        __context__.SourceCodeLine = 758;
        SENDCMD (  __context__ , "set input 0 lock on") ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object ALL_IN_LOCK_OFF_OnPush_6 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        
        __context__.SourceCodeLine = 763;
        SENDCMD (  __context__ , "set input 0 lock off") ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object ALL_INPUT_PHPOW_ON_OnPush_7 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        
        __context__.SourceCodeLine = 771;
        SENDCMD (  __context__ , "set input 0 phantom power on") ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object ALL_INPUT_PHPOW_OFF_OnPush_8 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        
        __context__.SourceCodeLine = 776;
        SENDCMD (  __context__ , "set input 0 phantom power off") ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object ALL_INPUT_MUTE_ON_OnPush_9 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        
        __context__.SourceCodeLine = 781;
        SENDCMD (  __context__ , "set input 0 mute on") ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object ALL_INPUT_MUTE_OFF_OnPush_10 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        
        __context__.SourceCodeLine = 786;
        SENDCMD (  __context__ , "set input 0 mute off") ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object ALL_INPUT_GAIN_UP_OnPush_11 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        CrestronString CMD;
        CMD  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this );
        
        
        __context__.SourceCodeLine = 793;
        CMD  .UpdateValue ( "set input 0 gain+ " + INPUT_GAIN_STEP  ) ; 
        __context__.SourceCodeLine = 794;
        SENDCMD (  __context__ , CMD) ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object ALL_INPUT_GAIN_DOWN_OnPush_12 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        CrestronString CMD;
        CMD  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this );
        
        
        __context__.SourceCodeLine = 801;
        CMD  .UpdateValue ( "set input 0 gain- " + INPUT_GAIN_STEP  ) ; 
        __context__.SourceCodeLine = 802;
        SENDCMD (  __context__ , CMD) ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object ALL_INPUT_INVERT_ON_OnPush_13 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        
        __context__.SourceCodeLine = 807;
        SENDCMD (  __context__ , "set input 0 invert on") ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object ALL_INPUT_INVERT_OFF_OnPush_14 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        
        __context__.SourceCodeLine = 813;
        SENDCMD (  __context__ , "set input 0 invert off") ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object ALL_OUTPUT_LOCK_ON_OnPush_15 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        
        __context__.SourceCodeLine = 819;
        SENDCMD (  __context__ , "set output 0 lock on") ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object ALL_OUTPUT_LOCK_OFF_OnPush_16 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        
        __context__.SourceCodeLine = 825;
        SENDCMD (  __context__ , "set output 0 lock off") ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object ALL_OUTPUT_GAIN_UP_OnPush_17 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        CrestronString CMD;
        CMD  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this );
        
        
        __context__.SourceCodeLine = 830;
        CMD  .UpdateValue ( "set output 0 gain+ " + OUTPUT_GAIN_STEP  ) ; 
        __context__.SourceCodeLine = 831;
        SENDCMD (  __context__ , CMD) ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object ALL_OUTPUT_GAIN_DOWN_OnPush_18 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        CrestronString CMD;
        CMD  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this );
        
        
        __context__.SourceCodeLine = 838;
        CMD  .UpdateValue ( "set output 0 gain- " + OUTPUT_GAIN_STEP  ) ; 
        __context__.SourceCodeLine = 839;
        SENDCMD (  __context__ , CMD) ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object ALL_OUTPUT_INVERT_ON_OnPush_19 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        
        __context__.SourceCodeLine = 846;
        SENDCMD (  __context__ , "set output 0 invert on") ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object ALL_OUTPUT_INVERT_OFF_OnPush_20 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        
        __context__.SourceCodeLine = 851;
        SENDCMD (  __context__ , "set output 0 invert off") ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object ALL_OUTPUT_MUTE_ON_OnPush_21 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        
        __context__.SourceCodeLine = 857;
        SENDCMD (  __context__ , "set output 0 mute on") ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object ALL_OUTPUT_MUTE_OFF_OnPush_22 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        
        __context__.SourceCodeLine = 862;
        SENDCMD (  __context__ , "set output 0 mute off") ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object ALL_AM_INPUT_MUTE_ON_OnPush_23 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        
        __context__.SourceCodeLine = 867;
        SENDCMD (  __context__ , "set am input 0 mute on") ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object ALL_AM_INPUT_MUTE_OFF_OnPush_24 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        
        __context__.SourceCodeLine = 872;
        SENDCMD (  __context__ , "set am input 0 mute off") ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object ALL_AM_INPUT_GAIN_UP_OnPush_25 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        CrestronString CMD;
        CMD  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this );
        
        
        __context__.SourceCodeLine = 879;
        CMD  .UpdateValue ( "set am input 0 gain+ " + OUTPUT_GAIN_STEP  ) ; 
        __context__.SourceCodeLine = 880;
        SENDCMD (  __context__ , CMD) ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object ALL_AM_INPUT_GAIN_DOWN_OnPush_26 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        CrestronString CMD;
        CMD  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this );
        
        
        __context__.SourceCodeLine = 886;
        CMD  .UpdateValue ( "set am input 0 gain- " + OUTPUT_GAIN_STEP  ) ; 
        __context__.SourceCodeLine = 887;
        SENDCMD (  __context__ , CMD) ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object ALL_AM_INPUT_AUTO_ON_OnPush_27 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        
        __context__.SourceCodeLine = 891;
        SENDCMD (  __context__ , "set am input 0 auto on") ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object ALL_AM_INPUT_AUTO_OFF_OnPush_28 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        
        __context__.SourceCodeLine = 896;
        SENDCMD (  __context__ , "set am input 0 auto off") ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object INPUT_LOCK_ON_OnPush_29 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        CrestronString CMD;
        CMD  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this );
        
        
        __context__.SourceCodeLine = 901;
        CMD  .UpdateValue ( "set input " + Functions.ItoA (  (int) ( Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ) ) + " lock on"  ) ; 
        __context__.SourceCodeLine = 902;
        SENDCMD (  __context__ , CMD) ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object INPUT_LOCK_OFF_OnPush_30 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        CrestronString CMD;
        CMD  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this );
        
        
        __context__.SourceCodeLine = 909;
        CMD  .UpdateValue ( "set input " + Functions.ItoA (  (int) ( Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ) ) + " lock off"  ) ; 
        __context__.SourceCodeLine = 910;
        SENDCMD (  __context__ , CMD) ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object INPUT_PHPOW_ON_OnPush_31 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        CrestronString CMD;
        CMD  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this );
        
        
        __context__.SourceCodeLine = 918;
        CMD  .UpdateValue ( "set input " + Functions.ItoA (  (int) ( Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ) ) + " phantom power on"  ) ; 
        __context__.SourceCodeLine = 919;
        SENDCMD (  __context__ , CMD) ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object INPUT_PHPOW_OFF_OnPush_32 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        CrestronString CMD;
        CMD  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this );
        
        
        __context__.SourceCodeLine = 926;
        CMD  .UpdateValue ( "set input " + Functions.ItoA (  (int) ( Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ) ) + " phantom power off"  ) ; 
        __context__.SourceCodeLine = 927;
        SENDCMD (  __context__ , CMD) ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object INPUT_GAIN_UP_OnPush_33 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        CrestronString CMD;
        CMD  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this );
        
        
        __context__.SourceCodeLine = 934;
        CMD  .UpdateValue ( "set input " + Functions.ItoA (  (int) ( Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ) ) + " gain+ " + INPUT_GAIN_STEP  ) ; 
        __context__.SourceCodeLine = 935;
        SENDCMD (  __context__ , CMD) ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object INPUT_GAIN_DOWN_OnPush_34 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        CrestronString CMD;
        CMD  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this );
        
        
        __context__.SourceCodeLine = 942;
        CMD  .UpdateValue ( "set input " + Functions.ItoA (  (int) ( Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ) ) + " gain- " + INPUT_GAIN_STEP  ) ; 
        __context__.SourceCodeLine = 943;
        SENDCMD (  __context__ , CMD) ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object INPUT_INVERT_ON_OnPush_35 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        CrestronString CMD;
        CMD  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this );
        
        
        __context__.SourceCodeLine = 951;
        CMD  .UpdateValue ( "set input " + Functions.ItoA (  (int) ( Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ) ) + " invert on"  ) ; 
        __context__.SourceCodeLine = 952;
        SENDCMD (  __context__ , CMD) ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object INPUT_INVERT_OFF_OnPush_36 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        CrestronString CMD;
        CMD  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this );
        
        
        __context__.SourceCodeLine = 960;
        CMD  .UpdateValue ( "set input " + Functions.ItoA (  (int) ( Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ) ) + " invert off"  ) ; 
        __context__.SourceCodeLine = 961;
        SENDCMD (  __context__ , CMD) ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object INPUT_MUTE_ON_OnPush_37 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        CrestronString CMD;
        CMD  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this );
        
        
        __context__.SourceCodeLine = 968;
        CMD  .UpdateValue ( "set input " + Functions.ItoA (  (int) ( Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ) ) + " mute on"  ) ; 
        __context__.SourceCodeLine = 969;
        SENDCMD (  __context__ , CMD) ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object INPUT_MUTE_OFF_OnPush_38 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        CrestronString CMD;
        CMD  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this );
        
        
        __context__.SourceCodeLine = 976;
        CMD  .UpdateValue ( "set input " + Functions.ItoA (  (int) ( Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ) ) + " mute off"  ) ; 
        __context__.SourceCodeLine = 977;
        SENDCMD (  __context__ , CMD) ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object OUTPUT_LOCK_ON_OnPush_39 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        CrestronString CMD;
        CMD  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this );
        
        
        __context__.SourceCodeLine = 984;
        CMD  .UpdateValue ( "set output " + Functions.ItoA (  (int) ( Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ) ) + " lock on"  ) ; 
        __context__.SourceCodeLine = 985;
        SENDCMD (  __context__ , CMD) ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object OUTPUT_LOCK_OFF_OnPush_40 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        CrestronString CMD;
        CMD  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this );
        
        
        __context__.SourceCodeLine = 991;
        CMD  .UpdateValue ( "set output " + Functions.ItoA (  (int) ( Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ) ) + " lock off"  ) ; 
        __context__.SourceCodeLine = 992;
        SENDCMD (  __context__ , CMD) ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object OUTPUT_GAIN_UP_OnPush_41 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        CrestronString CMD;
        CMD  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this );
        
        
        __context__.SourceCodeLine = 999;
        CMD  .UpdateValue ( "set output " + Functions.ItoA (  (int) ( Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ) ) + " gain+ " + OUTPUT_GAIN_STEP  ) ; 
        __context__.SourceCodeLine = 1000;
        SENDCMD (  __context__ , CMD) ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object OUTPUT_GAIN_DOWN_OnPush_42 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        CrestronString CMD;
        CMD  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this );
        
        
        __context__.SourceCodeLine = 1008;
        CMD  .UpdateValue ( "set output " + Functions.ItoA (  (int) ( Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ) ) + " gain- " + OUTPUT_GAIN_STEP  ) ; 
        __context__.SourceCodeLine = 1009;
        SENDCMD (  __context__ , CMD) ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object OUTPUT_INVERT_ON_OnPush_43 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        CrestronString CMD;
        CMD  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this );
        
        
        __context__.SourceCodeLine = 1017;
        CMD  .UpdateValue ( "set output " + Functions.ItoA (  (int) ( Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ) ) + " invert on"  ) ; 
        __context__.SourceCodeLine = 1018;
        SENDCMD (  __context__ , CMD) ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object OUTPUT_INVERT_OFF_OnPush_44 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        CrestronString CMD;
        CMD  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this );
        
        
        __context__.SourceCodeLine = 1025;
        CMD  .UpdateValue ( "set output " + Functions.ItoA (  (int) ( Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ) ) + " invert off"  ) ; 
        __context__.SourceCodeLine = 1026;
        SENDCMD (  __context__ , CMD) ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object OUTPUT_MUTE_ON_OnPush_45 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        CrestronString CMD;
        CMD  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this );
        
        
        __context__.SourceCodeLine = 1033;
        CMD  .UpdateValue ( "set output " + Functions.ItoA (  (int) ( Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ) ) + " mute on"  ) ; 
        __context__.SourceCodeLine = 1034;
        SENDCMD (  __context__ , CMD) ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object OUTPUT_MUTE_OFF_OnPush_46 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        CrestronString CMD;
        CMD  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this );
        
        
        __context__.SourceCodeLine = 1040;
        CMD  .UpdateValue ( "set output " + Functions.ItoA (  (int) ( Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ) ) + " mute off"  ) ; 
        __context__.SourceCodeLine = 1041;
        SENDCMD (  __context__ , CMD) ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object AM_INPUT_GAIN_UP_OnPush_47 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        CrestronString CMD;
        CMD  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this );
        
        
        __context__.SourceCodeLine = 1048;
        CMD  .UpdateValue ( "set am input " + Functions.ItoA (  (int) ( Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ) ) + " gain+ " + AM_INPUT_GAIN_STEP  ) ; 
        __context__.SourceCodeLine = 1049;
        SENDCMD (  __context__ , CMD) ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object AM_INPUT_GAIN_DOWN_OnPush_48 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        CrestronString CMD;
        CMD  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this );
        
        
        __context__.SourceCodeLine = 1057;
        CMD  .UpdateValue ( "set am input " + Functions.ItoA (  (int) ( Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ) ) + " gain- " + AM_INPUT_GAIN_STEP  ) ; 
        __context__.SourceCodeLine = 1058;
        SENDCMD (  __context__ , CMD) ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object AM_INPUT_MUTE_ON_OnPush_49 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        CrestronString CMD;
        CMD  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this );
        
        
        __context__.SourceCodeLine = 1065;
        CMD  .UpdateValue ( "set am input " + Functions.ItoA (  (int) ( Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ) ) + " mute on"  ) ; 
        __context__.SourceCodeLine = 1066;
        SENDCMD (  __context__ , CMD) ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object AM_INPUT_MUTE_OFF_OnPush_50 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        CrestronString CMD;
        CMD  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this );
        
        
        __context__.SourceCodeLine = 1073;
        CMD  .UpdateValue ( "set am input " + Functions.ItoA (  (int) ( Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ) ) + " mute off"  ) ; 
        __context__.SourceCodeLine = 1074;
        SENDCMD (  __context__ , CMD) ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object AM_INPUT_AUTO_ON_OnPush_51 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        CrestronString CMD;
        CMD  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this );
        
        
        __context__.SourceCodeLine = 1081;
        CMD  .UpdateValue ( "set am input " + Functions.ItoA (  (int) ( Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ) ) + " auto on"  ) ; 
        __context__.SourceCodeLine = 1082;
        SENDCMD (  __context__ , CMD) ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object AM_INPUT_AUTO_OFF_OnPush_52 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        CrestronString CMD;
        CMD  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this );
        
        
        __context__.SourceCodeLine = 1089;
        CMD  .UpdateValue ( "set am input " + Functions.ItoA (  (int) ( Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ) ) + " auto off"  ) ; 
        __context__.SourceCodeLine = 1090;
        SENDCMD (  __context__ , CMD) ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object PRESET_SAVE_OnChange_53 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        CrestronString CMD;
        CMD  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this );
        
        
        __context__.SourceCodeLine = 1097;
        if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( PRESET_SAVE  .UshortValue > 0 ))  ) ) 
            {
            __context__.SourceCodeLine = 1097;
            CMD  .UpdateValue ( "set preset save " + Functions.ItoA (  (int) ( PRESET_SAVE  .UshortValue ) )  ) ; 
            }
        
        __context__.SourceCodeLine = 1098;
        SENDCMD (  __context__ , CMD) ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object PRESET_RECALL_OnChange_54 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        CrestronString CMD;
        CMD  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this );
        
        
        __context__.SourceCodeLine = 1105;
        if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( PRESET_RECALL  .UshortValue > 0 ))  ) ) 
            {
            __context__.SourceCodeLine = 1105;
            CMD  .UpdateValue ( "set preset recall " + Functions.ItoA (  (int) ( PRESET_RECALL  .UshortValue ) )  ) ; 
            }
        
        __context__.SourceCodeLine = 1106;
        SENDCMD (  __context__ , CMD) ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object PRESET_CLEAR_OnChange_55 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        CrestronString CMD;
        CMD  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this );
        
        
        __context__.SourceCodeLine = 1113;
        if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( PRESET_CLEAR  .UshortValue > 0 ))  ) ) 
            {
            __context__.SourceCodeLine = 1113;
            CMD  .UpdateValue ( "set preset clear " + Functions.ItoA (  (int) ( PRESET_CLEAR  .UshortValue ) )  ) ; 
            }
        
        __context__.SourceCodeLine = 1114;
        SENDCMD (  __context__ , CMD) ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object ALL_INPUT_LEVEL_OnChange_56 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        CrestronString CMD;
        CMD  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this );
        
        
        __context__.SourceCodeLine = 1121;
        if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( (Functions.TestForTrue ( Functions.BoolToInt ( ALL_INPUT_LEVEL  .UshortValue > 0 ) ) && Functions.TestForTrue ( Functions.BoolToInt ( ALL_INPUT_LEVEL  .UshortValue < 10 ) )) ))  ) ) 
            {
            __context__.SourceCodeLine = 1121;
            CMD  .UpdateValue ( "set input 0 level " + Functions.ItoA (  (int) ( ALL_INPUT_LEVEL  .UshortValue ) )  ) ; 
            }
        
        __context__.SourceCodeLine = 1122;
        SENDCMD (  __context__ , CMD) ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object ALL_INPUT_GAIN_OnChange_57 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        CrestronString CMD;
        CMD  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this );
        
        
        __context__.SourceCodeLine = 1129;
        CMD  .UpdateValue ( "set input 0 gain " + GETGAINSTRING (  __context__ , (ushort)( ALL_INPUT_GAIN  .UshortValue ))  ) ; 
        __context__.SourceCodeLine = 1130;
        SENDCMD (  __context__ , CMD) ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object ALL_OUTPUT_LEVEL_OnChange_58 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        CrestronString CMD;
        CMD  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this );
        
        
        __context__.SourceCodeLine = 1137;
        if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( (Functions.TestForTrue ( Functions.BoolToInt ( ALL_OUTPUT_LEVEL  .UshortValue >= 1 ) ) && Functions.TestForTrue ( Functions.BoolToInt ( ALL_OUTPUT_LEVEL  .UshortValue <= 4 ) )) ))  ) ) 
            {
            __context__.SourceCodeLine = 1137;
            CMD  .UpdateValue ( "set output 0 level " + Functions.ItoA (  (int) ( ALL_OUTPUT_LEVEL  .UshortValue ) )  ) ; 
            }
        
        __context__.SourceCodeLine = 1138;
        SENDCMD (  __context__ , CMD) ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object ALL_OUTPUT_GAIN_OnChange_59 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        CrestronString CMD;
        CMD  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this );
        
        
        __context__.SourceCodeLine = 1147;
        CMD  .UpdateValue ( "set output 0 gain " + GETGAINSTRING (  __context__ , (ushort)( ALL_OUTPUT_GAIN  .UshortValue ))  ) ; 
        __context__.SourceCodeLine = 1148;
        SENDCMD (  __context__ , CMD) ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object ALL_AM_INPUT_GAIN_OnChange_60 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        CrestronString CMD;
        CMD  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this );
        
        
        __context__.SourceCodeLine = 1155;
        CMD  .UpdateValue ( "set am input 0 gain " + GETGAINSTRING (  __context__ , (ushort)( ALL_AM_INPUT_GAIN  .UshortValue ))  ) ; 
        __context__.SourceCodeLine = 1156;
        SENDCMD (  __context__ , CMD) ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object ALL_AM_INPUT_PRIORITY_OnChange_61 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        CrestronString CMD;
        CMD  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this );
        
        
        __context__.SourceCodeLine = 1163;
        CMD  .UpdateValue ( "set am input 0 priority " + GETGAINSTRING (  __context__ , (ushort)( ALL_AM_INPUT_PRIORITY  .UshortValue ))  ) ; 
        __context__.SourceCodeLine = 1164;
        SENDCMD (  __context__ , CMD) ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object ALL_OUTPUT_FROM_INPUT_OnChange_62 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        CrestronString CMD;
        CMD  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this );
        
        
        __context__.SourceCodeLine = 1172;
        if ( Functions.TestForTrue  ( ( Functions.BoolToInt (ALL_OUTPUT_FROM_INPUT_LEVEL  .Value != 1))  ) ) 
            { 
            __context__.SourceCodeLine = 1173;
            CMD  .UpdateValue ( "set output 0 from input " + Functions.ItoA (  (int) ( ALL_OUTPUT_FROM_INPUT  .UshortValue ) ) + " level " + Functions.ItoA (  (int) ( ALL_OUTPUT_FROM_INPUT_LEVEL  .Value ) )  ) ; 
            } 
        
        else 
            { 
            __context__.SourceCodeLine = 1175;
            CMD  .UpdateValue ( "set output 0 from input " + Functions.ItoA (  (int) ( ALL_OUTPUT_FROM_INPUT  .UshortValue ) )  ) ; 
            } 
        
        __context__.SourceCodeLine = 1177;
        SENDCMD (  __context__ , CMD) ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object ALL_OUTPUT_REMOVE_INPUT_OnChange_63 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        CrestronString CMD;
        CMD  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this );
        
        
        __context__.SourceCodeLine = 1184;
        if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( (Functions.TestForTrue ( Functions.BoolToInt ( ALL_OUTPUT_REMOVE_INPUT  .UshortValue >= 1 ) ) && Functions.TestForTrue ( Functions.BoolToInt ( ALL_OUTPUT_REMOVE_INPUT  .UshortValue <= 12 ) )) ))  ) ) 
            {
            __context__.SourceCodeLine = 1184;
            CMD  .UpdateValue ( "set output 0 remove from " + Functions.ItoA (  (int) ( ALL_OUTPUT_REMOVE_INPUT  .UshortValue ) )  ) ; 
            }
        
        __context__.SourceCodeLine = 1185;
        SENDCMD (  __context__ , CMD) ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object INPUT_LEVEL_OnChange_64 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        CrestronString CMD;
        CMD  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this );
        
        
        __context__.SourceCodeLine = 1191;
        if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( (Functions.TestForTrue ( Functions.BoolToInt ( INPUT_LEVEL[ Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ] .UshortValue > 0 ) ) && Functions.TestForTrue ( Functions.BoolToInt ( INPUT_LEVEL[ Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ] .UshortValue < 10 ) )) ))  ) ) 
            { 
            __context__.SourceCodeLine = 1193;
            CMD  .UpdateValue ( "set input " + Functions.ItoA (  (int) ( Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ) ) + " level " + Functions.ItoA (  (int) ( INPUT_LEVEL[ Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ] .UshortValue ) )  ) ; 
            } 
        
        __context__.SourceCodeLine = 1195;
        SENDCMD (  __context__ , CMD) ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object INPUT_GAIN_OnChange_65 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        CrestronString CMD;
        CMD  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this );
        
        
        __context__.SourceCodeLine = 1203;
        CMD  .UpdateValue ( "set input " + Functions.ItoA (  (int) ( Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ) ) + " gain " + GETGAINSTRING (  __context__ , (ushort)( INPUT_GAIN[ Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ] .UshortValue ))  ) ; 
        __context__.SourceCodeLine = 1204;
        SENDCMD (  __context__ , CMD) ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object OUTPUT_LEVEL_OnChange_66 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        CrestronString CMD;
        CMD  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this );
        
        
        __context__.SourceCodeLine = 1210;
        if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( (Functions.TestForTrue ( Functions.BoolToInt ( OUTPUT_LEVEL[ Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ] .UshortValue >= 1 ) ) && Functions.TestForTrue ( Functions.BoolToInt ( OUTPUT_LEVEL[ Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ] .UshortValue <= 4 ) )) ))  ) ) 
            { 
            __context__.SourceCodeLine = 1212;
            CMD  .UpdateValue ( "set output " + Functions.ItoA (  (int) ( Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ) ) + " level " + Functions.ItoA (  (int) ( OUTPUT_LEVEL[ Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ] .UshortValue ) )  ) ; 
            } 
        
        __context__.SourceCodeLine = 1214;
        SENDCMD (  __context__ , CMD) ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object OUTPUT_GAIN_OnChange_67 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        CrestronString CMD;
        CMD  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this );
        
        
        __context__.SourceCodeLine = 1220;
        CMD  .UpdateValue ( "set output " + Functions.ItoA (  (int) ( Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ) ) + " gain " + GETGAINSTRING (  __context__ , (ushort)( OUTPUT_GAIN[ Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ] .UshortValue ))  ) ; 
        __context__.SourceCodeLine = 1222;
        SENDCMD (  __context__ , CMD) ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object AM_INPUT_GAIN_OnChange_68 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        CrestronString CMD;
        CMD  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this );
        
        
        __context__.SourceCodeLine = 1229;
        CMD  .UpdateValue ( "set am input " + Functions.ItoA (  (int) ( Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ) ) + " gain " + GETGAINSTRING (  __context__ , (ushort)( AM_INPUT_GAIN[ Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ] .UshortValue ))  ) ; 
        __context__.SourceCodeLine = 1230;
        SENDCMD (  __context__ , CMD) ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object AM_INPUT_PRIORITY_OnChange_69 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        CrestronString CMD;
        CMD  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this );
        
        
        __context__.SourceCodeLine = 1237;
        if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( (Functions.TestForTrue ( Functions.BoolToInt ( AM_INPUT_PRIORITY[ Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ] .UshortValue >= 0 ) ) && Functions.TestForTrue ( Functions.BoolToInt ( AM_INPUT_PRIORITY[ Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ] .UshortValue <= 10 ) )) ))  ) ) 
            { 
            __context__.SourceCodeLine = 1239;
            CMD  .UpdateValue ( "set am input " + Functions.ItoA (  (int) ( Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ) ) + " priority " + Functions.ItoA (  (int) ( AM_INPUT_PRIORITY[ Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ] .UshortValue ) )  ) ; 
            } 
        
        __context__.SourceCodeLine = 1241;
        SENDCMD (  __context__ , CMD) ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object OUTPUT_FROM_INPUT_OnChange_70 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        CrestronString CMD;
        CMD  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this );
        
        
        __context__.SourceCodeLine = 1248;
        if ( Functions.TestForTrue  ( ( Functions.BoolToInt (OUTPUT_FROM_INPUT_LEVEL[ Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ] .Value != 1))  ) ) 
            { 
            __context__.SourceCodeLine = 1250;
            CMD  .UpdateValue ( "set output " + Functions.ItoA (  (int) ( Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ) ) + " from input " + Functions.ItoA (  (int) ( OUTPUT_FROM_INPUT[ Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ] .UshortValue ) ) + " level " + Functions.ItoA (  (int) ( OUTPUT_FROM_INPUT_LEVEL[ Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ] .Value ) )  ) ; 
            } 
        
        else 
            { 
            __context__.SourceCodeLine = 1253;
            CMD  .UpdateValue ( "set output " + Functions.ItoA (  (int) ( Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ) ) + " from input " + Functions.ItoA (  (int) ( OUTPUT_FROM_INPUT[ Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ] .UshortValue ) )  ) ; 
            } 
        
        __context__.SourceCodeLine = 1255;
        SENDCMD (  __context__ , CMD) ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object OUTPUT_REMOVE_INPUT_OnChange_71 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        CrestronString CMD;
        CMD  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this );
        
        
        __context__.SourceCodeLine = 1262;
        if ( Functions.TestForTrue  ( ( Functions.BoolToInt ( (Functions.TestForTrue ( Functions.BoolToInt ( OUTPUT_REMOVE_INPUT[ Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ] .UshortValue >= 1 ) ) && Functions.TestForTrue ( Functions.BoolToInt ( OUTPUT_REMOVE_INPUT[ Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ] .UshortValue <= 12 ) )) ))  ) ) 
            { 
            __context__.SourceCodeLine = 1264;
            CMD  .UpdateValue ( "set output " + Functions.ItoA (  (int) ( Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ) ) + " remove from " + Functions.ItoA (  (int) ( OUTPUT_REMOVE_INPUT[ Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ] .UshortValue ) )  ) ; 
            } 
        
        __context__.SourceCodeLine = 1266;
        SENDCMD (  __context__ , CMD) ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object PRESET_NAME_OnChange_72 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        CrestronString CMD;
        CMD  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 100, this );
        
        
        __context__.SourceCodeLine = 1272;
        CMD  .UpdateValue ( "set preset " + Functions.ItoA (  (int) ( Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ) ) + " name " + PRESET_NAME [ Functions.GetLastModifiedArrayIndex( __SignalEventArg__ ) ]  ) ; 
        __context__.SourceCodeLine = 1273;
        SENDCMD (  __context__ , CMD) ; 
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

object FROM_DEVICE_OnChange_73 ( Object __EventInfo__ )

    { 
    Crestron.Logos.SplusObjects.SignalEventArgs __SignalEventArg__ = (Crestron.Logos.SplusObjects.SignalEventArgs)__EventInfo__;
    try
    {
        SplusExecutionContext __context__ = SplusThreadStartCode(__SignalEventArg__);
        CrestronString STR;
        STR  = new CrestronString( Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 256, this );
        
        ushort INDEX = 0;
        
        
        __context__.SourceCodeLine = 1281;
        INDEX = (ushort) ( Functions.Find( "\u000D\u000A" , FROM_DEVICE ) ) ; 
        __context__.SourceCodeLine = 1282;
        while ( Functions.TestForTrue  ( ( Functions.BoolToInt ( INDEX > 0 ))  ) ) 
            { 
            __context__.SourceCodeLine = 1283;
            STR  .UpdateValue ( Functions.Remove ( "\u000D\u000A" , FROM_DEVICE , INDEX)  ) ; 
            __context__.SourceCodeLine = 1284;
            ANALYSISDATA (  __context__ , Functions.Lower( STR )) ; 
            __context__.SourceCodeLine = 1286;
            INDEX = (ushort) ( Functions.Find( "\u000D\u000A" , FROM_DEVICE ) ) ; 
            __context__.SourceCodeLine = 1282;
            } 
        
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler( __SignalEventArg__ ); }
    return this;
    
}

public override object FunctionMain (  object __obj__ ) 
    { 
    try
    {
        SplusExecutionContext __context__ = SplusFunctionMainStartCode();
        
        
        
    }
    catch(Exception e) { ObjectCatchHandler(e); }
    finally { ObjectFinallyHandler(); }
    return __obj__;
    }
    

public override void LogosSplusInitialize()
{
    SocketInfo __socketinfo__ = new SocketInfo( 1, this );
    InitialParametersClass.ResolveHostName = __socketinfo__.ResolveHostName;
    _SplusNVRAM = new SplusNVRAM( this );
    
    POWER_ON = new Crestron.Logos.SplusObjects.DigitalInput( POWER_ON__DigitalInput__, this );
    m_DigitalInputList.Add( POWER_ON__DigitalInput__, POWER_ON );
    
    POWER_OFF = new Crestron.Logos.SplusObjects.DigitalInput( POWER_OFF__DigitalInput__, this );
    m_DigitalInputList.Add( POWER_OFF__DigitalInput__, POWER_OFF );
    
    SYSTEM_MUTE_ON = new Crestron.Logos.SplusObjects.DigitalInput( SYSTEM_MUTE_ON__DigitalInput__, this );
    m_DigitalInputList.Add( SYSTEM_MUTE_ON__DigitalInput__, SYSTEM_MUTE_ON );
    
    SYSTEM_MUTE_OFF = new Crestron.Logos.SplusObjects.DigitalInput( SYSTEM_MUTE_OFF__DigitalInput__, this );
    m_DigitalInputList.Add( SYSTEM_MUTE_OFF__DigitalInput__, SYSTEM_MUTE_OFF );
    
    REBOOT = new Crestron.Logos.SplusObjects.DigitalInput( REBOOT__DigitalInput__, this );
    m_DigitalInputList.Add( REBOOT__DigitalInput__, REBOOT );
    
    ALL_IN_LOCK_ON = new Crestron.Logos.SplusObjects.DigitalInput( ALL_IN_LOCK_ON__DigitalInput__, this );
    m_DigitalInputList.Add( ALL_IN_LOCK_ON__DigitalInput__, ALL_IN_LOCK_ON );
    
    ALL_IN_LOCK_OFF = new Crestron.Logos.SplusObjects.DigitalInput( ALL_IN_LOCK_OFF__DigitalInput__, this );
    m_DigitalInputList.Add( ALL_IN_LOCK_OFF__DigitalInput__, ALL_IN_LOCK_OFF );
    
    ALL_INPUT_PHPOW_ON = new Crestron.Logos.SplusObjects.DigitalInput( ALL_INPUT_PHPOW_ON__DigitalInput__, this );
    m_DigitalInputList.Add( ALL_INPUT_PHPOW_ON__DigitalInput__, ALL_INPUT_PHPOW_ON );
    
    ALL_INPUT_PHPOW_OFF = new Crestron.Logos.SplusObjects.DigitalInput( ALL_INPUT_PHPOW_OFF__DigitalInput__, this );
    m_DigitalInputList.Add( ALL_INPUT_PHPOW_OFF__DigitalInput__, ALL_INPUT_PHPOW_OFF );
    
    ALL_INPUT_MUTE_ON = new Crestron.Logos.SplusObjects.DigitalInput( ALL_INPUT_MUTE_ON__DigitalInput__, this );
    m_DigitalInputList.Add( ALL_INPUT_MUTE_ON__DigitalInput__, ALL_INPUT_MUTE_ON );
    
    ALL_INPUT_MUTE_OFF = new Crestron.Logos.SplusObjects.DigitalInput( ALL_INPUT_MUTE_OFF__DigitalInput__, this );
    m_DigitalInputList.Add( ALL_INPUT_MUTE_OFF__DigitalInput__, ALL_INPUT_MUTE_OFF );
    
    ALL_INPUT_GAIN_UP = new Crestron.Logos.SplusObjects.DigitalInput( ALL_INPUT_GAIN_UP__DigitalInput__, this );
    m_DigitalInputList.Add( ALL_INPUT_GAIN_UP__DigitalInput__, ALL_INPUT_GAIN_UP );
    
    ALL_INPUT_GAIN_DOWN = new Crestron.Logos.SplusObjects.DigitalInput( ALL_INPUT_GAIN_DOWN__DigitalInput__, this );
    m_DigitalInputList.Add( ALL_INPUT_GAIN_DOWN__DigitalInput__, ALL_INPUT_GAIN_DOWN );
    
    ALL_INPUT_INVERT_ON = new Crestron.Logos.SplusObjects.DigitalInput( ALL_INPUT_INVERT_ON__DigitalInput__, this );
    m_DigitalInputList.Add( ALL_INPUT_INVERT_ON__DigitalInput__, ALL_INPUT_INVERT_ON );
    
    ALL_INPUT_INVERT_OFF = new Crestron.Logos.SplusObjects.DigitalInput( ALL_INPUT_INVERT_OFF__DigitalInput__, this );
    m_DigitalInputList.Add( ALL_INPUT_INVERT_OFF__DigitalInput__, ALL_INPUT_INVERT_OFF );
    
    ALL_OUTPUT_LOCK_ON = new Crestron.Logos.SplusObjects.DigitalInput( ALL_OUTPUT_LOCK_ON__DigitalInput__, this );
    m_DigitalInputList.Add( ALL_OUTPUT_LOCK_ON__DigitalInput__, ALL_OUTPUT_LOCK_ON );
    
    ALL_OUTPUT_LOCK_OFF = new Crestron.Logos.SplusObjects.DigitalInput( ALL_OUTPUT_LOCK_OFF__DigitalInput__, this );
    m_DigitalInputList.Add( ALL_OUTPUT_LOCK_OFF__DigitalInput__, ALL_OUTPUT_LOCK_OFF );
    
    ALL_OUTPUT_GAIN_UP = new Crestron.Logos.SplusObjects.DigitalInput( ALL_OUTPUT_GAIN_UP__DigitalInput__, this );
    m_DigitalInputList.Add( ALL_OUTPUT_GAIN_UP__DigitalInput__, ALL_OUTPUT_GAIN_UP );
    
    ALL_OUTPUT_GAIN_DOWN = new Crestron.Logos.SplusObjects.DigitalInput( ALL_OUTPUT_GAIN_DOWN__DigitalInput__, this );
    m_DigitalInputList.Add( ALL_OUTPUT_GAIN_DOWN__DigitalInput__, ALL_OUTPUT_GAIN_DOWN );
    
    ALL_OUTPUT_INVERT_ON = new Crestron.Logos.SplusObjects.DigitalInput( ALL_OUTPUT_INVERT_ON__DigitalInput__, this );
    m_DigitalInputList.Add( ALL_OUTPUT_INVERT_ON__DigitalInput__, ALL_OUTPUT_INVERT_ON );
    
    ALL_OUTPUT_INVERT_OFF = new Crestron.Logos.SplusObjects.DigitalInput( ALL_OUTPUT_INVERT_OFF__DigitalInput__, this );
    m_DigitalInputList.Add( ALL_OUTPUT_INVERT_OFF__DigitalInput__, ALL_OUTPUT_INVERT_OFF );
    
    ALL_OUTPUT_MUTE_ON = new Crestron.Logos.SplusObjects.DigitalInput( ALL_OUTPUT_MUTE_ON__DigitalInput__, this );
    m_DigitalInputList.Add( ALL_OUTPUT_MUTE_ON__DigitalInput__, ALL_OUTPUT_MUTE_ON );
    
    ALL_OUTPUT_MUTE_OFF = new Crestron.Logos.SplusObjects.DigitalInput( ALL_OUTPUT_MUTE_OFF__DigitalInput__, this );
    m_DigitalInputList.Add( ALL_OUTPUT_MUTE_OFF__DigitalInput__, ALL_OUTPUT_MUTE_OFF );
    
    ALL_AM_INPUT_MUTE_ON = new Crestron.Logos.SplusObjects.DigitalInput( ALL_AM_INPUT_MUTE_ON__DigitalInput__, this );
    m_DigitalInputList.Add( ALL_AM_INPUT_MUTE_ON__DigitalInput__, ALL_AM_INPUT_MUTE_ON );
    
    ALL_AM_INPUT_MUTE_OFF = new Crestron.Logos.SplusObjects.DigitalInput( ALL_AM_INPUT_MUTE_OFF__DigitalInput__, this );
    m_DigitalInputList.Add( ALL_AM_INPUT_MUTE_OFF__DigitalInput__, ALL_AM_INPUT_MUTE_OFF );
    
    ALL_AM_INPUT_GAIN_UP = new Crestron.Logos.SplusObjects.DigitalInput( ALL_AM_INPUT_GAIN_UP__DigitalInput__, this );
    m_DigitalInputList.Add( ALL_AM_INPUT_GAIN_UP__DigitalInput__, ALL_AM_INPUT_GAIN_UP );
    
    ALL_AM_INPUT_GAIN_DOWN = new Crestron.Logos.SplusObjects.DigitalInput( ALL_AM_INPUT_GAIN_DOWN__DigitalInput__, this );
    m_DigitalInputList.Add( ALL_AM_INPUT_GAIN_DOWN__DigitalInput__, ALL_AM_INPUT_GAIN_DOWN );
    
    ALL_AM_INPUT_AUTO_ON = new Crestron.Logos.SplusObjects.DigitalInput( ALL_AM_INPUT_AUTO_ON__DigitalInput__, this );
    m_DigitalInputList.Add( ALL_AM_INPUT_AUTO_ON__DigitalInput__, ALL_AM_INPUT_AUTO_ON );
    
    ALL_AM_INPUT_AUTO_OFF = new Crestron.Logos.SplusObjects.DigitalInput( ALL_AM_INPUT_AUTO_OFF__DigitalInput__, this );
    m_DigitalInputList.Add( ALL_AM_INPUT_AUTO_OFF__DigitalInput__, ALL_AM_INPUT_AUTO_OFF );
    
    INPUT_LOCK_ON = new InOutArray<DigitalInput>( 4, this );
    for( uint i = 0; i < 4; i++ )
    {
        INPUT_LOCK_ON[i+1] = new Crestron.Logos.SplusObjects.DigitalInput( INPUT_LOCK_ON__DigitalInput__ + i, INPUT_LOCK_ON__DigitalInput__, this );
        m_DigitalInputList.Add( INPUT_LOCK_ON__DigitalInput__ + i, INPUT_LOCK_ON[i+1] );
    }
    
    INPUT_LOCK_OFF = new InOutArray<DigitalInput>( 4, this );
    for( uint i = 0; i < 4; i++ )
    {
        INPUT_LOCK_OFF[i+1] = new Crestron.Logos.SplusObjects.DigitalInput( INPUT_LOCK_OFF__DigitalInput__ + i, INPUT_LOCK_OFF__DigitalInput__, this );
        m_DigitalInputList.Add( INPUT_LOCK_OFF__DigitalInput__ + i, INPUT_LOCK_OFF[i+1] );
    }
    
    INPUT_PHPOW_ON = new InOutArray<DigitalInput>( 8, this );
    for( uint i = 0; i < 8; i++ )
    {
        INPUT_PHPOW_ON[i+1] = new Crestron.Logos.SplusObjects.DigitalInput( INPUT_PHPOW_ON__DigitalInput__ + i, INPUT_PHPOW_ON__DigitalInput__, this );
        m_DigitalInputList.Add( INPUT_PHPOW_ON__DigitalInput__ + i, INPUT_PHPOW_ON[i+1] );
    }
    
    INPUT_PHPOW_OFF = new InOutArray<DigitalInput>( 8, this );
    for( uint i = 0; i < 8; i++ )
    {
        INPUT_PHPOW_OFF[i+1] = new Crestron.Logos.SplusObjects.DigitalInput( INPUT_PHPOW_OFF__DigitalInput__ + i, INPUT_PHPOW_OFF__DigitalInput__, this );
        m_DigitalInputList.Add( INPUT_PHPOW_OFF__DigitalInput__ + i, INPUT_PHPOW_OFF[i+1] );
    }
    
    INPUT_INVERT_ON = new InOutArray<DigitalInput>( 8, this );
    for( uint i = 0; i < 8; i++ )
    {
        INPUT_INVERT_ON[i+1] = new Crestron.Logos.SplusObjects.DigitalInput( INPUT_INVERT_ON__DigitalInput__ + i, INPUT_INVERT_ON__DigitalInput__, this );
        m_DigitalInputList.Add( INPUT_INVERT_ON__DigitalInput__ + i, INPUT_INVERT_ON[i+1] );
    }
    
    INPUT_INVERT_OFF = new InOutArray<DigitalInput>( 8, this );
    for( uint i = 0; i < 8; i++ )
    {
        INPUT_INVERT_OFF[i+1] = new Crestron.Logos.SplusObjects.DigitalInput( INPUT_INVERT_OFF__DigitalInput__ + i, INPUT_INVERT_OFF__DigitalInput__, this );
        m_DigitalInputList.Add( INPUT_INVERT_OFF__DigitalInput__ + i, INPUT_INVERT_OFF[i+1] );
    }
    
    INPUT_MUTE_ON = new InOutArray<DigitalInput>( 10, this );
    for( uint i = 0; i < 10; i++ )
    {
        INPUT_MUTE_ON[i+1] = new Crestron.Logos.SplusObjects.DigitalInput( INPUT_MUTE_ON__DigitalInput__ + i, INPUT_MUTE_ON__DigitalInput__, this );
        m_DigitalInputList.Add( INPUT_MUTE_ON__DigitalInput__ + i, INPUT_MUTE_ON[i+1] );
    }
    
    INPUT_MUTE_OFF = new InOutArray<DigitalInput>( 10, this );
    for( uint i = 0; i < 10; i++ )
    {
        INPUT_MUTE_OFF[i+1] = new Crestron.Logos.SplusObjects.DigitalInput( INPUT_MUTE_OFF__DigitalInput__ + i, INPUT_MUTE_OFF__DigitalInput__, this );
        m_DigitalInputList.Add( INPUT_MUTE_OFF__DigitalInput__ + i, INPUT_MUTE_OFF[i+1] );
    }
    
    OUTPUT_LOCK_ON = new InOutArray<DigitalInput>( 4, this );
    for( uint i = 0; i < 4; i++ )
    {
        OUTPUT_LOCK_ON[i+1] = new Crestron.Logos.SplusObjects.DigitalInput( OUTPUT_LOCK_ON__DigitalInput__ + i, OUTPUT_LOCK_ON__DigitalInput__, this );
        m_DigitalInputList.Add( OUTPUT_LOCK_ON__DigitalInput__ + i, OUTPUT_LOCK_ON[i+1] );
    }
    
    OUTPUT_LOCK_OFF = new InOutArray<DigitalInput>( 4, this );
    for( uint i = 0; i < 4; i++ )
    {
        OUTPUT_LOCK_OFF[i+1] = new Crestron.Logos.SplusObjects.DigitalInput( OUTPUT_LOCK_OFF__DigitalInput__ + i, OUTPUT_LOCK_OFF__DigitalInput__, this );
        m_DigitalInputList.Add( OUTPUT_LOCK_OFF__DigitalInput__ + i, OUTPUT_LOCK_OFF[i+1] );
    }
    
    OUTPUT_INVERT_ON = new InOutArray<DigitalInput>( 8, this );
    for( uint i = 0; i < 8; i++ )
    {
        OUTPUT_INVERT_ON[i+1] = new Crestron.Logos.SplusObjects.DigitalInput( OUTPUT_INVERT_ON__DigitalInput__ + i, OUTPUT_INVERT_ON__DigitalInput__, this );
        m_DigitalInputList.Add( OUTPUT_INVERT_ON__DigitalInput__ + i, OUTPUT_INVERT_ON[i+1] );
    }
    
    OUTPUT_INVERT_OFF = new InOutArray<DigitalInput>( 8, this );
    for( uint i = 0; i < 8; i++ )
    {
        OUTPUT_INVERT_OFF[i+1] = new Crestron.Logos.SplusObjects.DigitalInput( OUTPUT_INVERT_OFF__DigitalInput__ + i, OUTPUT_INVERT_OFF__DigitalInput__, this );
        m_DigitalInputList.Add( OUTPUT_INVERT_OFF__DigitalInput__ + i, OUTPUT_INVERT_OFF[i+1] );
    }
    
    OUTPUT_MUTE_ON = new InOutArray<DigitalInput>( 10, this );
    for( uint i = 0; i < 10; i++ )
    {
        OUTPUT_MUTE_ON[i+1] = new Crestron.Logos.SplusObjects.DigitalInput( OUTPUT_MUTE_ON__DigitalInput__ + i, OUTPUT_MUTE_ON__DigitalInput__, this );
        m_DigitalInputList.Add( OUTPUT_MUTE_ON__DigitalInput__ + i, OUTPUT_MUTE_ON[i+1] );
    }
    
    OUTPUT_MUTE_OFF = new InOutArray<DigitalInput>( 10, this );
    for( uint i = 0; i < 10; i++ )
    {
        OUTPUT_MUTE_OFF[i+1] = new Crestron.Logos.SplusObjects.DigitalInput( OUTPUT_MUTE_OFF__DigitalInput__ + i, OUTPUT_MUTE_OFF__DigitalInput__, this );
        m_DigitalInputList.Add( OUTPUT_MUTE_OFF__DigitalInput__ + i, OUTPUT_MUTE_OFF[i+1] );
    }
    
    AM_INPUT_MUTE_ON = new InOutArray<DigitalInput>( 8, this );
    for( uint i = 0; i < 8; i++ )
    {
        AM_INPUT_MUTE_ON[i+1] = new Crestron.Logos.SplusObjects.DigitalInput( AM_INPUT_MUTE_ON__DigitalInput__ + i, AM_INPUT_MUTE_ON__DigitalInput__, this );
        m_DigitalInputList.Add( AM_INPUT_MUTE_ON__DigitalInput__ + i, AM_INPUT_MUTE_ON[i+1] );
    }
    
    AM_INPUT_MUTE_OFF = new InOutArray<DigitalInput>( 8, this );
    for( uint i = 0; i < 8; i++ )
    {
        AM_INPUT_MUTE_OFF[i+1] = new Crestron.Logos.SplusObjects.DigitalInput( AM_INPUT_MUTE_OFF__DigitalInput__ + i, AM_INPUT_MUTE_OFF__DigitalInput__, this );
        m_DigitalInputList.Add( AM_INPUT_MUTE_OFF__DigitalInput__ + i, AM_INPUT_MUTE_OFF[i+1] );
    }
    
    AM_INPUT_AUTO_ON = new InOutArray<DigitalInput>( 8, this );
    for( uint i = 0; i < 8; i++ )
    {
        AM_INPUT_AUTO_ON[i+1] = new Crestron.Logos.SplusObjects.DigitalInput( AM_INPUT_AUTO_ON__DigitalInput__ + i, AM_INPUT_AUTO_ON__DigitalInput__, this );
        m_DigitalInputList.Add( AM_INPUT_AUTO_ON__DigitalInput__ + i, AM_INPUT_AUTO_ON[i+1] );
    }
    
    AM_INPUT_AUTO_OFF = new InOutArray<DigitalInput>( 8, this );
    for( uint i = 0; i < 8; i++ )
    {
        AM_INPUT_AUTO_OFF[i+1] = new Crestron.Logos.SplusObjects.DigitalInput( AM_INPUT_AUTO_OFF__DigitalInput__ + i, AM_INPUT_AUTO_OFF__DigitalInput__, this );
        m_DigitalInputList.Add( AM_INPUT_AUTO_OFF__DigitalInput__ + i, AM_INPUT_AUTO_OFF[i+1] );
    }
    
    INPUT_GAIN_UP = new InOutArray<DigitalInput>( 10, this );
    for( uint i = 0; i < 10; i++ )
    {
        INPUT_GAIN_UP[i+1] = new Crestron.Logos.SplusObjects.DigitalInput( INPUT_GAIN_UP__DigitalInput__ + i, INPUT_GAIN_UP__DigitalInput__, this );
        m_DigitalInputList.Add( INPUT_GAIN_UP__DigitalInput__ + i, INPUT_GAIN_UP[i+1] );
    }
    
    INPUT_GAIN_DOWN = new InOutArray<DigitalInput>( 10, this );
    for( uint i = 0; i < 10; i++ )
    {
        INPUT_GAIN_DOWN[i+1] = new Crestron.Logos.SplusObjects.DigitalInput( INPUT_GAIN_DOWN__DigitalInput__ + i, INPUT_GAIN_DOWN__DigitalInput__, this );
        m_DigitalInputList.Add( INPUT_GAIN_DOWN__DigitalInput__ + i, INPUT_GAIN_DOWN[i+1] );
    }
    
    OUTPUT_GAIN_UP = new InOutArray<DigitalInput>( 10, this );
    for( uint i = 0; i < 10; i++ )
    {
        OUTPUT_GAIN_UP[i+1] = new Crestron.Logos.SplusObjects.DigitalInput( OUTPUT_GAIN_UP__DigitalInput__ + i, OUTPUT_GAIN_UP__DigitalInput__, this );
        m_DigitalInputList.Add( OUTPUT_GAIN_UP__DigitalInput__ + i, OUTPUT_GAIN_UP[i+1] );
    }
    
    OUTPUT_GAIN_DOWN = new InOutArray<DigitalInput>( 10, this );
    for( uint i = 0; i < 10; i++ )
    {
        OUTPUT_GAIN_DOWN[i+1] = new Crestron.Logos.SplusObjects.DigitalInput( OUTPUT_GAIN_DOWN__DigitalInput__ + i, OUTPUT_GAIN_DOWN__DigitalInput__, this );
        m_DigitalInputList.Add( OUTPUT_GAIN_DOWN__DigitalInput__ + i, OUTPUT_GAIN_DOWN[i+1] );
    }
    
    AM_INPUT_GAIN_UP = new InOutArray<DigitalInput>( 9, this );
    for( uint i = 0; i < 9; i++ )
    {
        AM_INPUT_GAIN_UP[i+1] = new Crestron.Logos.SplusObjects.DigitalInput( AM_INPUT_GAIN_UP__DigitalInput__ + i, AM_INPUT_GAIN_UP__DigitalInput__, this );
        m_DigitalInputList.Add( AM_INPUT_GAIN_UP__DigitalInput__ + i, AM_INPUT_GAIN_UP[i+1] );
    }
    
    AM_INPUT_GAIN_DOWN = new InOutArray<DigitalInput>( 9, this );
    for( uint i = 0; i < 9; i++ )
    {
        AM_INPUT_GAIN_DOWN[i+1] = new Crestron.Logos.SplusObjects.DigitalInput( AM_INPUT_GAIN_DOWN__DigitalInput__ + i, AM_INPUT_GAIN_DOWN__DigitalInput__, this );
        m_DigitalInputList.Add( AM_INPUT_GAIN_DOWN__DigitalInput__ + i, AM_INPUT_GAIN_DOWN[i+1] );
    }
    
    POWER_ON_FB = new Crestron.Logos.SplusObjects.DigitalOutput( POWER_ON_FB__DigitalOutput__, this );
    m_DigitalOutputList.Add( POWER_ON_FB__DigitalOutput__, POWER_ON_FB );
    
    POWER_OFF_FB = new Crestron.Logos.SplusObjects.DigitalOutput( POWER_OFF_FB__DigitalOutput__, this );
    m_DigitalOutputList.Add( POWER_OFF_FB__DigitalOutput__, POWER_OFF_FB );
    
    SYSTEM_MUTE_ON_FB = new Crestron.Logos.SplusObjects.DigitalOutput( SYSTEM_MUTE_ON_FB__DigitalOutput__, this );
    m_DigitalOutputList.Add( SYSTEM_MUTE_ON_FB__DigitalOutput__, SYSTEM_MUTE_ON_FB );
    
    SYSTEM_MUTE_OFF_FB = new Crestron.Logos.SplusObjects.DigitalOutput( SYSTEM_MUTE_OFF_FB__DigitalOutput__, this );
    m_DigitalOutputList.Add( SYSTEM_MUTE_OFF_FB__DigitalOutput__, SYSTEM_MUTE_OFF_FB );
    
    INPUT_LOCK_ON_FB = new InOutArray<DigitalOutput>( 4, this );
    for( uint i = 0; i < 4; i++ )
    {
        INPUT_LOCK_ON_FB[i+1] = new Crestron.Logos.SplusObjects.DigitalOutput( INPUT_LOCK_ON_FB__DigitalOutput__ + i, this );
        m_DigitalOutputList.Add( INPUT_LOCK_ON_FB__DigitalOutput__ + i, INPUT_LOCK_ON_FB[i+1] );
    }
    
    INPUT_LOCK_OFF_FB = new InOutArray<DigitalOutput>( 4, this );
    for( uint i = 0; i < 4; i++ )
    {
        INPUT_LOCK_OFF_FB[i+1] = new Crestron.Logos.SplusObjects.DigitalOutput( INPUT_LOCK_OFF_FB__DigitalOutput__ + i, this );
        m_DigitalOutputList.Add( INPUT_LOCK_OFF_FB__DigitalOutput__ + i, INPUT_LOCK_OFF_FB[i+1] );
    }
    
    INPUT_PHPOW_ON_FB = new InOutArray<DigitalOutput>( 8, this );
    for( uint i = 0; i < 8; i++ )
    {
        INPUT_PHPOW_ON_FB[i+1] = new Crestron.Logos.SplusObjects.DigitalOutput( INPUT_PHPOW_ON_FB__DigitalOutput__ + i, this );
        m_DigitalOutputList.Add( INPUT_PHPOW_ON_FB__DigitalOutput__ + i, INPUT_PHPOW_ON_FB[i+1] );
    }
    
    INPUT_PHPOW_OFF_FB = new InOutArray<DigitalOutput>( 8, this );
    for( uint i = 0; i < 8; i++ )
    {
        INPUT_PHPOW_OFF_FB[i+1] = new Crestron.Logos.SplusObjects.DigitalOutput( INPUT_PHPOW_OFF_FB__DigitalOutput__ + i, this );
        m_DigitalOutputList.Add( INPUT_PHPOW_OFF_FB__DigitalOutput__ + i, INPUT_PHPOW_OFF_FB[i+1] );
    }
    
    INPUT_INVERT_ON_FB = new InOutArray<DigitalOutput>( 8, this );
    for( uint i = 0; i < 8; i++ )
    {
        INPUT_INVERT_ON_FB[i+1] = new Crestron.Logos.SplusObjects.DigitalOutput( INPUT_INVERT_ON_FB__DigitalOutput__ + i, this );
        m_DigitalOutputList.Add( INPUT_INVERT_ON_FB__DigitalOutput__ + i, INPUT_INVERT_ON_FB[i+1] );
    }
    
    INPUT_INVERT_OFF_FB = new InOutArray<DigitalOutput>( 8, this );
    for( uint i = 0; i < 8; i++ )
    {
        INPUT_INVERT_OFF_FB[i+1] = new Crestron.Logos.SplusObjects.DigitalOutput( INPUT_INVERT_OFF_FB__DigitalOutput__ + i, this );
        m_DigitalOutputList.Add( INPUT_INVERT_OFF_FB__DigitalOutput__ + i, INPUT_INVERT_OFF_FB[i+1] );
    }
    
    INPUT_MUTE_ON_FB = new InOutArray<DigitalOutput>( 10, this );
    for( uint i = 0; i < 10; i++ )
    {
        INPUT_MUTE_ON_FB[i+1] = new Crestron.Logos.SplusObjects.DigitalOutput( INPUT_MUTE_ON_FB__DigitalOutput__ + i, this );
        m_DigitalOutputList.Add( INPUT_MUTE_ON_FB__DigitalOutput__ + i, INPUT_MUTE_ON_FB[i+1] );
    }
    
    INPUT_MUTE_OFF_FB = new InOutArray<DigitalOutput>( 10, this );
    for( uint i = 0; i < 10; i++ )
    {
        INPUT_MUTE_OFF_FB[i+1] = new Crestron.Logos.SplusObjects.DigitalOutput( INPUT_MUTE_OFF_FB__DigitalOutput__ + i, this );
        m_DigitalOutputList.Add( INPUT_MUTE_OFF_FB__DigitalOutput__ + i, INPUT_MUTE_OFF_FB[i+1] );
    }
    
    OUTPUT_LOCK_ON_FB = new InOutArray<DigitalOutput>( 4, this );
    for( uint i = 0; i < 4; i++ )
    {
        OUTPUT_LOCK_ON_FB[i+1] = new Crestron.Logos.SplusObjects.DigitalOutput( OUTPUT_LOCK_ON_FB__DigitalOutput__ + i, this );
        m_DigitalOutputList.Add( OUTPUT_LOCK_ON_FB__DigitalOutput__ + i, OUTPUT_LOCK_ON_FB[i+1] );
    }
    
    OUTPUT_LOCK_OFF_FB = new InOutArray<DigitalOutput>( 4, this );
    for( uint i = 0; i < 4; i++ )
    {
        OUTPUT_LOCK_OFF_FB[i+1] = new Crestron.Logos.SplusObjects.DigitalOutput( OUTPUT_LOCK_OFF_FB__DigitalOutput__ + i, this );
        m_DigitalOutputList.Add( OUTPUT_LOCK_OFF_FB__DigitalOutput__ + i, OUTPUT_LOCK_OFF_FB[i+1] );
    }
    
    OUTPUT_INVERT_ON_FB = new InOutArray<DigitalOutput>( 8, this );
    for( uint i = 0; i < 8; i++ )
    {
        OUTPUT_INVERT_ON_FB[i+1] = new Crestron.Logos.SplusObjects.DigitalOutput( OUTPUT_INVERT_ON_FB__DigitalOutput__ + i, this );
        m_DigitalOutputList.Add( OUTPUT_INVERT_ON_FB__DigitalOutput__ + i, OUTPUT_INVERT_ON_FB[i+1] );
    }
    
    OUTPUT_INVERT_OFF_FB = new InOutArray<DigitalOutput>( 8, this );
    for( uint i = 0; i < 8; i++ )
    {
        OUTPUT_INVERT_OFF_FB[i+1] = new Crestron.Logos.SplusObjects.DigitalOutput( OUTPUT_INVERT_OFF_FB__DigitalOutput__ + i, this );
        m_DigitalOutputList.Add( OUTPUT_INVERT_OFF_FB__DigitalOutput__ + i, OUTPUT_INVERT_OFF_FB[i+1] );
    }
    
    OUTPUT_MUTE_ON_FB = new InOutArray<DigitalOutput>( 10, this );
    for( uint i = 0; i < 10; i++ )
    {
        OUTPUT_MUTE_ON_FB[i+1] = new Crestron.Logos.SplusObjects.DigitalOutput( OUTPUT_MUTE_ON_FB__DigitalOutput__ + i, this );
        m_DigitalOutputList.Add( OUTPUT_MUTE_ON_FB__DigitalOutput__ + i, OUTPUT_MUTE_ON_FB[i+1] );
    }
    
    OUTPUT_MUTE_OFF_FB = new InOutArray<DigitalOutput>( 10, this );
    for( uint i = 0; i < 10; i++ )
    {
        OUTPUT_MUTE_OFF_FB[i+1] = new Crestron.Logos.SplusObjects.DigitalOutput( OUTPUT_MUTE_OFF_FB__DigitalOutput__ + i, this );
        m_DigitalOutputList.Add( OUTPUT_MUTE_OFF_FB__DigitalOutput__ + i, OUTPUT_MUTE_OFF_FB[i+1] );
    }
    
    AM_INPUT_MUTE_ON_FB = new InOutArray<DigitalOutput>( 8, this );
    for( uint i = 0; i < 8; i++ )
    {
        AM_INPUT_MUTE_ON_FB[i+1] = new Crestron.Logos.SplusObjects.DigitalOutput( AM_INPUT_MUTE_ON_FB__DigitalOutput__ + i, this );
        m_DigitalOutputList.Add( AM_INPUT_MUTE_ON_FB__DigitalOutput__ + i, AM_INPUT_MUTE_ON_FB[i+1] );
    }
    
    AM_INPUT_MUTE_OFF_FB = new InOutArray<DigitalOutput>( 8, this );
    for( uint i = 0; i < 8; i++ )
    {
        AM_INPUT_MUTE_OFF_FB[i+1] = new Crestron.Logos.SplusObjects.DigitalOutput( AM_INPUT_MUTE_OFF_FB__DigitalOutput__ + i, this );
        m_DigitalOutputList.Add( AM_INPUT_MUTE_OFF_FB__DigitalOutput__ + i, AM_INPUT_MUTE_OFF_FB[i+1] );
    }
    
    AM_INPUT_AUTO_ON_FB = new InOutArray<DigitalOutput>( 8, this );
    for( uint i = 0; i < 8; i++ )
    {
        AM_INPUT_AUTO_ON_FB[i+1] = new Crestron.Logos.SplusObjects.DigitalOutput( AM_INPUT_AUTO_ON_FB__DigitalOutput__ + i, this );
        m_DigitalOutputList.Add( AM_INPUT_AUTO_ON_FB__DigitalOutput__ + i, AM_INPUT_AUTO_ON_FB[i+1] );
    }
    
    AM_INPUT_AUTO_OFF_FB = new InOutArray<DigitalOutput>( 8, this );
    for( uint i = 0; i < 8; i++ )
    {
        AM_INPUT_AUTO_OFF_FB[i+1] = new Crestron.Logos.SplusObjects.DigitalOutput( AM_INPUT_AUTO_OFF_FB__DigitalOutput__ + i, this );
        m_DigitalOutputList.Add( AM_INPUT_AUTO_OFF_FB__DigitalOutput__ + i, AM_INPUT_AUTO_OFF_FB[i+1] );
    }
    
    OUTPUT1_FROM_INPUT_FB = new InOutArray<DigitalOutput>( 12, this );
    for( uint i = 0; i < 12; i++ )
    {
        OUTPUT1_FROM_INPUT_FB[i+1] = new Crestron.Logos.SplusObjects.DigitalOutput( OUTPUT1_FROM_INPUT_FB__DigitalOutput__ + i, this );
        m_DigitalOutputList.Add( OUTPUT1_FROM_INPUT_FB__DigitalOutput__ + i, OUTPUT1_FROM_INPUT_FB[i+1] );
    }
    
    OUTPUT2_FROM_INPUT_FB = new InOutArray<DigitalOutput>( 12, this );
    for( uint i = 0; i < 12; i++ )
    {
        OUTPUT2_FROM_INPUT_FB[i+1] = new Crestron.Logos.SplusObjects.DigitalOutput( OUTPUT2_FROM_INPUT_FB__DigitalOutput__ + i, this );
        m_DigitalOutputList.Add( OUTPUT2_FROM_INPUT_FB__DigitalOutput__ + i, OUTPUT2_FROM_INPUT_FB[i+1] );
    }
    
    OUTPUT3_FROM_INPUT_FB = new InOutArray<DigitalOutput>( 12, this );
    for( uint i = 0; i < 12; i++ )
    {
        OUTPUT3_FROM_INPUT_FB[i+1] = new Crestron.Logos.SplusObjects.DigitalOutput( OUTPUT3_FROM_INPUT_FB__DigitalOutput__ + i, this );
        m_DigitalOutputList.Add( OUTPUT3_FROM_INPUT_FB__DigitalOutput__ + i, OUTPUT3_FROM_INPUT_FB[i+1] );
    }
    
    OUTPUT4_FROM_INPUT_FB = new InOutArray<DigitalOutput>( 12, this );
    for( uint i = 0; i < 12; i++ )
    {
        OUTPUT4_FROM_INPUT_FB[i+1] = new Crestron.Logos.SplusObjects.DigitalOutput( OUTPUT4_FROM_INPUT_FB__DigitalOutput__ + i, this );
        m_DigitalOutputList.Add( OUTPUT4_FROM_INPUT_FB__DigitalOutput__ + i, OUTPUT4_FROM_INPUT_FB[i+1] );
    }
    
    OUTPUT5_FROM_INPUT_FB = new InOutArray<DigitalOutput>( 12, this );
    for( uint i = 0; i < 12; i++ )
    {
        OUTPUT5_FROM_INPUT_FB[i+1] = new Crestron.Logos.SplusObjects.DigitalOutput( OUTPUT5_FROM_INPUT_FB__DigitalOutput__ + i, this );
        m_DigitalOutputList.Add( OUTPUT5_FROM_INPUT_FB__DigitalOutput__ + i, OUTPUT5_FROM_INPUT_FB[i+1] );
    }
    
    OUTPUT6_FROM_INPUT_FB = new InOutArray<DigitalOutput>( 12, this );
    for( uint i = 0; i < 12; i++ )
    {
        OUTPUT6_FROM_INPUT_FB[i+1] = new Crestron.Logos.SplusObjects.DigitalOutput( OUTPUT6_FROM_INPUT_FB__DigitalOutput__ + i, this );
        m_DigitalOutputList.Add( OUTPUT6_FROM_INPUT_FB__DigitalOutput__ + i, OUTPUT6_FROM_INPUT_FB[i+1] );
    }
    
    OUTPUT7_FROM_INPUT_FB = new InOutArray<DigitalOutput>( 12, this );
    for( uint i = 0; i < 12; i++ )
    {
        OUTPUT7_FROM_INPUT_FB[i+1] = new Crestron.Logos.SplusObjects.DigitalOutput( OUTPUT7_FROM_INPUT_FB__DigitalOutput__ + i, this );
        m_DigitalOutputList.Add( OUTPUT7_FROM_INPUT_FB__DigitalOutput__ + i, OUTPUT7_FROM_INPUT_FB[i+1] );
    }
    
    OUTPUT8_FROM_INPUT_FB = new InOutArray<DigitalOutput>( 12, this );
    for( uint i = 0; i < 12; i++ )
    {
        OUTPUT8_FROM_INPUT_FB[i+1] = new Crestron.Logos.SplusObjects.DigitalOutput( OUTPUT8_FROM_INPUT_FB__DigitalOutput__ + i, this );
        m_DigitalOutputList.Add( OUTPUT8_FROM_INPUT_FB__DigitalOutput__ + i, OUTPUT8_FROM_INPUT_FB[i+1] );
    }
    
    PRESET_SAVE = new Crestron.Logos.SplusObjects.AnalogInput( PRESET_SAVE__AnalogSerialInput__, this );
    m_AnalogInputList.Add( PRESET_SAVE__AnalogSerialInput__, PRESET_SAVE );
    
    PRESET_RECALL = new Crestron.Logos.SplusObjects.AnalogInput( PRESET_RECALL__AnalogSerialInput__, this );
    m_AnalogInputList.Add( PRESET_RECALL__AnalogSerialInput__, PRESET_RECALL );
    
    PRESET_CLEAR = new Crestron.Logos.SplusObjects.AnalogInput( PRESET_CLEAR__AnalogSerialInput__, this );
    m_AnalogInputList.Add( PRESET_CLEAR__AnalogSerialInput__, PRESET_CLEAR );
    
    ALL_INPUT_LEVEL = new Crestron.Logos.SplusObjects.AnalogInput( ALL_INPUT_LEVEL__AnalogSerialInput__, this );
    m_AnalogInputList.Add( ALL_INPUT_LEVEL__AnalogSerialInput__, ALL_INPUT_LEVEL );
    
    ALL_INPUT_GAIN = new Crestron.Logos.SplusObjects.AnalogInput( ALL_INPUT_GAIN__AnalogSerialInput__, this );
    m_AnalogInputList.Add( ALL_INPUT_GAIN__AnalogSerialInput__, ALL_INPUT_GAIN );
    
    ALL_OUTPUT_LEVEL = new Crestron.Logos.SplusObjects.AnalogInput( ALL_OUTPUT_LEVEL__AnalogSerialInput__, this );
    m_AnalogInputList.Add( ALL_OUTPUT_LEVEL__AnalogSerialInput__, ALL_OUTPUT_LEVEL );
    
    ALL_OUTPUT_GAIN = new Crestron.Logos.SplusObjects.AnalogInput( ALL_OUTPUT_GAIN__AnalogSerialInput__, this );
    m_AnalogInputList.Add( ALL_OUTPUT_GAIN__AnalogSerialInput__, ALL_OUTPUT_GAIN );
    
    ALL_AM_INPUT_GAIN = new Crestron.Logos.SplusObjects.AnalogInput( ALL_AM_INPUT_GAIN__AnalogSerialInput__, this );
    m_AnalogInputList.Add( ALL_AM_INPUT_GAIN__AnalogSerialInput__, ALL_AM_INPUT_GAIN );
    
    ALL_AM_INPUT_PRIORITY = new Crestron.Logos.SplusObjects.AnalogInput( ALL_AM_INPUT_PRIORITY__AnalogSerialInput__, this );
    m_AnalogInputList.Add( ALL_AM_INPUT_PRIORITY__AnalogSerialInput__, ALL_AM_INPUT_PRIORITY );
    
    ALL_OUTPUT_FROM_INPUT = new Crestron.Logos.SplusObjects.AnalogInput( ALL_OUTPUT_FROM_INPUT__AnalogSerialInput__, this );
    m_AnalogInputList.Add( ALL_OUTPUT_FROM_INPUT__AnalogSerialInput__, ALL_OUTPUT_FROM_INPUT );
    
    ALL_OUTPUT_REMOVE_INPUT = new Crestron.Logos.SplusObjects.AnalogInput( ALL_OUTPUT_REMOVE_INPUT__AnalogSerialInput__, this );
    m_AnalogInputList.Add( ALL_OUTPUT_REMOVE_INPUT__AnalogSerialInput__, ALL_OUTPUT_REMOVE_INPUT );
    
    INPUT_LEVEL = new InOutArray<AnalogInput>( 8, this );
    for( uint i = 0; i < 8; i++ )
    {
        INPUT_LEVEL[i+1] = new Crestron.Logos.SplusObjects.AnalogInput( INPUT_LEVEL__AnalogSerialInput__ + i, INPUT_LEVEL__AnalogSerialInput__, this );
        m_AnalogInputList.Add( INPUT_LEVEL__AnalogSerialInput__ + i, INPUT_LEVEL[i+1] );
    }
    
    INPUT_GAIN = new InOutArray<AnalogInput>( 10, this );
    for( uint i = 0; i < 10; i++ )
    {
        INPUT_GAIN[i+1] = new Crestron.Logos.SplusObjects.AnalogInput( INPUT_GAIN__AnalogSerialInput__ + i, INPUT_GAIN__AnalogSerialInput__, this );
        m_AnalogInputList.Add( INPUT_GAIN__AnalogSerialInput__ + i, INPUT_GAIN[i+1] );
    }
    
    OUTPUT_LEVEL = new InOutArray<AnalogInput>( 8, this );
    for( uint i = 0; i < 8; i++ )
    {
        OUTPUT_LEVEL[i+1] = new Crestron.Logos.SplusObjects.AnalogInput( OUTPUT_LEVEL__AnalogSerialInput__ + i, OUTPUT_LEVEL__AnalogSerialInput__, this );
        m_AnalogInputList.Add( OUTPUT_LEVEL__AnalogSerialInput__ + i, OUTPUT_LEVEL[i+1] );
    }
    
    OUTPUT_GAIN = new InOutArray<AnalogInput>( 10, this );
    for( uint i = 0; i < 10; i++ )
    {
        OUTPUT_GAIN[i+1] = new Crestron.Logos.SplusObjects.AnalogInput( OUTPUT_GAIN__AnalogSerialInput__ + i, OUTPUT_GAIN__AnalogSerialInput__, this );
        m_AnalogInputList.Add( OUTPUT_GAIN__AnalogSerialInput__ + i, OUTPUT_GAIN[i+1] );
    }
    
    AM_INPUT_GAIN = new InOutArray<AnalogInput>( 9, this );
    for( uint i = 0; i < 9; i++ )
    {
        AM_INPUT_GAIN[i+1] = new Crestron.Logos.SplusObjects.AnalogInput( AM_INPUT_GAIN__AnalogSerialInput__ + i, AM_INPUT_GAIN__AnalogSerialInput__, this );
        m_AnalogInputList.Add( AM_INPUT_GAIN__AnalogSerialInput__ + i, AM_INPUT_GAIN[i+1] );
    }
    
    AM_INPUT_PRIORITY = new InOutArray<AnalogInput>( 8, this );
    for( uint i = 0; i < 8; i++ )
    {
        AM_INPUT_PRIORITY[i+1] = new Crestron.Logos.SplusObjects.AnalogInput( AM_INPUT_PRIORITY__AnalogSerialInput__ + i, AM_INPUT_PRIORITY__AnalogSerialInput__, this );
        m_AnalogInputList.Add( AM_INPUT_PRIORITY__AnalogSerialInput__ + i, AM_INPUT_PRIORITY[i+1] );
    }
    
    OUTPUT_FROM_INPUT = new InOutArray<AnalogInput>( 8, this );
    for( uint i = 0; i < 8; i++ )
    {
        OUTPUT_FROM_INPUT[i+1] = new Crestron.Logos.SplusObjects.AnalogInput( OUTPUT_FROM_INPUT__AnalogSerialInput__ + i, OUTPUT_FROM_INPUT__AnalogSerialInput__, this );
        m_AnalogInputList.Add( OUTPUT_FROM_INPUT__AnalogSerialInput__ + i, OUTPUT_FROM_INPUT[i+1] );
    }
    
    OUTPUT_REMOVE_INPUT = new InOutArray<AnalogInput>( 8, this );
    for( uint i = 0; i < 8; i++ )
    {
        OUTPUT_REMOVE_INPUT[i+1] = new Crestron.Logos.SplusObjects.AnalogInput( OUTPUT_REMOVE_INPUT__AnalogSerialInput__ + i, OUTPUT_REMOVE_INPUT__AnalogSerialInput__, this );
        m_AnalogInputList.Add( OUTPUT_REMOVE_INPUT__AnalogSerialInput__ + i, OUTPUT_REMOVE_INPUT[i+1] );
    }
    
    INPUT_LEVEL_FB = new InOutArray<AnalogOutput>( 8, this );
    for( uint i = 0; i < 8; i++ )
    {
        INPUT_LEVEL_FB[i+1] = new Crestron.Logos.SplusObjects.AnalogOutput( INPUT_LEVEL_FB__AnalogSerialOutput__ + i, this );
        m_AnalogOutputList.Add( INPUT_LEVEL_FB__AnalogSerialOutput__ + i, INPUT_LEVEL_FB[i+1] );
    }
    
    INPUT_GAIN_FB = new InOutArray<AnalogOutput>( 10, this );
    for( uint i = 0; i < 10; i++ )
    {
        INPUT_GAIN_FB[i+1] = new Crestron.Logos.SplusObjects.AnalogOutput( INPUT_GAIN_FB__AnalogSerialOutput__ + i, this );
        m_AnalogOutputList.Add( INPUT_GAIN_FB__AnalogSerialOutput__ + i, INPUT_GAIN_FB[i+1] );
    }
    
    OUTPUT_LEVEL_FB = new InOutArray<AnalogOutput>( 8, this );
    for( uint i = 0; i < 8; i++ )
    {
        OUTPUT_LEVEL_FB[i+1] = new Crestron.Logos.SplusObjects.AnalogOutput( OUTPUT_LEVEL_FB__AnalogSerialOutput__ + i, this );
        m_AnalogOutputList.Add( OUTPUT_LEVEL_FB__AnalogSerialOutput__ + i, OUTPUT_LEVEL_FB[i+1] );
    }
    
    OUTPUT_GAIN_FB = new InOutArray<AnalogOutput>( 10, this );
    for( uint i = 0; i < 10; i++ )
    {
        OUTPUT_GAIN_FB[i+1] = new Crestron.Logos.SplusObjects.AnalogOutput( OUTPUT_GAIN_FB__AnalogSerialOutput__ + i, this );
        m_AnalogOutputList.Add( OUTPUT_GAIN_FB__AnalogSerialOutput__ + i, OUTPUT_GAIN_FB[i+1] );
    }
    
    AM_INPUT_GAIN_FB = new InOutArray<AnalogOutput>( 9, this );
    for( uint i = 0; i < 9; i++ )
    {
        AM_INPUT_GAIN_FB[i+1] = new Crestron.Logos.SplusObjects.AnalogOutput( AM_INPUT_GAIN_FB__AnalogSerialOutput__ + i, this );
        m_AnalogOutputList.Add( AM_INPUT_GAIN_FB__AnalogSerialOutput__ + i, AM_INPUT_GAIN_FB[i+1] );
    }
    
    AM_INPUT_PRIORITY_FB = new InOutArray<AnalogOutput>( 8, this );
    for( uint i = 0; i < 8; i++ )
    {
        AM_INPUT_PRIORITY_FB[i+1] = new Crestron.Logos.SplusObjects.AnalogOutput( AM_INPUT_PRIORITY_FB__AnalogSerialOutput__ + i, this );
        m_AnalogOutputList.Add( AM_INPUT_PRIORITY_FB__AnalogSerialOutput__ + i, AM_INPUT_PRIORITY_FB[i+1] );
    }
    
    PRESET_NAME = new InOutArray<StringInput>( 5, this );
    for( uint i = 0; i < 5; i++ )
    {
        PRESET_NAME[i+1] = new Crestron.Logos.SplusObjects.StringInput( PRESET_NAME__AnalogSerialInput__ + i, PRESET_NAME__AnalogSerialInput__, 16, this );
        m_StringInputList.Add( PRESET_NAME__AnalogSerialInput__ + i, PRESET_NAME[i+1] );
    }
    
    TO_DEVICE = new Crestron.Logos.SplusObjects.StringOutput( TO_DEVICE__AnalogSerialOutput__, this );
    m_StringOutputList.Add( TO_DEVICE__AnalogSerialOutput__, TO_DEVICE );
    
    FROM_DEVICE = new Crestron.Logos.SplusObjects.BufferInput( FROM_DEVICE__AnalogSerialInput__, 1024, this );
    m_StringInputList.Add( FROM_DEVICE__AnalogSerialInput__, FROM_DEVICE );
    
    DEBUGMODE = new UShortParameter( DEBUGMODE__Parameter__, this );
    m_ParameterList.Add( DEBUGMODE__Parameter__, DEBUGMODE );
    
    GAIN_UPPER_LIMIT = new ShortParameter( GAIN_UPPER_LIMIT__Parameter__, this );
    m_ParameterList.Add( GAIN_UPPER_LIMIT__Parameter__, GAIN_UPPER_LIMIT );
    
    GAIN_LOWER_LIMIT = new ShortParameter( GAIN_LOWER_LIMIT__Parameter__, this );
    m_ParameterList.Add( GAIN_LOWER_LIMIT__Parameter__, GAIN_LOWER_LIMIT );
    
    ALL_OUTPUT_FROM_INPUT_LEVEL = new ShortParameter( ALL_OUTPUT_FROM_INPUT_LEVEL__Parameter__, this );
    m_ParameterList.Add( ALL_OUTPUT_FROM_INPUT_LEVEL__Parameter__, ALL_OUTPUT_FROM_INPUT_LEVEL );
    
    OUTPUT_FROM_INPUT_LEVEL = new InOutArray<ShortParameter>( 8, this );;
    for( uint i = 0; i < 8; i++ )
    {
        OUTPUT_FROM_INPUT_LEVEL[i+1] = new ShortParameter( OUTPUT_FROM_INPUT_LEVEL__Parameter__ + i, OUTPUT_FROM_INPUT_LEVEL__Parameter__, this );
        m_ParameterList.Add( OUTPUT_FROM_INPUT_LEVEL__Parameter__ + i, OUTPUT_FROM_INPUT_LEVEL[i+1] );
    }
    
    INPUT_GAIN_STEP = new StringParameter( INPUT_GAIN_STEP__Parameter__, this );
    m_ParameterList.Add( INPUT_GAIN_STEP__Parameter__, INPUT_GAIN_STEP );
    
    OUTPUT_GAIN_STEP = new StringParameter( OUTPUT_GAIN_STEP__Parameter__, this );
    m_ParameterList.Add( OUTPUT_GAIN_STEP__Parameter__, OUTPUT_GAIN_STEP );
    
    AM_INPUT_GAIN_STEP = new StringParameter( AM_INPUT_GAIN_STEP__Parameter__, this );
    m_ParameterList.Add( AM_INPUT_GAIN_STEP__Parameter__, AM_INPUT_GAIN_STEP );
    
    
    POWER_ON.OnDigitalPush.Add( new InputChangeHandlerWrapper( POWER_ON_OnPush_0, false ) );
    POWER_OFF.OnDigitalPush.Add( new InputChangeHandlerWrapper( POWER_OFF_OnPush_1, false ) );
    SYSTEM_MUTE_ON.OnDigitalPush.Add( new InputChangeHandlerWrapper( SYSTEM_MUTE_ON_OnPush_2, false ) );
    SYSTEM_MUTE_OFF.OnDigitalPush.Add( new InputChangeHandlerWrapper( SYSTEM_MUTE_OFF_OnPush_3, false ) );
    REBOOT.OnDigitalPush.Add( new InputChangeHandlerWrapper( REBOOT_OnPush_4, false ) );
    ALL_IN_LOCK_ON.OnDigitalPush.Add( new InputChangeHandlerWrapper( ALL_IN_LOCK_ON_OnPush_5, false ) );
    ALL_IN_LOCK_OFF.OnDigitalPush.Add( new InputChangeHandlerWrapper( ALL_IN_LOCK_OFF_OnPush_6, false ) );
    ALL_INPUT_PHPOW_ON.OnDigitalPush.Add( new InputChangeHandlerWrapper( ALL_INPUT_PHPOW_ON_OnPush_7, false ) );
    ALL_INPUT_PHPOW_OFF.OnDigitalPush.Add( new InputChangeHandlerWrapper( ALL_INPUT_PHPOW_OFF_OnPush_8, false ) );
    ALL_INPUT_MUTE_ON.OnDigitalPush.Add( new InputChangeHandlerWrapper( ALL_INPUT_MUTE_ON_OnPush_9, false ) );
    ALL_INPUT_MUTE_OFF.OnDigitalPush.Add( new InputChangeHandlerWrapper( ALL_INPUT_MUTE_OFF_OnPush_10, false ) );
    ALL_INPUT_GAIN_UP.OnDigitalPush.Add( new InputChangeHandlerWrapper( ALL_INPUT_GAIN_UP_OnPush_11, false ) );
    ALL_INPUT_GAIN_DOWN.OnDigitalPush.Add( new InputChangeHandlerWrapper( ALL_INPUT_GAIN_DOWN_OnPush_12, false ) );
    ALL_INPUT_INVERT_ON.OnDigitalPush.Add( new InputChangeHandlerWrapper( ALL_INPUT_INVERT_ON_OnPush_13, false ) );
    ALL_INPUT_INVERT_OFF.OnDigitalPush.Add( new InputChangeHandlerWrapper( ALL_INPUT_INVERT_OFF_OnPush_14, false ) );
    ALL_OUTPUT_LOCK_ON.OnDigitalPush.Add( new InputChangeHandlerWrapper( ALL_OUTPUT_LOCK_ON_OnPush_15, false ) );
    ALL_OUTPUT_LOCK_OFF.OnDigitalPush.Add( new InputChangeHandlerWrapper( ALL_OUTPUT_LOCK_OFF_OnPush_16, false ) );
    ALL_OUTPUT_GAIN_UP.OnDigitalPush.Add( new InputChangeHandlerWrapper( ALL_OUTPUT_GAIN_UP_OnPush_17, false ) );
    ALL_OUTPUT_GAIN_DOWN.OnDigitalPush.Add( new InputChangeHandlerWrapper( ALL_OUTPUT_GAIN_DOWN_OnPush_18, false ) );
    ALL_OUTPUT_INVERT_ON.OnDigitalPush.Add( new InputChangeHandlerWrapper( ALL_OUTPUT_INVERT_ON_OnPush_19, false ) );
    ALL_OUTPUT_INVERT_OFF.OnDigitalPush.Add( new InputChangeHandlerWrapper( ALL_OUTPUT_INVERT_OFF_OnPush_20, false ) );
    ALL_OUTPUT_MUTE_ON.OnDigitalPush.Add( new InputChangeHandlerWrapper( ALL_OUTPUT_MUTE_ON_OnPush_21, false ) );
    ALL_OUTPUT_MUTE_OFF.OnDigitalPush.Add( new InputChangeHandlerWrapper( ALL_OUTPUT_MUTE_OFF_OnPush_22, false ) );
    ALL_AM_INPUT_MUTE_ON.OnDigitalPush.Add( new InputChangeHandlerWrapper( ALL_AM_INPUT_MUTE_ON_OnPush_23, false ) );
    ALL_AM_INPUT_MUTE_OFF.OnDigitalPush.Add( new InputChangeHandlerWrapper( ALL_AM_INPUT_MUTE_OFF_OnPush_24, false ) );
    ALL_AM_INPUT_GAIN_UP.OnDigitalPush.Add( new InputChangeHandlerWrapper( ALL_AM_INPUT_GAIN_UP_OnPush_25, false ) );
    ALL_AM_INPUT_GAIN_DOWN.OnDigitalPush.Add( new InputChangeHandlerWrapper( ALL_AM_INPUT_GAIN_DOWN_OnPush_26, false ) );
    ALL_AM_INPUT_AUTO_ON.OnDigitalPush.Add( new InputChangeHandlerWrapper( ALL_AM_INPUT_AUTO_ON_OnPush_27, false ) );
    ALL_AM_INPUT_AUTO_OFF.OnDigitalPush.Add( new InputChangeHandlerWrapper( ALL_AM_INPUT_AUTO_OFF_OnPush_28, false ) );
    for( uint i = 0; i < 4; i++ )
        INPUT_LOCK_ON[i+1].OnDigitalPush.Add( new InputChangeHandlerWrapper( INPUT_LOCK_ON_OnPush_29, false ) );
        
    for( uint i = 0; i < 4; i++ )
        INPUT_LOCK_OFF[i+1].OnDigitalPush.Add( new InputChangeHandlerWrapper( INPUT_LOCK_OFF_OnPush_30, false ) );
        
    for( uint i = 0; i < 8; i++ )
        INPUT_PHPOW_ON[i+1].OnDigitalPush.Add( new InputChangeHandlerWrapper( INPUT_PHPOW_ON_OnPush_31, false ) );
        
    for( uint i = 0; i < 8; i++ )
        INPUT_PHPOW_OFF[i+1].OnDigitalPush.Add( new InputChangeHandlerWrapper( INPUT_PHPOW_OFF_OnPush_32, false ) );
        
    for( uint i = 0; i < 10; i++ )
        INPUT_GAIN_UP[i+1].OnDigitalPush.Add( new InputChangeHandlerWrapper( INPUT_GAIN_UP_OnPush_33, false ) );
        
    for( uint i = 0; i < 10; i++ )
        INPUT_GAIN_DOWN[i+1].OnDigitalPush.Add( new InputChangeHandlerWrapper( INPUT_GAIN_DOWN_OnPush_34, false ) );
        
    for( uint i = 0; i < 8; i++ )
        INPUT_INVERT_ON[i+1].OnDigitalPush.Add( new InputChangeHandlerWrapper( INPUT_INVERT_ON_OnPush_35, false ) );
        
    for( uint i = 0; i < 8; i++ )
        INPUT_INVERT_OFF[i+1].OnDigitalPush.Add( new InputChangeHandlerWrapper( INPUT_INVERT_OFF_OnPush_36, false ) );
        
    for( uint i = 0; i < 10; i++ )
        INPUT_MUTE_ON[i+1].OnDigitalPush.Add( new InputChangeHandlerWrapper( INPUT_MUTE_ON_OnPush_37, false ) );
        
    for( uint i = 0; i < 10; i++ )
        INPUT_MUTE_OFF[i+1].OnDigitalPush.Add( new InputChangeHandlerWrapper( INPUT_MUTE_OFF_OnPush_38, false ) );
        
    for( uint i = 0; i < 4; i++ )
        OUTPUT_LOCK_ON[i+1].OnDigitalPush.Add( new InputChangeHandlerWrapper( OUTPUT_LOCK_ON_OnPush_39, false ) );
        
    for( uint i = 0; i < 4; i++ )
        OUTPUT_LOCK_OFF[i+1].OnDigitalPush.Add( new InputChangeHandlerWrapper( OUTPUT_LOCK_OFF_OnPush_40, false ) );
        
    for( uint i = 0; i < 10; i++ )
        OUTPUT_GAIN_UP[i+1].OnDigitalPush.Add( new InputChangeHandlerWrapper( OUTPUT_GAIN_UP_OnPush_41, false ) );
        
    for( uint i = 0; i < 10; i++ )
        OUTPUT_GAIN_DOWN[i+1].OnDigitalPush.Add( new InputChangeHandlerWrapper( OUTPUT_GAIN_DOWN_OnPush_42, false ) );
        
    for( uint i = 0; i < 8; i++ )
        OUTPUT_INVERT_ON[i+1].OnDigitalPush.Add( new InputChangeHandlerWrapper( OUTPUT_INVERT_ON_OnPush_43, false ) );
        
    for( uint i = 0; i < 8; i++ )
        OUTPUT_INVERT_OFF[i+1].OnDigitalPush.Add( new InputChangeHandlerWrapper( OUTPUT_INVERT_OFF_OnPush_44, false ) );
        
    for( uint i = 0; i < 10; i++ )
        OUTPUT_MUTE_ON[i+1].OnDigitalPush.Add( new InputChangeHandlerWrapper( OUTPUT_MUTE_ON_OnPush_45, false ) );
        
    for( uint i = 0; i < 10; i++ )
        OUTPUT_MUTE_OFF[i+1].OnDigitalPush.Add( new InputChangeHandlerWrapper( OUTPUT_MUTE_OFF_OnPush_46, false ) );
        
    for( uint i = 0; i < 9; i++ )
        AM_INPUT_GAIN_UP[i+1].OnDigitalPush.Add( new InputChangeHandlerWrapper( AM_INPUT_GAIN_UP_OnPush_47, false ) );
        
    for( uint i = 0; i < 9; i++ )
        AM_INPUT_GAIN_DOWN[i+1].OnDigitalPush.Add( new InputChangeHandlerWrapper( AM_INPUT_GAIN_DOWN_OnPush_48, false ) );
        
    for( uint i = 0; i < 8; i++ )
        AM_INPUT_MUTE_ON[i+1].OnDigitalPush.Add( new InputChangeHandlerWrapper( AM_INPUT_MUTE_ON_OnPush_49, false ) );
        
    for( uint i = 0; i < 8; i++ )
        AM_INPUT_MUTE_OFF[i+1].OnDigitalPush.Add( new InputChangeHandlerWrapper( AM_INPUT_MUTE_OFF_OnPush_50, false ) );
        
    for( uint i = 0; i < 8; i++ )
        AM_INPUT_AUTO_ON[i+1].OnDigitalPush.Add( new InputChangeHandlerWrapper( AM_INPUT_AUTO_ON_OnPush_51, false ) );
        
    for( uint i = 0; i < 8; i++ )
        AM_INPUT_AUTO_OFF[i+1].OnDigitalPush.Add( new InputChangeHandlerWrapper( AM_INPUT_AUTO_OFF_OnPush_52, false ) );
        
    PRESET_SAVE.OnAnalogChange.Add( new InputChangeHandlerWrapper( PRESET_SAVE_OnChange_53, false ) );
    PRESET_RECALL.OnAnalogChange.Add( new InputChangeHandlerWrapper( PRESET_RECALL_OnChange_54, false ) );
    PRESET_CLEAR.OnAnalogChange.Add( new InputChangeHandlerWrapper( PRESET_CLEAR_OnChange_55, false ) );
    ALL_INPUT_LEVEL.OnAnalogChange.Add( new InputChangeHandlerWrapper( ALL_INPUT_LEVEL_OnChange_56, false ) );
    ALL_INPUT_GAIN.OnAnalogChange.Add( new InputChangeHandlerWrapper( ALL_INPUT_GAIN_OnChange_57, false ) );
    ALL_OUTPUT_LEVEL.OnAnalogChange.Add( new InputChangeHandlerWrapper( ALL_OUTPUT_LEVEL_OnChange_58, false ) );
    ALL_OUTPUT_GAIN.OnAnalogChange.Add( new InputChangeHandlerWrapper( ALL_OUTPUT_GAIN_OnChange_59, false ) );
    ALL_AM_INPUT_GAIN.OnAnalogChange.Add( new InputChangeHandlerWrapper( ALL_AM_INPUT_GAIN_OnChange_60, false ) );
    ALL_AM_INPUT_PRIORITY.OnAnalogChange.Add( new InputChangeHandlerWrapper( ALL_AM_INPUT_PRIORITY_OnChange_61, false ) );
    ALL_OUTPUT_FROM_INPUT.OnAnalogChange.Add( new InputChangeHandlerWrapper( ALL_OUTPUT_FROM_INPUT_OnChange_62, false ) );
    ALL_OUTPUT_REMOVE_INPUT.OnAnalogChange.Add( new InputChangeHandlerWrapper( ALL_OUTPUT_REMOVE_INPUT_OnChange_63, false ) );
    for( uint i = 0; i < 8; i++ )
        INPUT_LEVEL[i+1].OnAnalogChange.Add( new InputChangeHandlerWrapper( INPUT_LEVEL_OnChange_64, false ) );
        
    for( uint i = 0; i < 10; i++ )
        INPUT_GAIN[i+1].OnAnalogChange.Add( new InputChangeHandlerWrapper( INPUT_GAIN_OnChange_65, false ) );
        
    for( uint i = 0; i < 8; i++ )
        OUTPUT_LEVEL[i+1].OnAnalogChange.Add( new InputChangeHandlerWrapper( OUTPUT_LEVEL_OnChange_66, false ) );
        
    for( uint i = 0; i < 10; i++ )
        OUTPUT_GAIN[i+1].OnAnalogChange.Add( new InputChangeHandlerWrapper( OUTPUT_GAIN_OnChange_67, false ) );
        
    for( uint i = 0; i < 9; i++ )
        AM_INPUT_GAIN[i+1].OnAnalogChange.Add( new InputChangeHandlerWrapper( AM_INPUT_GAIN_OnChange_68, false ) );
        
    for( uint i = 0; i < 8; i++ )
        AM_INPUT_PRIORITY[i+1].OnAnalogChange.Add( new InputChangeHandlerWrapper( AM_INPUT_PRIORITY_OnChange_69, false ) );
        
    for( uint i = 0; i < 8; i++ )
        OUTPUT_FROM_INPUT[i+1].OnAnalogChange.Add( new InputChangeHandlerWrapper( OUTPUT_FROM_INPUT_OnChange_70, false ) );
        
    for( uint i = 0; i < 8; i++ )
        OUTPUT_REMOVE_INPUT[i+1].OnAnalogChange.Add( new InputChangeHandlerWrapper( OUTPUT_REMOVE_INPUT_OnChange_71, false ) );
        
    for( uint i = 0; i < 5; i++ )
        PRESET_NAME[i+1].OnSerialChange.Add( new InputChangeHandlerWrapper( PRESET_NAME_OnChange_72, false ) );
        
    FROM_DEVICE.OnSerialChange.Add( new InputChangeHandlerWrapper( FROM_DEVICE_OnChange_73, true ) );
    
    _SplusNVRAM.PopulateCustomAttributeList( true );
    
    NVRAM = _SplusNVRAM;
    
}

public override void LogosSimplSharpInitialize()
{
    
    
}

public UserModuleClass_HDMI_MATRIX_8X8_CN_A ( string InstanceName, string ReferenceID, Crestron.Logos.SplusObjects.CrestronStringEncoding nEncodingType ) : base( InstanceName, ReferenceID, nEncodingType ) {}




const uint POWER_ON__DigitalInput__ = 0;
const uint POWER_OFF__DigitalInput__ = 1;
const uint SYSTEM_MUTE_ON__DigitalInput__ = 2;
const uint SYSTEM_MUTE_OFF__DigitalInput__ = 3;
const uint REBOOT__DigitalInput__ = 4;
const uint ALL_IN_LOCK_ON__DigitalInput__ = 5;
const uint ALL_IN_LOCK_OFF__DigitalInput__ = 6;
const uint ALL_INPUT_PHPOW_ON__DigitalInput__ = 7;
const uint ALL_INPUT_PHPOW_OFF__DigitalInput__ = 8;
const uint ALL_INPUT_MUTE_ON__DigitalInput__ = 9;
const uint ALL_INPUT_MUTE_OFF__DigitalInput__ = 10;
const uint ALL_INPUT_GAIN_UP__DigitalInput__ = 11;
const uint ALL_INPUT_GAIN_DOWN__DigitalInput__ = 12;
const uint ALL_INPUT_INVERT_ON__DigitalInput__ = 13;
const uint ALL_INPUT_INVERT_OFF__DigitalInput__ = 14;
const uint ALL_OUTPUT_LOCK_ON__DigitalInput__ = 15;
const uint ALL_OUTPUT_LOCK_OFF__DigitalInput__ = 16;
const uint ALL_OUTPUT_GAIN_UP__DigitalInput__ = 17;
const uint ALL_OUTPUT_GAIN_DOWN__DigitalInput__ = 18;
const uint ALL_OUTPUT_INVERT_ON__DigitalInput__ = 19;
const uint ALL_OUTPUT_INVERT_OFF__DigitalInput__ = 20;
const uint ALL_OUTPUT_MUTE_ON__DigitalInput__ = 21;
const uint ALL_OUTPUT_MUTE_OFF__DigitalInput__ = 22;
const uint ALL_AM_INPUT_MUTE_ON__DigitalInput__ = 23;
const uint ALL_AM_INPUT_MUTE_OFF__DigitalInput__ = 24;
const uint ALL_AM_INPUT_GAIN_UP__DigitalInput__ = 25;
const uint ALL_AM_INPUT_GAIN_DOWN__DigitalInput__ = 26;
const uint ALL_AM_INPUT_AUTO_ON__DigitalInput__ = 27;
const uint ALL_AM_INPUT_AUTO_OFF__DigitalInput__ = 28;
const uint INPUT_LOCK_ON__DigitalInput__ = 29;
const uint INPUT_LOCK_OFF__DigitalInput__ = 33;
const uint INPUT_PHPOW_ON__DigitalInput__ = 37;
const uint INPUT_PHPOW_OFF__DigitalInput__ = 45;
const uint INPUT_INVERT_ON__DigitalInput__ = 53;
const uint INPUT_INVERT_OFF__DigitalInput__ = 61;
const uint INPUT_MUTE_ON__DigitalInput__ = 69;
const uint INPUT_MUTE_OFF__DigitalInput__ = 79;
const uint OUTPUT_LOCK_ON__DigitalInput__ = 89;
const uint OUTPUT_LOCK_OFF__DigitalInput__ = 93;
const uint OUTPUT_INVERT_ON__DigitalInput__ = 97;
const uint OUTPUT_INVERT_OFF__DigitalInput__ = 105;
const uint OUTPUT_MUTE_ON__DigitalInput__ = 113;
const uint OUTPUT_MUTE_OFF__DigitalInput__ = 123;
const uint AM_INPUT_MUTE_ON__DigitalInput__ = 133;
const uint AM_INPUT_MUTE_OFF__DigitalInput__ = 141;
const uint AM_INPUT_AUTO_ON__DigitalInput__ = 149;
const uint AM_INPUT_AUTO_OFF__DigitalInput__ = 157;
const uint INPUT_GAIN_UP__DigitalInput__ = 165;
const uint INPUT_GAIN_DOWN__DigitalInput__ = 175;
const uint OUTPUT_GAIN_UP__DigitalInput__ = 185;
const uint OUTPUT_GAIN_DOWN__DigitalInput__ = 195;
const uint AM_INPUT_GAIN_UP__DigitalInput__ = 205;
const uint AM_INPUT_GAIN_DOWN__DigitalInput__ = 214;
const uint PRESET_SAVE__AnalogSerialInput__ = 0;
const uint PRESET_RECALL__AnalogSerialInput__ = 1;
const uint PRESET_CLEAR__AnalogSerialInput__ = 2;
const uint ALL_INPUT_LEVEL__AnalogSerialInput__ = 3;
const uint ALL_INPUT_GAIN__AnalogSerialInput__ = 4;
const uint ALL_OUTPUT_LEVEL__AnalogSerialInput__ = 5;
const uint ALL_OUTPUT_GAIN__AnalogSerialInput__ = 6;
const uint ALL_AM_INPUT_GAIN__AnalogSerialInput__ = 7;
const uint ALL_AM_INPUT_PRIORITY__AnalogSerialInput__ = 8;
const uint ALL_OUTPUT_FROM_INPUT__AnalogSerialInput__ = 9;
const uint ALL_OUTPUT_REMOVE_INPUT__AnalogSerialInput__ = 10;
const uint FROM_DEVICE__AnalogSerialInput__ = 11;
const uint INPUT_LEVEL__AnalogSerialInput__ = 12;
const uint INPUT_GAIN__AnalogSerialInput__ = 20;
const uint OUTPUT_LEVEL__AnalogSerialInput__ = 30;
const uint OUTPUT_GAIN__AnalogSerialInput__ = 38;
const uint AM_INPUT_GAIN__AnalogSerialInput__ = 48;
const uint AM_INPUT_PRIORITY__AnalogSerialInput__ = 57;
const uint OUTPUT_FROM_INPUT__AnalogSerialInput__ = 65;
const uint OUTPUT_REMOVE_INPUT__AnalogSerialInput__ = 73;
const uint PRESET_NAME__AnalogSerialInput__ = 81;
const uint TO_DEVICE__AnalogSerialOutput__ = 0;
const uint POWER_ON_FB__DigitalOutput__ = 0;
const uint POWER_OFF_FB__DigitalOutput__ = 1;
const uint SYSTEM_MUTE_ON_FB__DigitalOutput__ = 2;
const uint SYSTEM_MUTE_OFF_FB__DigitalOutput__ = 3;
const uint INPUT_LOCK_ON_FB__DigitalOutput__ = 4;
const uint INPUT_LOCK_OFF_FB__DigitalOutput__ = 8;
const uint INPUT_PHPOW_ON_FB__DigitalOutput__ = 12;
const uint INPUT_PHPOW_OFF_FB__DigitalOutput__ = 20;
const uint INPUT_INVERT_ON_FB__DigitalOutput__ = 28;
const uint INPUT_INVERT_OFF_FB__DigitalOutput__ = 36;
const uint INPUT_MUTE_ON_FB__DigitalOutput__ = 44;
const uint INPUT_MUTE_OFF_FB__DigitalOutput__ = 54;
const uint OUTPUT_LOCK_ON_FB__DigitalOutput__ = 64;
const uint OUTPUT_LOCK_OFF_FB__DigitalOutput__ = 68;
const uint OUTPUT_INVERT_ON_FB__DigitalOutput__ = 72;
const uint OUTPUT_INVERT_OFF_FB__DigitalOutput__ = 80;
const uint OUTPUT_MUTE_ON_FB__DigitalOutput__ = 88;
const uint OUTPUT_MUTE_OFF_FB__DigitalOutput__ = 98;
const uint AM_INPUT_MUTE_ON_FB__DigitalOutput__ = 108;
const uint AM_INPUT_MUTE_OFF_FB__DigitalOutput__ = 116;
const uint AM_INPUT_AUTO_ON_FB__DigitalOutput__ = 124;
const uint AM_INPUT_AUTO_OFF_FB__DigitalOutput__ = 132;
const uint OUTPUT1_FROM_INPUT_FB__DigitalOutput__ = 140;
const uint OUTPUT2_FROM_INPUT_FB__DigitalOutput__ = 152;
const uint OUTPUT3_FROM_INPUT_FB__DigitalOutput__ = 164;
const uint OUTPUT4_FROM_INPUT_FB__DigitalOutput__ = 176;
const uint OUTPUT5_FROM_INPUT_FB__DigitalOutput__ = 188;
const uint OUTPUT6_FROM_INPUT_FB__DigitalOutput__ = 200;
const uint OUTPUT7_FROM_INPUT_FB__DigitalOutput__ = 212;
const uint OUTPUT8_FROM_INPUT_FB__DigitalOutput__ = 224;
const uint INPUT_LEVEL_FB__AnalogSerialOutput__ = 1;
const uint INPUT_GAIN_FB__AnalogSerialOutput__ = 9;
const uint OUTPUT_LEVEL_FB__AnalogSerialOutput__ = 19;
const uint OUTPUT_GAIN_FB__AnalogSerialOutput__ = 27;
const uint AM_INPUT_GAIN_FB__AnalogSerialOutput__ = 37;
const uint AM_INPUT_PRIORITY_FB__AnalogSerialOutput__ = 46;
const uint DEBUGMODE__Parameter__ = 10;
const uint GAIN_UPPER_LIMIT__Parameter__ = 11;
const uint GAIN_LOWER_LIMIT__Parameter__ = 12;
const uint ALL_OUTPUT_FROM_INPUT_LEVEL__Parameter__ = 13;
const uint OUTPUT_FROM_INPUT_LEVEL__Parameter__ = 14;
const uint INPUT_GAIN_STEP__Parameter__ = 22;
const uint OUTPUT_GAIN_STEP__Parameter__ = 23;
const uint AM_INPUT_GAIN_STEP__Parameter__ = 24;

[SplusStructAttribute(-1, true, false)]
public class SplusNVRAM : SplusStructureBase
{

    public SplusNVRAM( SplusObject __caller__ ) : base( __caller__ ) {}
    
    
}

SplusNVRAM _SplusNVRAM = null;

public class __CEvent__ : CEvent
{
    public __CEvent__() {}
    public void Close() { base.Close(); }
    public int Reset() { return base.Reset() ? 1 : 0; }
    public int Set() { return base.Set() ? 1 : 0; }
    public int Wait( int timeOutInMs ) { return base.Wait( timeOutInMs ) ? 1 : 0; }
}
public class __CMutex__ : CMutex
{
    public __CMutex__() {}
    public void Close() { base.Close(); }
    public void ReleaseMutex() { base.ReleaseMutex(); }
    public int WaitForMutex() { return base.WaitForMutex() ? 1 : 0; }
}
 public int IsNull( object obj ){ return (obj == null) ? 1 : 0; }
}


}
