<?xml version="1.0" encoding="ISO-8859-1"?>
<device image="SCANNER.GIF" initsequence="set 0 128;set 1 228;set 2 128;set 3 3;set 4 0;set 5 200;set6 127">
  <information>
    <name>minniSarTec II</name>
    <author>Erik Schotte</author>
    <vendor>GLP</vendor>
  </information>
  <channels>
    <function channel="0" minvalue="0" maxvalue="255" name="Pan" fade="yes" type="pan" />
    <function channel="1" minvalue="0" maxvalue="255" name="Tilt" fade="yes" type="tilt" />
    <function channel="2" minvalue="0" maxvalue="255" name="Speed Pan/Tilt" fade="yes" type="dimmer" />
    <function channel="3" minvalue="0" maxvalue="255" name="Farbe" fade="yes" type="color" action="GetColor" />
    <function channel="4" minvalue="0" maxvalue="255" name="Gobo" fade="yes" type="gobo" action="GetGobo" />
    <function channel="5" minvalue="0" maxvalue="255" name="Speed Position" fade="yes" type="dimmer" />
    <function channel="6" minvalue="0" maxvalue="255" name="Shutter" fade="no" type="shutter" />
  </channels>
  <form width="420" height="310">
    <deviceimage top="0" left="0" />
    <devicename top="0" left="40" />
    <deviceadress top="16" left="40" />
    <position top="40" left="1" height="200" width="200" />
    <dropdown top="60" left="220" width="180" channel="3" action="SetColor" name="color">
      <item caption="weiß" value="3" />
      <item caption="Grün" value="11" />
      <item caption="Rot" value="19" />
      <item caption="H-Lila" value="28" />
      <item caption="Gelb" value="35" />
      <item caption="H-Rosa" value="44" />
      <item caption="H-Blau" value="51" />
      <item caption="H-Rot" value="58" />
      <item caption="Blau" value="68" />
      <item caption="Lila" value="75" />
    </dropdown>
    <slider top="88" left="216" height="41" width="139" startvalue="128" endvalue="255" name="color_speed" action="SetColor" channel="3" />
    <label top="40" left="220" caption="Farbe" />
    <label top="150" left="220" caption="Gobo" />
    <slider top="270" left="1" height="41" width="180" startvalue="0" endvalue="255" channel="2" name="pantilt_speed" />
    <label top="250" left="1" caption="Speed Pan / Tilt" />
    <slider top="272" left="220" height="41" width="177" startvalue="0" endvalue="255" name="gobocolor_speed" channel="5" />
    <label top="249" left="236" caption="Speed Gobo / Color" />
    <options top="84" left="358" name="color_switch" action="SetColor">
      <option value="1" caption="AN" top="0" left="0" />
      <option value="0" caption="AUS" top="20" left="0" />
    </options>
  </form>
  <code>
    <procedure name="INITCONTROLS">
!call|GetColor$

	</procedure>
    <procedure name="SetColor">
!if|({color_switch}|eq|0|
 !set_channel|3|{color}$
 |
!if|({color_switch}|eq|1|
 !set_channel|3|{color_speed}$
 $
$
		</procedure>
    <procedure name="GetColor">		
!if|({channel_3} &lt; 128) and ({channel_3} &gt;0)|
 !set_control|color|{channel_3}$
 !set_control|color_switch|0$
 !set_control|color_speed|190$
|
!if|({channel_3} &gt; 127) and ({channel_3} &lt; 256)|
 !set_control|color_speed|{channel_3}$ 
 !set_control|color_switch|1$
 $
$
    </procedure>
  </code>
</device>