Example #1
0
        public EthernetIntersystemCommunications Create()
        {
            var eisc = new EthernetIntersystemCommunications(0x09, "10.51.10.112", ProAvControlSystem.ControlSystem);

            eisc.Register();
            eisc.OnlineStatusChange += EiscOnOnlineStatusChange;
            ConsoleCommands.Create(x_ => {
                uint join;
                x_.TryParseToUint(out join);
                eisc.BooleanInput[join].Pulse(1000);
            }, "testbool", "testbool joinnumber");
            ConsoleCommands.Create(x_ => {
                uint join;
                x_.TryParseToUint(out join);
                eisc.StringInput[x_].StringValue = DateTime.Now.ToLongTimeString();
            }, "testserial", "testserial joinnumber");
            return(eisc);
        }