예제 #1
0
        public static void Color(byte value)
        {
            var channel = CHANNEL_COLOR_VALUE;

            Console.WriteLine(string.Format("COLOR [CHANNEL:{0}] [VALUE:{1}]", channel, value));
            OpenDMX.SetDmxValue(channel, value);
        }
예제 #2
0
        public static void Tilt(byte value)
        {
            var channel = CHANNEL_TILT_VALUE;

            Console.WriteLine(string.Format("TILT [CHANNEL:{0}] [VALUE:{1}]", channel, value));
            OpenDMX.SetDmxValue(channel, value);
        }
예제 #3
0
        public static void Zoom(byte value)
        {
            var channel = CHANNEL_ZOOM_VALUE;

            Console.WriteLine(string.Format("ZOOM [CHANNEL:{0}] [VALUE:{1}]", channel, value));
            OpenDMX.SetDmxValue(channel, value);
        }
 void TestTimer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
 {
     if (DMXDeviceEnabled)
     {
         if (Data != null && Data.Definitions != null)
         {
             foreach (ChannelDefinition def in Data.Definitions)
             {
                 //DMXEngine.Current.Write(def.Channel, def.TestValue);
                 OpenDMX.SetDmxValue(def.Channel, def.TestValue);
             }
         }
         else
         {
             StopTimer = true;
         }
     }
     else
     {
         StopTimer = true;
     }
     if (StopTimer)
     {
         TestTimer.Stop();
         TestTimer.Dispose();
         TestTimer = null;
         StopTimer = false;
     }
 }
예제 #5
0
        public static void Focus(byte value)
        {
            var channel = CHANNEL_FOCUS_VALUE;

            Console.WriteLine(string.Format("FOCUS [CHANNEL:{0}] [VALUE:{1}]", channel, value));
            OpenDMX.SetDmxValue(channel, value);
        }
예제 #6
0
        public static void Prism_Open()
        {
            var  channel = CHANNEL_PRISM_VALUE;
            byte value   = 0;                   // 0 - 63

            Console.WriteLine(string.Format("PRISM OPEN [CHANNEL:{0}] [VALUE:{1}]", channel, value));
            OpenDMX.SetDmxValue(channel, value);
        }
예제 #7
0
        public static void Shutter_Close()
        {
            var  channel = CHANNEL_SHUTTER_VALUE;
            byte value   = 0;

            Console.WriteLine(string.Format("SHUTTER CLOSE [CHANNEL:{0}] [VALUE:{1}]", channel, value));
            OpenDMX.SetDmxValue(channel, value);
        }
예제 #8
0
        public static void Lamp_OFF()
        {
            var  channel = CHANNEL_RESET;
            byte value   = 79;                  // range [ 72 - 79 ]

            Console.WriteLine(string.Format("LAMP ON [CHANNEL:{0}] [VALUE:{1}]", channel, value));
            OpenDMX.SetDmxValue(channel, value);
        }
예제 #9
0
        public static void Prism_Frost()
        {
            var  channel = CHANNEL_PRISM_VALUE;
            byte value   = 255;                 // 192 - 255

            Console.WriteLine(string.Format("PRISM FROST [CHANNEL:{0}] [VALUE:{1}]", channel, value));
            OpenDMX.SetDmxValue(channel, value);
        }
예제 #10
0
        public static void Prism_8Facet()
        {
            var  channel = CHANNEL_PRISM_VALUE;
            byte value   = 128;                 // 128 - 191

            Console.WriteLine(string.Format("PRISM 8 FACET [CHANNEL:{0}] [VALUE:{1}]", channel, value));
            OpenDMX.SetDmxValue(channel, value);
        }
예제 #11
0
 protected void SetDmxValue(int channel, byte value)
 {
     if (channel - 1 >= 0 && channel - 1 < _channels.Length)
     {
         _channels[channel - 1] = value;
         OpenDMX.SetDmxValue(_universeStartIndex + channel, value);
     }
 }
예제 #12
0
        private void button7_Click(object sender, EventArgs e)
        {
            int  channel = (byte)int.Parse(this.textBox1.Text);
            byte value   = (byte)int.Parse(this.textBox2.Text);

            Console.WriteLine(string.Format("[CHANNEL:{0}] [VALUE:{1}]", channel, value));

            OpenDMX.SetDmxValue(channel, value);
        }
 private void OnUnloaded(object sender, RoutedEventArgs e)
 {
     Dispose(true);
     if (DMXDeviceEnabled)
     {
         foreach (ChannelDefinition def in Data.Definitions)
         {
             if (def.TestValue > 0)
             {
                 def.TestValue = 0;
                 OpenDMX.SetDmxValue(def.Channel, def.TestValue);
             }
         }
     }
 }