Lesson 20 Tut3: Difference between revisions

From English DMXC-Wiki
mNo edit summary
No edit summary
 
(16 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Hauptüberschrift
{{Maintitle
| logo = Im-aim.png
| logo = Im-aim.png
| ueberschrift = First Steps: {{PAGENAME}}
| maintitle = First Steps: {{PAGENAME}}
}}
{{NavigationTop-Tut3
| LinkBackwards = Lesson_19_Tut3
| TextBackwards = Lesson 19
| LinkForwards = Lesson_21_Tut3
| TextForwards = Lesson 21
}}
}}
{{DMXC3_lesson/en}}
==Overview==
==Overview==
In this lesson we will learn how to create and add new device definitions. You need to do this acivity only, if your device is not yet defined in the default set of DMXControl 3 device definitions.
In this lesson we will learn how to create and add new device definitions. You need to do this activity only, if your device is not yet defined in the default set of DMXControl 3 device definitions.
 


==Lecture 20: Create new device definitions ==
==Lecture 20: Create new device definitions ==
A device definition file (short: DDF) is used to inform DMXControl about the properties of a device. A DDF is written in XML language and stored in the path


A device definition file (short: DDF) is used to inform DMXControl about the properties of a device. A DDF is wiritten in XML language and stored in the path
  <DMXControl program path>\kernel\devices
  <DMXControl program path>\kernel\devices
<br>
If you are familiar with DDFs of DMXControl 2.0 you will see some important differences:


If you are familar with DDFs of DMXControl 2.0 you will see some important differences:
* There is no GUI description part, because DMXControl 3 doesn't provide the device context menus.
* There is no GUI description part, because DMXControl 3 doesn't provide the device context menues
* Some syntax elements are very similar (esp. in information part). I.e. you can reuse the existing DDFs
* Sone syntax elements are very similar (esp. in information part), i.e. you can reuse the existing DDFs
* The function part is much more abstract. You make the definition mainly by properties and not by DMX channels
* The function part is much more abstract: You make the definition mainly by properties and not by DMX channels


Currently  there is no "DDF creator" available fpr DMXControl 3, we recommend to  use a text editor or XML editor tool. (Hint: We need support for adaption of an existing DMXControl 2 php tool towards DMXControl 3)
Currently  there is no "DDF creator" available for DMXControl 3. We recommend using a text editor or XML editor tool. (Hint: We need support for adaption of an existing DMXControl 2 php tool towards DMXControl 3)
<br><br>
At first lets look at a very simple DDF ("Generic RGB Par"):


At first lets have a view to a very simple DDF ("Generic RGB Par"):
----


<source lang="xml">
{| cellspacing="1" cellpadding="1" border="0" align="left" width="200"
01 <?xml version="1.0" encoding="utf-8" ?>
|-
| <source lang="xml">01 <?xml version="1.0" encoding="utf-8" ?>
  02 <device image="bild" type="DMXDevice">
  02 <device image="bild" type="DMXDevice">
  03  <information>
  03  <information>
Line 33: Line 37:
  05    <vendor>Generic</vendor>
  05    <vendor>Generic</vendor>
  06    <author>Arne Luedtke</author>
  06    <author>Arne Luedtke</author>
      <comment>KLEINER TEXT</comment>
  07  </information>
  07  </information>
  08  <functions>
  08  <functions>
Line 41: Line 46:
  13    </rgb>
  13    </rgb>
  14  </functions>
  14  </functions>
  15 </device>
  15 </device></source>  
</source>
|
<br> [[Image:DeviceManegerInfoBox.jpg|DeviceManegerInfoBox.jpg]]
|}
 
----
 
Line 01 is a mandatory default line for describing the XML version.
Lines 02 and 15 provide the frame for the device definition that contains two parts:
* Information part (lines 03 to 07). No need for further explanation.
* Function(property) specification part (lines 08 to 14)


Line 01 is mandatory default line for describing the XML version.
The "image" can be replaced by another .gif or .png file.
Lines 02 and 15 provide the frame for the device definition that contains of two parts:
* information part (lines 03 to 07), no need for further explanation.
* function(property) specification part (lines 08 to 14)


The example device posesses one property: RGB colar mode. The mapping to DMX channels is described in lines 10 to 12.
The example device possesses one property: RGB color mode. The mapping to DMX channels is described in lines 10 to 12.


Thats all!
That's all!


Following table shows the existing properties:
Following table shows the supported properties:


{| class="wikitable"
{| class="wikitable"
! Property
|-
! Description
! scope="col" | Property  
! Comment
! colspan="2" scope="col" | Description  
|-
! colspan="3" scope="col" | Comment
| switch
|-
| fixture has a switch channel
| switch  
| <switch dmxchannel="0" />
| colspan="2" | fixture has a switch channel<br>
|-
| colspan="3" | <source lang="xml"><switch dmxchannel="0" /></source>
| dimmer
|-
| fixture has a dimmer channel
| dimmer  
| <dimmer dmxchannel="0" />
| colspan="2" | fixture has a dimmer channel<br>
|-
| colspan="3" | <source lang="xml"><dimmer dmxchannel="0" /> </source>
| fog
|-
| fod property
| matrix
| <fog dmxchannel="0" />
| colspan="2" | Fixture ist ein Matrix-Gerät<br>
|-
| colspan="3" | <source lang="xml"><matrix rows="2" columns="3">
| shutter
  <rgb>
| fixture has a shutter
    <red dmxchannel="2" />
| <shutter dmxchannel="4" />
    <green dmxchannel="2" />
|-
    <blue dmxchannel="2" />
| strobe
  </rgb>
| fixture has a strobe channel
  <rgb>
| <strobe dmxchannel="7" />
    <red dmxchannel="2" />
|-
    <green dmxchannel="2" />
| rgb
    <blue dmxchannel="2" />
| fixture uses RGB color mode
  </rgb>
|<red dmxchannel="0" />
  <rgb>
      <green dmxchannel="1" />
    <red dmxchannel="2" />
      <blue dmxchannel="2" />
    <green dmxchannel="2" />
|-
    <blue dmxchannel="2" />
| position
  </rgb>
| fixture has pan/tilt control
  <rgb>
| <position>
    <red dmxchannel="2" />
      <pan dmxchannel="0" >
    <green dmxchannel="2" />
        <range range="170" />
    <blue dmxchannel="2" />
      </pan>
  </rgb>
      <tilt dmxchannel="1" >
  <rgb>
        <range range="110" />
    <red dmxchannel="2" />
      </tilt>
    <green dmxchannel="2" />
|-
    <blue dmxchannel="2" />
| color wheel
  </rgb>
| fixtures contains color wheel
  <rgb>
| <colorwheel dmxchannel="2"/>
    <red dmxchannel="2" />
|-
    <green dmxchannel="2" />
| gobo wheel
    <blue dmxchannel="2" />
| fixtures contains gobo wheel
  </rgb>
| <gobowheel dmxchannel="2"/>
</matrix>
|-
</source>  
|}
|-
| fog  
| colspan="2" | fod property <br>
| colspan="3" | <source lang="xml"><fog dmxchannel="0" /></source>
|-
| shutter  
| colspan="2" | fixture has a shutter <br>
| colspan="3" | <source lang="xml"><shutter dmxchannel="0" /></source>
|-
| strobe  
| colspan="2" | fixture has a strobe channel<br>
| colspan="3" | <source lang="xml"><strobe dmxchannel="0" /></source>
|-
| iris<br>
| colspan="2" | fixture has a iris channel<br>
| colspan="3" | <source lang="xml"><iris dmxchannel="0"/></source>
|-
| focus<br>
| colspan="2" | fixture has a focus channel<br>
| colspan="3" | <source lang="xml"><focus dmxchannel="0"/></source>
|-
| zoom<br>
| colspan="2" | fixture has a zoom channel<br>
| colspan="3" | <source lang="xml"><zoom dmxchannel="0"/></source>
|-
| rgb  
| colspan="2" | fixture has RGB function
| colspan="3" | <source lang="xml"><rgb>
  <red dmxchannel="0" />
  <green dmxchannel="1" />
  <blue dmxchannel="2" />
</rgb>
</source>
|-
| cmy<br>
| colspan="2" | fixture has CMY function<br>
| colspan="3" | <source lang="xml"><cmy>
  <cyan dmxchannel="0"/>
  <magenta dmxchannel="1"/>
  <yellow dmxchannel="2"/>
</cmy>
</source>
|-
| position  
| colspan="2" | fixture has Pan and/ or Tilt
| nowrap="nowrap" colspan="3" | <source lang="xml"><position>
  <pan dmxchannel="0">
    <range range="540" />
  </pan>
  <tilt dmxchannel="1">
    <range range="246" />
  </tilt>
</position>
</source>
|-
| color wheel  
| colspan="2" | fixtures contains color wheel  
| colspan="3" | <source lang="xml"><colorwheel dmxchannel="0">
  <step type="color" val="#ffffff" caption="white" mindmx="0" maxdmx="0" />
  <step type="color" val="#00bd52" caption="green 203" mindmx="32" maxdmx="32" />
  <step type="color" val="#080094" caption="blue 108" mindmx="64" maxdmx="64" />
  <step type="color" val="#8e10bc" caption="UV" mindmx="96" maxdmx="96" />
  <step type="color" val="#eedefe" caption="1/2 Minus Green" mindmx="128" maxdmx="128" />
  <step type="color" val="#ffffff" caption="white" mindmx="160" maxdmx="160" />
</colorwheel>
</source>
|-
| rowspan="4" | gobo wheel  
| rowspan="3" | fixture with Gobo wheel  
| valign="top" nowrap="nowrap" |
<br>  
Gobo rotation


| valign="top" nowrap="nowrap" rowspan="3" | <source lang="xml"><gobowheel dmxchannel="0">
  <goborotation dmxchannel="12" finedmxchannel="13">
    <step type="stop" mindmx="0" maxdmx="2" />
    <step type="stop" mindmx="253" maxdmx="255" />
    <range type="cw" mindmx="3" maxdmx="127" minval="0,1" maxval="8" />
    <range type="ccw" mindmx="252" maxdmx="128" minval="0,1" maxval="8" />
  </goborotation>
  <goboindex dmxchannel="8" finedmxchannel="9">
    <range mindmx="0" maxdmx="255" range="395" />
  </goboindex>
  <step type="open" caption="Open" mindmx="0" maxdmx="11" />
  <step type="gobo" caption="Gobo 1" mindmx="12" maxdmx="15" val="gobo1.png">
    <step for="goborotation" mindmx="36" maxdmx="39" />
    <step handler="shake" mindmx="60" maxdmx="71" minval="0,1" maxval="3" />
  </step>
  ...
</gobowheel></source>
|-
| valign="top" |
Goboposition
|-
|
Rotation Gobo 1
Shake Gobo 1<br>
|}
If the fixture has a color / gobo wheel that can rotate continuously, then write it as follows:
<br>
<source lang="xml"><gobowheel dmxchannel="0">
  <step type="open" caption="Open" mindmx="0" maxdmx="0" />
  <step type="gobo" caption="Gobo 1" mindmx="11" maxdmx="11" />
  ...
  <wheelrotation>
    <range type="cw" mindmx="221" maxdmx="203" minval="0,1" maxval="2" />
    <range type="ccw" mindmx="222" maxdmx="240" minval="0,1" maxval="2" />
  </wheelrotation>
</gobowheel>
</source>
<br>
If the fixture has a color / gobo wheel, which can rotate at random positions, then write it as follows:
<br>
<source lang="xml"><gobowheel dmxchannel="0">
  <step type="open" caption="Open" mindmx="0" maxdmx="0" />
  ...
  <random>
    <step type="fast" mindmx="241" maxdmx="245" />
    <step type="medium" mindmx="246" maxdmx="250" />
    <step type="slow" mindmx="251" maxdmx="255" />
  </random>
</gobowheel>
</source>
<br>
If a device has fine channels for eg zoom, then write it as follows:
<br>
<source lang="xml"><zoom dmxchannel="0" finedmxchannel="1"/>
</source>
That works for any property.
<br>
The different intervals in a DMX channel are defined by the "step" tag:
The different intervals in a DMX channel are defined by the "step" tag:
<source lang="xml">
<source lang="xml">
  <step val="0" mindmx="0" maxdmx="127" />
  <step val="0" mindmx="0" maxdmx="127" />;
  <step val="100" mindmx="128" maxdmx="255" />
  <step val="100" mindmx="128" maxdmx="255" />;
</source>
</source>


Line 115: Line 258:


<source lang="xml">
<source lang="xml">
  <step type="color" val="#FFFFFF" caption="Weiß" mindmx="0" maxdmx="31" />
  <step type="color" val="#FFFFFF" caption="Weiß" mindmx="0" maxdmx="31" />;
  <step type="color" val="#FF0000" caption="Rot" mindmx="32" maxdmx="63" />
  <step type="color" val="#FF0000" caption="Rot" mindmx="32" maxdmx="63" />;
</source>
</source>


{{BoxHinweis|Text=A DDF Creator for DMXControl 3 is already in the works. Until then, please create your own DDFs with an XML editor of your choice, or simply a text editor. Sometimes it helps to copy an existing DDF and to adapt it. Please send us your new DDFs, so we can add them to the library.
}}


==Exercise==
1) Have a look into several device definitions before creating your own DDF.
<br>
2) Open the DDF for TS255. Separate the different properties by blank lines to get a better understanding.
<br>
3) Create the DDF for your own device.


 
{{NavigationTop-Tut3
'''topics to be added (by beta testers)'''
| LinkBackwards = Lesson_19_Tut3
* Please complete the description
| TextBackwards = Lesson 19
* During the beta test there is no upload capability for new DDFs. This topic must be updated.
| LinkForwards = Lesson_21_Tut3
 
| TextForwards = Lesson 21
==Excercise==
}}
* Have a look into several device definitions before creating your own DDF.
[[de:Lektion_20_Tut3]]
* Open the DDF for TS255. Separate the different properties by blank lines to get a better understanding.
[[Category: Tutorials DMXControl 3]]
* Create the DDF for your own device.
 
 
==Additional links and references==
*
 
 
==Certificate==
I have understood the topics of this lecture and want to continue with next course:
[[Lesson 21]]
 
 
[[de:Lektion 20]]
[[en:Lesson 20]]
 
__NOTOC__
__NOTITLE__

Latest revision as of 00:04, 16 May 2013

[[File:{{{Logo}}}|48px|link=]] {{{Pagetitle}}}


Arrow back.png Lesson 19
Lesson 21 Arrow forw.png
table of content

Overview

In this lesson we will learn how to create and add new device definitions. You need to do this activity only, if your device is not yet defined in the default set of DMXControl 3 device definitions.

Lecture 20: Create new device definitions

A device definition file (short: DDF) is used to inform DMXControl about the properties of a device. A DDF is written in XML language and stored in the path

<DMXControl program path>\kernel\devices


If you are familiar with DDFs of DMXControl 2.0 you will see some important differences:

  • There is no GUI description part, because DMXControl 3 doesn't provide the device context menus.
  • Some syntax elements are very similar (esp. in information part). I.e. you can reuse the existing DDFs
  • The function part is much more abstract. You make the definition mainly by properties and not by DMX channels

Currently there is no "DDF creator" available for DMXControl 3. We recommend using a text editor or XML editor tool. (Hint: We need support for adaption of an existing DMXControl 2 php tool towards DMXControl 3)

At first lets look at a very simple DDF ("Generic RGB Par"):


01 <?xml version="1.0" encoding="utf-8" ?>
 02 <device image="bild" type="DMXDevice">
 03  <information>
 04    <modell>Generic RGB PAR</modell>
 05    <vendor>Generic</vendor>
 06    <author>Arne Luedtke</author>
       <comment>KLEINER TEXT</comment>
 07  </information>
 08  <functions>
 09    <rgb>
 10      <red dmxchannel="0" />
 11      <green dmxchannel="1" />
 12      <blue dmxchannel="2" />
 13    </rgb>
 14  </functions>
 15 </device>


DeviceManegerInfoBox.jpg


Line 01 is a mandatory default line for describing the XML version. Lines 02 and 15 provide the frame for the device definition that contains two parts:

  • Information part (lines 03 to 07). No need for further explanation.
  • Function(property) specification part (lines 08 to 14)

The "image" can be replaced by another .gif or .png file.

The example device possesses one property: RGB color mode. The mapping to DMX channels is described in lines 10 to 12.

That's all!

Following table shows the supported properties:

Property Description Comment
switch fixture has a switch channel
<switch dmxchannel="0" />
dimmer fixture has a dimmer channel
<dimmer dmxchannel="0" />
matrix Fixture ist ein Matrix-Gerät
<matrix rows="2" columns="3"> 
  <rgb>
    <red dmxchannel="2" />
    <green dmxchannel="2" />
    <blue dmxchannel="2" />
  </rgb>
  <rgb>
    <red dmxchannel="2" />
    <green dmxchannel="2" />
    <blue dmxchannel="2" />
  </rgb>
  <rgb>
    <red dmxchannel="2" />
    <green dmxchannel="2" />
    <blue dmxchannel="2" />
  </rgb>
  <rgb>
    <red dmxchannel="2" />
    <green dmxchannel="2" />
    <blue dmxchannel="2" />
  </rgb>
  <rgb>
    <red dmxchannel="2" />
    <green dmxchannel="2" />
    <blue dmxchannel="2" />
  </rgb>
  <rgb>
    <red dmxchannel="2" />
    <green dmxchannel="2" />
    <blue dmxchannel="2" />
  </rgb>
</matrix>
fog fod property
<fog dmxchannel="0" />
shutter fixture has a shutter
<shutter dmxchannel="0" />
strobe fixture has a strobe channel
<strobe dmxchannel="0" />
iris
fixture has a iris channel
<iris dmxchannel="0"/>
focus
fixture has a focus channel
<focus dmxchannel="0"/>
zoom
fixture has a zoom channel
<zoom dmxchannel="0"/>
rgb fixture has RGB function
<rgb>
  <red dmxchannel="0" />
  <green dmxchannel="1" />
  <blue dmxchannel="2" />
</rgb>
cmy
fixture has CMY function
<cmy>
  <cyan dmxchannel="0"/>
  <magenta dmxchannel="1"/>
  <yellow dmxchannel="2"/>
</cmy>
position fixture has Pan and/ or Tilt
<position>
  <pan dmxchannel="0">
    <range range="540" />
  </pan>
  <tilt dmxchannel="1">
    <range range="246" />
  </tilt>
</position>
color wheel fixtures contains color wheel
<colorwheel dmxchannel="0">
   <step type="color" val="#ffffff" caption="white" mindmx="0" maxdmx="0" />
   <step type="color" val="#00bd52" caption="green 203" mindmx="32" maxdmx="32" />
   <step type="color" val="#080094" caption="blue 108" mindmx="64" maxdmx="64" />
   <step type="color" val="#8e10bc" caption="UV" mindmx="96" maxdmx="96" />
   <step type="color" val="#eedefe" caption="1/2 Minus Green" mindmx="128" maxdmx="128" />
   <step type="color" val="#ffffff" caption="white" mindmx="160" maxdmx="160" />
</colorwheel>
gobo wheel fixture with Gobo wheel


Gobo rotation

<gobowheel dmxchannel="0">
  <goborotation dmxchannel="12" finedmxchannel="13">
    <step type="stop" mindmx="0" maxdmx="2" />
    <step type="stop" mindmx="253" maxdmx="255" />
    <range type="cw" mindmx="3" maxdmx="127" minval="0,1" maxval="8" />
    <range type="ccw" mindmx="252" maxdmx="128" minval="0,1" maxval="8" />
  </goborotation>
  <goboindex dmxchannel="8" finedmxchannel="9">
    <range mindmx="0" maxdmx="255" range="395" />
  </goboindex>
  <step type="open" caption="Open" mindmx="0" maxdmx="11" />
  <step type="gobo" caption="Gobo 1" mindmx="12" maxdmx="15" val="gobo1.png">
    <step for="goborotation" mindmx="36" maxdmx="39" />
    <step handler="shake" mindmx="60" maxdmx="71" minval="0,1" maxval="3" />
  </step>
  ...
</gobowheel>

Goboposition

Rotation Gobo 1

Shake Gobo 1

If the fixture has a color / gobo wheel that can rotate continuously, then write it as follows:

<gobowheel dmxchannel="0">
  <step type="open" caption="Open" mindmx="0" maxdmx="0" />
  <step type="gobo" caption="Gobo 1" mindmx="11" maxdmx="11" />
  ...
  <wheelrotation>
    <range type="cw" mindmx="221" maxdmx="203" minval="0,1" maxval="2" />
    <range type="ccw" mindmx="222" maxdmx="240" minval="0,1" maxval="2" />
  </wheelrotation>
</gobowheel>


If the fixture has a color / gobo wheel, which can rotate at random positions, then write it as follows:

<gobowheel dmxchannel="0">
  <step type="open" caption="Open" mindmx="0" maxdmx="0" />
  ...
  <random>
    <step type="fast" mindmx="241" maxdmx="245" />
    <step type="medium" mindmx="246" maxdmx="250" />
    <step type="slow" mindmx="251" maxdmx="255" />
  </random>
</gobowheel>


If a device has fine channels for eg zoom, then write it as follows:

<zoom dmxchannel="0" finedmxchannel="1"/>

That works for any property.
The different intervals in a DMX channel are defined by the "step" tag:

 <step val="0" mindmx="0" maxdmx="127" />;
 <step val="100" mindmx="128" maxdmx="255" />;

or:

 <step type="color" val="#FFFFFF" caption="Weiß" mindmx="0" maxdmx="31" />;
 <step type="color" val="#FF0000" caption="Rot" mindmx="32" maxdmx="63" />;


 Important Hint A DDF Creator for DMXControl 3 is already in the works. Until then, please create your own DDFs with an XML editor of your choice, or simply a text editor. Sometimes it helps to copy an existing DDF and to adapt it. Please send us your new DDFs, so we can add them to the library.


Exercise

1) Have a look into several device definitions before creating your own DDF.
2) Open the DDF for TS255. Separate the different properties by blank lines to get a better understanding.
3) Create the DDF for your own device.

Arrow back.png Lesson 19
Lesson 21 Arrow forw.png
table of content