<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="../XSLT/decoder.xsl"?>
<!-- Copyright (C) JMRI 2002, 2005, 2006, 2007, 2010 All rights reserved -->
<!-- $Id: Digitrax_0SFX.xml 17977 2011-07-18 17:23:46Z zoo $ -->
<!--                                                                        -->
<!-- JMRI is free software; you can redistribute it and/or modify it under  -->
<!-- the terms of version 2 of the GNU General Public License as published  -->
<!-- by the Free Software Foundation. See the "COPYING" file for a copy     -->
<!-- of this license.                                                       -->
<!--                                                                        -->
<!-- JMRI is distributed in the hope that it will be useful, but WITHOUT    -->
<!-- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or  -->
<!-- FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License  -->
<!-- for more details.                                                      -->
<decoder-config xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://jmri.org/xml/schema/decoder.xsd">
<version author="Steve Lowens" version="5" lastUpdated="20110326"/>
<version author="Steve Lowens" version="4" lastUpdated="20101218"/>
  <version author="Bob Blackwell" version="3" lastUpdated="20070805"/>
  <version author="Michael Mosher" version="2" lastUpdated="20060918"/>
  <version author="Bob Jacobsen" version="1" lastUpdated="20060221"/>
<!-- Created from version 15 of the Digitrax_01x3 file -->
<!-- Ver 2, add CV152,3,5 & AC4400, SD38-2, F40PH decoders  -->
<!-- Ver 3, add CV11 for AC4400, SD38-2, F40PH decoders  -->
			
<!-- In the version for CP2.11.4, I have added decoders SDN144A0, SDN144A1, SDN144PS, SDN144K0A, SDN144K1E & SDH164D. -->
<!--   also, SDH164K1A, B & C                                            -->
<!-- For these decoders, I added CVs 60,133, 134, 154 and                -->
<!-- updated labels and defaults to match Digitrax documentation         -->
<!-- as of June 24, 2010. I also sorted the CVs into numerical order.    -->
<!--                                       Steve Lowens  06/24/2010      -->
<!-- For version 2.11.5                                                  -->
<!--    Added SDN144A0 and SDN144A1 decoders                             -->
<!--    Corrected CV 134 max = 128                                       -->
<!--                                       Steve Lowens  06/24/2010      -->
<!--                                             -->

  <decoder>
    <family name="SFX Sound Decoders" mfg="Digitrax">
<model model="SDN144A0" numOuts="4" numFns="10" lowVersionID="16" highVersionID="16" maxMotorCurrent="1.0A (peak=2A)" formFactor="N" productID="1444" comment="SDN144A0">
	<output name="1" label="F0F Pad" connection="LED" /> 
	<output name="2" label="F0R Pad" connection="LED" /> 
	<output name="3" label="F1 Pad" connection="solder" /> 
	<output name="4" label="F2 Pad" connection="solder" /> 			
	<size length="1.05" width="0.67" height="0.25" units="inches" />
      </model>
<model model="SDN144A1" numOuts="4" numFns="10" lowVersionID="16" highVersionID="16" maxMotorCurrent="1.0A (peak=2A)" formFactor="N" productID="1445" comment="SDN144A1">
	<output name="1" label="F0F Pad" connection="LED" /> 
	<output name="2" label="F0R Pad" connection="LED" /> 
	<output name="3" label="F1 Pad" connection="solder" /> 
	<output name="4" label="F2 Pad" connection="solder" /> 			
	<size length="1.05" width="0.67" height="0.25" units="inches" />
      </model>      
      <model model="SDN144K0A" numOuts="4" numFns="10" lowVersionID="16" highVersionID="16" maxMotorCurrent="1.0A (peak=2A)" formFactor="N" productID="1442" comment="SDN144K0A">
	<output name="1" label="F0F Pad" connection="LED" /> 
	<output name="2" label="F0R Pad" connection="solder" /> 
	<output name="3" label="F1 Pad" connection="solder" /> 
	<output name="4" label="F2 Pad" connection="solder" /> 			
	<size length="1.05" width="0.67" height="0.25" units="inches" />
      </model>
      <model model="SDN144K1E" numOuts="4" numFns="10" lowVersionID="16" highVersionID="16" maxMotorCurrent="1.0A (peak=1.25A)" formFactor="N" productID="1443" comment="SDN144K1E">
	<output name="1" label="F0F Pad" connection="LED" /> 
	<output name="2" label="F0R Pad" connection="LED" /> 
	<output name="3" label="F1 Pad" connection="solder" /> 
	<output name="4" label="F2 Pad" connection="solder" /> 			
	<size length="1.05" width="0.67" height="0.25" units="inches" />
      </model>			
      <model model="SDN144PS" numOuts="4" numFns="10" lowVersionID="16" highVersionID="16" maxMotorCurrent="1.0A (peak=2A)" formFactor="N" productID="1441" comment="SDN144PS">
	<output name="1" label="F0F Pad" connection="plug" /> 
	<output name="2" label="F0R Pad" connection="plug" /> 
	<output name="3" label="F1 Pad" connection="plug" /> 
	<output name="4" label="F2 Pad" connection="plug" /> 			
	<size length="1.05" width="0.67" height="0.25" units="inches" />
      </model>
      <model model="SDH164D" numOuts="6" numFns="10" lowVersionID="16" highVersionID="16" maxMotorCurrent="1.0A (peak=2A)" formFactor="HO" productID="1641" comment="SDH164D">
	<output name="1" label="F0F Pad" connection="solder" /> 
	<output name="2" label="F0R Pad" connection="solder" /> 
	<output name="3" label="F1 Pad" connection="solder" /> 
	<output name="4" label="F2 Pad" connection="solder" /> 
	<output name="5" label="F3 Pad" connection="solder" /> 
	<output name="6" label="F4 Pad" connection="solder" /> 
	<size length="1.05" width="0.67" height="0.25" units="inches" />
      </model>
      <model model="SDH164K1A" numOuts="6" numFns="10" lowVersionID="16" highVersionID="16" maxMotorCurrent="1.0A (peak=2A)" formFactor="HO" productID="1642" comment="SDH164K1A">
	<output name="1" label="F0F Pad" connection="LED" /> 
	<output name="2" label="F0R Pad" connection="LED" /> 
	<output name="3" label="F1 Pad" connection="solder" /> 
	<output name="4" label="F2 Pad" connection="solder" /> 
	<output name="5" label="F3 Pad" connection="solder" /> 
	<output name="6" label="F4 Pad" connection="solder" /> 
	<size length="1.05" width="0.67" height="0.25" units="inches" />
      </model>
      <model model="SDH164K1B" numOuts="6" numFns="10" lowVersionID="16" highVersionID="16" maxMotorCurrent="1.0A (peak=2A)" formFactor="HO" productID="1643" comment="SDH164K1A">
	<output name="1" label="F0F Pad" connection="LED" /> 
	<output name="2" label="F0R Pad" connection="solder" /> 
	<output name="3" label="F1 Pad" connection="solder" /> 
	<output name="4" label="F2 Pad" connection="solder" /> 
	<output name="5" label="F3 Pad" connection="solder" /> 
	<output name="6" label="F4 Pad" connection="solder" /> 
	<size length="1.05" width="0.67" height="0.25" units="inches" />
      </model>
      <model model="SDH164K1C" numOuts="6" numFns="10" lowVersionID="16" highVersionID="16" maxMotorCurrent="1.0A (peak=2A)" formFactor="HO" productID="1644" comment="SDH164K1A">
	<output name="1" label="F0F Pad" connection="LED" /> 
	<output name="2" label="F0R Pad" connection="LED" /> 
	<output name="3" label="F1 Pad" connection="solder" /> 
	<output name="4" label="F2 Pad" connection="solder" /> 
	<output name="5" label="F3 Pad" connection="solder" /> 
	<output name="6" label="F4 Pad" connection="solder" /> 
	<size length="1.05" width="0.67" height="0.25" units="inches" />
      </model>
      <model model="EVO GE Diesel" numOuts="12" numFns="14" lowVersionID="16" highVersionID="49" maxMotorCurrent="1.5A (peak=2A)" formFactor="HO" productID="1041" comment="SDH104T1">
        <output name="1" label="F0F Pad" connection="solder"/>
        <output name="2" label="F0R Pad" connection="solder"/>
        <output name="3" label="F1 Pad" connection="solder"/>
        <output name="4" label="F2 Pad" connection="solder"/>
        <output name="5" label="F3 Pad" connection="solder"/>
        <output name="6" label="F4 Pad" connection="solder"/>
        <output name="7" label="F5 Pad" connection="solder"/>
        <output name="8" label="F6 Pad" connection="solder"/>
        <output name="9" label="F7 Pad" connection="solder"/>
        <output name="10" label="F8 Pad" connection="solder"/>
        <output name="11" label="F9 Pad" connection="solder"/>
        <output name="12" label="F10 Pad" connection="solder"/>
        <size length="1.05" width="0.67" height="0.25" units="inches"/>
      </model>
      <model model="AC4400" numOuts="4" numFns="8" lowVersionID="16" highVersionID="16" maxMotorCurrent="1.5A (peak=2A)" formFactor="HO" productID="1042" comment="SDH104K1A">
        <output name="1" label="LED" connection="solder"/>
        <output name="2" label="LED" connection="solder"/>
        <output name="3" label="Pad" connection="solder"/>
        <output name="4" label="Pad" connection="solder"/>
      </model>
      <model model="SD38-2" numOuts="4" numFns="8" lowVersionID="16" highVersionID="16" maxMotorCurrent="1.5A (peak=2A)" formFactor="HO" productID="1043" comment="SDH104K1B">
        <output name="1" label="LED" connection="solder"/>
        <output name="2" label="LED" connection="solder"/>
        <output name="3" label="Pad" connection="solder"/>
        <output name="4" label="Pad" connection="solder"/>
      </model>
      <model model="F40PH" numOuts="4" numFns="8" lowVersionID="16" highVersionID="16" maxMotorCurrent="1.5A (peak=2A)" formFactor="HO" productID="1044" comment="SDH104K1C">
        <output name="1" label="LED" connection="solder"/>
        <output name="2" label="LED" connection="solder"/>
        <output name="3" label="Pad" connection="solder"/>
        <output name="4" label="Pad" connection="solder"/>
      </model>
    </family>
    <programming direct="yes" paged="yes" register="yes" ops="yes" transpRead="yes"/>
    <variables>
      <variable label="Primary Address" CV="1" comment="Short address" item="Short Address" default="03">
        <shortAddressVal/>
        <label>Primary Address</label>
        <comment>Short address</comment>
      </variable>
      <variable label="Start Volts" CV="2" item="Vstart" comment="A value of 255 corresponds to 100%">
        <decVal/>
        <label>Start Volts</label>
        <comment>A value of 255 corresponds to 100%</comment>
      </variable>
      <variable label="Acceleration Rate" CV="3" item="Accel" >
        <decVal max="31"/>
        <label>Acceleration Rate</label>
      </variable>
      <variable label="Deceleration Rate" CV="4" item="Decel">
        <decVal max="31"/>
        <label>Deceleration Rate</label>
      </variable>
      <variable label="Max Volts" CV="5" item="Vhigh">
        <decVal/>
        <label>Max Volts</label>
      </variable>
      <variable label="Mid Volts" CV="6" item="Vmid">
        <decVal/>
        <label>Mid Volts</label>
      </variable>
      <variable label="Version ID" CV="7" readOnly="yes" item="Decoder Version" default="16">
        <decVal/>
        <label>Version ID</label>
      </variable>
      <variable label="Manufacturer ID" CV="8" readOnly="yes" item="Manufacturer"  default="129">
        <decVal/>
        <label>Manufacturer ID</label>
      </variable>
      <variable label="Motor Drive Frequency" CV="9" item="Total PWM Period" default="0" comment="00 is fastest, 255 is slowest">
        <decVal/>
        <label>Motor Drive Frequency</label>
        <comment>00 is fastest, 255 is slowest</comment>
      </variable>
      <variable label="Sound Time Out" CV="11" tooltip="Sound stays on after loco is de-selected" item="Sound Option 5" default="6">
        <enumVal>
          <enumChoice choice="Yes" value="0">
            <choice>Yes</choice>
          </enumChoice>
          <enumChoice choice="No" value="6">
            <choice>No</choice>
          </enumChoice>
        </enumVal>
        <label>Sound Time Out</label>
      </variable>
   <variable label="Decoder Lock ID number" CV="16" mask="XXXXXVVV" default="0">
        <decVal/>
        <label>Decoder Lock ID number</label>
      </variable>      
      <variable label="Long Address" CV="17" item="Extended Address">
        <longAddressVal/>
        <label>Long Address</label>
      </variable>
      <variable label="Advanced Consist address" CV="19" item="Consist Address" mask="XVVVVVVV" default="0">
        <decVal max="127"/>
        <label>Advanced Consist address</label>
      </variable>
      <variable label="Advanced Consist direction" CV="19" item="Consist Direction" mask="VXXXXXXX" default="0">
        <enumVal>
          <enumChoice choice="forward">
            <choice>forward</choice>
          </enumChoice>
          <enumChoice choice="reverse">
            <choice>reverse</choice>
          </enumChoice>
        </enumVal>
        <label>Advanced Consist direction</label>
      </variable>
      <variable label="Advanced Consist Function 1 Override" CV="21" mask="XXXXXXXV" item="Consist Address Active For F1" default="0">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>Advanced Consist Function 1 Override</label>
      </variable>
      <variable label="Advanced Consist Function 2 Override" CV="21" mask="XXXXXXVX" item="Consist Address Active For F2" default="0">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>Advanced Consist Function 2 Override</label>
      </variable>
      <variable label="Advanced Consist Function 3 Override" CV="21" mask="XXXXXVXX" item="Consist Address Active For F3" default="0">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>Advanced Consist Function 3 Override</label>
      </variable>
      <variable label="Advanced Consist Function 4 Override" CV="21" mask="XXXXVXXX" item="Consist Address Active For F4" default="0">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>Advanced Consist Function 4 Override</label>
      </variable>
      <variable label="Advanced Consist Function 5 Override" CV="21" mask="XXXVXXXX" item="Consist Address Active For F5" default="0">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>Advanced Consist Function 5 Override</label>
      </variable>
      <variable label="Advanced Consist Function 6 Override" CV="21" mask="XXVXXXXX" item="Consist Address Active For F6" default="0">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>Advanced Consist Function 6 Override</label>
      </variable>
      <variable label="Advanced Consist Function 7 Override" CV="21" mask="XVXXXXXX" item="Consist Address Active For F7" default="0">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>Advanced Consist Function 7 Override</label>
      </variable>
      <variable label="Advanced Consist Function 8 Override" CV="21" mask="VXXXXXXX" item="Consist Address Active For F8" default="0">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>Advanced Consist Function 8 Override</label>
      </variable>
      <variable label="Advanced Consist Function 0 Override" CV="22" mask="XXXXXXXV" item="Consist Address Active For F0" default="0">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>Advanced Consist Function 0 Override</label>
      </variable>
<!--
		<variable label="Advanced Consist Function 9 Override" CV="22" mask="XXXVXXXX" item="Consist Address Active For F9" default="0">
			<enumVal>
				<enumChoice choice="No"/>
				<enumChoice choice="Yes"/>
				</enumVal>
			</variable>
		<variable label="Advanced Consist Function 10 Override" CV="22" mask="XXVXXXXX" item="Consist Address Active For F10" default="0">
			<enumVal>
				<enumChoice choice="No"/>
				<enumChoice choice="Yes"/>
				</enumVal>
			</variable>
		<variable label="Advanced Consist Function 11 Override" CV="22" mask="XVXXXXXX" item="Consist Address Active For F11" default="0">
			<enumVal>
				<enumChoice choice="No"/>
				<enumChoice choice="Yes"/>
				</enumVal>
			</variable>
		<variable label="Advanced Consist Function 12 Override" CV="22" mask="VXXXXXXX" item="Consist Address Active For F12" default="0">
			<enumVal>
				<enumChoice choice="No"/>
				<enumChoice choice="Yes"/>
				</enumVal>
			</variable>
-->
      <variable label="Normal direction of motion" CV="29" mask="XXXXXXXV" item="Locomotive Direction">
        <enumVal>
          <enumChoice choice="forward">
            <choice>forward</choice>
          </enumChoice>
          <enumChoice choice="reverse">
            <choice>reverse</choice>
          </enumChoice>
        </enumVal>
        <label>Normal direction of motion</label>
      </variable>
      <variable label="Speed steps" CV="29" mask="XXXXXXVX" item="Speed Step Mode" default="1">
        <enumVal>
          <enumChoice choice="14">
            <choice>14</choice>
          </enumChoice>
          <enumChoice choice="28/128">
            <choice>28/128</choice>
          </enumChoice>
        </enumVal>
        <label>Speed steps</label>
      </variable>
      <variable label="Analog conversion mode" CV="29" mask="XXXXXVXX" default="1" item="Analog (DC) Operation">
        <enumVal>
          <enumChoice choice="Off">
            <choice>Off</choice>
          </enumChoice>
          <enumChoice choice="On">
            <choice>On</choice>
          </enumChoice>
        </enumVal>
        <label>Analog conversion mode</label>
      </variable>
      <variable label="Use Speed Table" CV="29" mask="XXXVXXXX" item="Speed Table Definition">
        <enumVal>
          <enumChoice choice="Use Vstart, Vmid, Vhigh">
            <choice>Use Vstart, Vmid, Vhigh</choice>
          </enumChoice>
          <enumChoice choice="Use Table">
            <choice>Use Table</choice>
          </enumChoice>
        </enumVal>
        <label>Use Speed Table</label>
      </variable>
      <variable label="Addressing Mode" CV="29" mask="XXVXXXXX" item="Address Format">
        <enumVal>
          <enumChoice choice="2 digit addressing">
            <choice>2 digit addressing</choice>
          </enumChoice>
          <enumChoice choice="4 digit addressing">
            <choice>4 digit addressing</choice>
          </enumChoice>
        </enumVal>
        <label>Addressing Mode</label>
      </variable>
      
<xi:include href="http://jmri.org/xml/decoders/digitrax/functionmap.xml"/>      
      
      <variable label="Forward light F0F effect generated" CV="49" mask="XXXXVVVV" item="Function F0F effect generated">
        <xi:include href="http://jmri.org/xml/decoders/digitrax/effectgen.xml"/>
        <label>Forward light F0F effect generated</label>
      </variable>
      <variable label="Forward light F0F behavior" CV="49" mask="VVVVXXXX" item="Function F0F behavior">
        <xi:include href="http://jmri.org/xml/decoders/digitrax/functionbehavior.xml"/>
        <label>Forward light F0F behavior</label>
      </variable>
      <variable label="Reverse light F0R effect generated" CV="50" mask="XXXXVVVV" item="Function F0R effect generated">
        <xi:include href="http://jmri.org/xml/decoders/digitrax/effectgen.xml"/>
        <label>Reverse light F0R effect generated</label>
      </variable>
      <variable label="Reverse light F0R behavior" CV="50" mask="VVVVXXXX" item="Function F0R behavior">
        <xi:include href="http://jmri.org/xml/decoders/digitrax/functionbehavior.xml"/>
        <label>Reverse light F0R behavior</label>
      </variable>
      <variable label="Function 1 effect generated" CV="51" mask="XXXXVVVV" minOut="3">
        <xi:include href="http://jmri.org/xml/decoders/digitrax/effectgen.xml"/>
        <label>Function 1 effect generated</label>
      </variable>
      <variable label="Function 1 behavior" CV="51" mask="VVVVXXXX" minOut="3">
        <xi:include href="http://jmri.org/xml/decoders/digitrax/functionbehavior.xml"/>
        <label>Function 1 behavior</label>
      </variable>
      <variable label="Function 2 effect generated" CV="52" mask="XXXXVVVV" minOut="4">
        <xi:include href="http://jmri.org/xml/decoders/digitrax/effectgen.xml"/>
        <label>Function 2 effect generated</label>
      </variable>
      <variable label="Function 2 behavior" CV="52" mask="VVVVXXXX" minOut="4">
        <xi:include href="http://jmri.org/xml/decoders/digitrax/functionbehavior.xml"/>
        <label>Function 2 behavior</label>
      </variable>
      <variable label="Switching speed enabled by F6" CV="54" mask="XXXXXXXV" tooltip="When enabled, F6 reduces top speed">
           <enumVal>
             <enumChoice choice="Disabled">
               <choice>Disabled</choice>
             </enumChoice>
             <enumChoice choice="Enabled">
               <choice>Enabled</choice>
             </enumChoice>
           </enumVal>
           <label>Switching speed enabled by F6</label>
         </variable>
         <variable label="Torque compensation" CV="54" mask="XXXVXXXX">
           <enumVal>
             <enumChoice choice="Enabled">
               <choice>Enabled</choice>
             </enumChoice>
             <enumChoice choice="Disabled">
               <choice>Disabled</choice>
             </enumChoice>
           </enumVal>
           <label>Torque compensation</label>
         </variable>
         <variable label="Decoder Lock Feature" CV="54" mask="XVXXXXXX" default="0">
           <enumVal>
             <enumChoice choice="Enabled">
               <choice>Enabled</choice>
             </enumChoice>
             <enumChoice choice="Disabled">
               <choice>Disabled</choice>
             </enumChoice>
           </enumVal>
           <label>Decoder Lock Feature</label>
      </variable>
      <variable label="Static compensation for speed stabilization" CV="55" default="128" item="EMF Static Config" comment="Factory default is 128, no effect until droop (CV57) set">
        <decVal/>
        <label>Static compensation for speed stabilization</label>
        <comment>Factory default is 128, no effect until droop (CV57) set</comment>
      </variable>
      <variable label="Dynamic compensation for speed stabilization" CV="56" default="48" item="EMF Dynamic Config" comment="Factory default is 48, no effect until droop (CV57) set">
        <decVal/>
        <label>Dynamic compensation for speed stabilization</label>
        <comment>Factory default is 48, no effect until droop (CV57) set</comment>
      </variable>
      <variable label="Solo operation droop compensation for speed stabilization" CV="57" mask="XXXXVVVV" default="6" item="EMF Droop Config" comment="0 is compenstation off, 15 is full on, typical value is 5">
        <decVal max="15"/>
        <label>Solo operation droop compensation for speed stabilization</label>
        <comment>0 is compenstation off, 15 is full on, typical value is 5</comment>
      </variable>
      <variable label="Advanced consist droop compensation for speed stabilization" CV="57" mask="VVVVXXXX" default="0" comment="0 is compenstation off, 15 is full on, typical value is 5">
        <decVal max="15"/>
        <label>Advanced consist droop compensation for speed stabilization</label>
        <comment>0 is compenstation off, 15 is full on, typical value is 5</comment>
      </variable>
   
    <!-- Sound options -->
    
         <variable label="Master Volume" CV="58" item="Sound Setting 1"  tooltip="CV 58"  default="9" comment="0-15, use about 4-8">
           <decVal max="15"/>
           <label>Master Volume</label>
           <comment>0-15, use about 4-8</comment>
         </variable>
   	<variable label="Steam/Diesel Option" CV="60" item="Sound Option 1" include="1441,1641">
              <enumVal>
   		<enumChoice choice="Steam"/>
   		<enumChoice choice="Diesel"/>
   	   </enumVal>
           <label>Steam/Diesel Option</label>           
   	</variable>
   	<variable label="Locomotive Sound Option" CV="60" item="Sound Option 1" include="1442">
              <enumVal>
   		<enumChoice choice="E8"/>
   		<enumChoice choice="F40"/>
              </enumVal>
           <label>Locomotive Sound Option</label>           
   	</variable>
   	<variable label="Locomotive Sound Option" CV="60" item="Sound Option 1" include="1443">
              <enumVal>
   		<enumChoice choice="SD40-2"/>
   		<enumChoice choice="GE-Evo"/>
              </enumVal>
           <label>Locomotive Sound Option</label>           
   	</variable>
   	<variable label="Locomotive Sound Option" CV="60" item="Sound Option 1" include="1444">
              <enumVal>
   		<enumChoice choice="GP38"/>
   		<enumChoice choice="C420"/>
              </enumVal>
           <label>Locomotive Sound Option</label>           
   	</variable>
   	<variable label="Locomotive Sound Option" CV="60" item="Sound Option 1" include="1445">
              <enumVal>
   		<enumChoice choice="SD60"/>
   		<enumChoice choice="SD40"/>
              </enumVal>
           <label>Locomotive Sound Option</label>           
   	</variable>
      <variable label="Speed Compensation Control" CV="61" mask="XXXVXXXX">
        <enumVal>
          <enumChoice choice="F5 has no effect on speed compensation">
            <choice>F5 has no effect on speed compensation</choice>
          </enumChoice>
          <enumChoice choice="F5 On disables speed compensation">
            <choice>F5 On disables speed compensation</choice>
          </enumChoice>
        </enumVal>
        <label>Speed Compensation Control</label>
      </variable>
      <variable label="Digitrax Transponding" CV="61" mask="XXXXXXVX" tooltip="Activates Digitrax Transponding" item="Advanced Ack">
        <enumVal>
          <enumChoice choice="Off">
            <choice>Off</choice>
          </enumChoice>
          <enumChoice choice="On">
            <choice>On</choice>
          </enumChoice>
        </enumVal>
        <label>Digitrax Transponding</label>
      </variable>
      <variable label="Split field motor" CV="61" mask="XXXXXVXX">
        <enumVal>
          <enumChoice choice="Normal DC motor">
            <choice>Normal DC motor</choice>
          </enumChoice>
          <enumChoice choice="Split field/AC motor">
            <choice>Split field/AC motor</choice>
          </enumChoice>
        </enumVal>
        <label>Split field motor</label>
      </variable>
      <variable label="Vstart/Vmid/Vfull in 128 step mode" CV="61" mask="XXVXXXXX">
        <enumVal>
          <enumChoice choice="Enabled">
            <choice>Enabled</choice>
          </enumChoice>
          <enumChoice choice="Disabled">
            <choice>Disabled</choice>
          </enumChoice>
        </enumVal>
        <label>Vstart/Vmid/Vfull in 128 step mode</label>
      </variable>
      <variable label="Short-circuit protection" CV="61" mask="XVXXXXXX" comment="Undocumented feature, occasionally requested by Digitrax tech support">
        <enumVal>
          <enumChoice choice="Enabled">
            <choice>Enabled</choice>
          </enumChoice>
          <enumChoice choice="Disabled">
            <choice>Disabled</choice>
          </enumChoice>
        </enumVal>
        <label>Short-circuit protection</label>
        <comment>Undocumented feature, occasionally requested by Digitrax tech support</comment>
      </variable>
      <variable label="Lamp keep-alive voltage" CV="62" mask="VVVVXXXX" item="Global lighting option 1" comment="0 is no keep-alive, use with LEDs">
        <decVal max="15"/>
        <label>Lamp keep-alive voltage</label>
        <comment>0 is no keep-alive, use with LEDs</comment>
      </variable>
      <variable label="FX rate adjust" CV="62" mask="XXXXVVVV" item="Global lighting option 2" comment="0 is fast, 15 is slow, 4 is recommended for start">
        <decVal max="15"/>
        <label>FX rate adjust</label>
        <comment>0 is fast, 15 is slow, 4 is recommended for start</comment>
      </variable>
      <variable label="Ditch light hold-over time" CV="63" item="Global lighting option 3" comment="0 is none, 40 is realistic 5 seconds, 255 is about 20 seconds">
        <decVal/>
        <label>Ditch light hold-over time</label>
        <comment>0 is none, 40 is realistic 5 seconds, 255 is about 20 seconds</comment>
      </variable>
      <variable label="Kick Start" CV="65">
        <decVal/>
        <label>Kick Start</label>
      </variable>
      <variable label="Forward Trim" CV="66">
        <decVal/>
        <label>Forward Trim</label>
      </variable>
      <variable label="Speed Table" CV="67">
        <speedTableVal/>
        <label>Speed Table</label>
      </variable>
      <variable label="Reverse Trim" CV="95">
        <decVal/>
        <label>Reverse Trim</label>
      </variable>
      <variable label="User Private ID #1" CV="105" item="User Id #1">
        <decVal/>
        <label>User Private ID #1</label>
      </variable>
      <variable label="User Private ID #2" CV="106" item="User Id #2">
        <decVal/>
        <label>User Private ID #2</label>
      </variable>
      <variable label="Function 3 effect generated" CV="113" mask="XXXXVVVV" minOut="5">
        <xi:include href="http://jmri.org/xml/decoders/digitrax/effectgen.xml"/>
        <label>Function 3 effect generated</label>
      </variable>
      <variable label="Function 3 behavior" CV="113" mask="VVVVXXXX" minOut="5">
        <xi:include href="http://jmri.org/xml/decoders/digitrax/functionbehavior.xml"/>
        <label>Function 3 behavior</label>
      </variable>
      <variable label="Function 4 effect generated" CV="114" mask="XXXXVVVV" minOut="6">
        <xi:include href="http://jmri.org/xml/decoders/digitrax/effectgen.xml"/>
        <label>Function 4 effect generated</label>
      </variable>
      <variable label="Function 4 behavior" CV="114" mask="VVVVXXXX" minOut="6">
        <xi:include href="http://jmri.org/xml/decoders/digitrax/functionbehavior.xml"/>
        <label>Function 4 behavior</label>
      </variable>
      <variable label="Function 5 effect generated" CV="115" mask="XXXXVVVV" minOut="7">
        <xi:include href="http://jmri.org/xml/decoders/digitrax/effectgen.xml"/>
        <label>Function 5 effect generated</label>
      </variable>
      <variable label="Function 5 behavior" CV="115" mask="VVVVXXXX" minOut="7">
        <xi:include href="http://jmri.org/xml/decoders/digitrax/functionbehavior.xml"/>
        <label>Function 5 behavior</label>
      </variable>
      <variable label="Function 6 effect generated" CV="116" mask="XXXXVVVV" minOut="8">
        <xi:include href="http://jmri.org/xml/decoders/digitrax/effectgen.xml"/>
        <label>Function 6 effect generated</label>
      </variable>
      <variable label="Function 6 behavior" CV="116" mask="VVVVXXXX" minOut="8">
        <xi:include href="http://jmri.org/xml/decoders/digitrax/functionbehavior.xml"/>
        <label>Function 6 behavior</label>
      </variable>
    <!-- Sound options -->
      <variable label="Notch Rate" CV="132"  tooltip="CV 132" item="Sound Setting 2" default="127">
        <decVal/>
        <label>Notch Rate</label>
      </variable>
      <variable label="Steam Chuff/CAM Config" CV="133" tooltip="CV 133" item="Sound Setting 14" default="63"  include="1441,1641">
	<decVal max="128"/>
        <label>Steam Chuff/CAM Config</label>			
      </variable>
      <variable label="Steam Gear Ratio Trim" CV="134" tooltip="CV 134" item="Sound Setting 15" default="32"  include="1441,1641">
	<decVal max="128"/>
        <label>Steam Gear Ratio Trim</label>			
      </variable>
      <variable label="Volume When Muted" CV="135"  tooltip="CV 135" item="Sound Setting 3">
        <decVal/>
        <label>Volume When Muted</label>
      </variable>
      <variable label="Prime Mover/Chuff Volume" CV="140"  tooltip="CV 140" item="Sound Setting 4" default="60">
        <decVal max="64"/>
        <label>Prime Mover/Chuff Volume</label>
      </variable>
      <variable label="Bell Volume" CV="141"  tooltip="CV 141" item="Sound Setting 5" default="25">
        <decVal max="64"/>
        <label>Bell Volume</label>
      </variable>
      <variable label="Horn/Whistle Volume" CV="142"  tooltip="CV 142" item="Sound Setting 6" default="60">
        <decVal max="64"/>
        <label>Horn/Whistle Volume</label>
      </variable>
      <variable label="Air Features Volume" CV="143" tooltip="CV 143" item="Sound Setting 7" default="30">
        <decVal max="64"/>
        <label>Air Features Volume</label>
      </variable>
      <variable label="Misc Volumes (reserved)" CV="145" tooltip="CV 145" item="Sound Setting 8" default="15">
        <decVal max="64"/>
        <label>Misc Volumes (reserved)</label>
      </variable>
      <variable label="Bell Ring Rate" CV="146" tooltip="CV 146" item="Sound Setting 9" comment="24msec counts" default="9">
        <decVal max="100"/>
        <label>Bell Ring Rate</label>
        <comment>24msec counts</comment>
      </variable>
      <variable label="Air Drier Rate" CV="147"  tooltip="CV 147" item="Sound Setting 10" default="50">
        <decVal max="64"/>
        <label>Air Drier Rate</label>
      </variable>
      <variable label="Compressor Run/Popoff Rate" CV="148" tooltip="CV 148" item="Sound Setting 11" default="30">
        <decVal/>
        <label>Compressor Run/Popoff Rate</label>
      </variable>
      <variable label="Compressor On Time" CV="149" tooltip="CV 149" item="Sound Setting 12"  default="20">
        <decVal/>
        <label>Compressor On Time</label>
      </variable>
      <variable label="Horn Selector" CV="150" item="Sound Option 2" include="1443">
        <enumVal>
          <enumChoice choice="Default Horn">
            <choice>Standard Horn</choice>
          </enumChoice>
          <enumChoice choice="Alternate Horn 1">
            <choice>Alternate Horn 1</choice>
          </enumChoice>
          <enumChoice choice="Alternate Horn 2">
            <choice>Alternate Horn 2</choice>
          </enumChoice>
          <enumChoice choice="Alternate Horn 3">
            <choice>Alternate Horn 3</choice>
          </enumChoice>
        </enumVal>
        <label>Horn Selector</label>
      </variable>

<variable label="Horn Selector" CV="150" item="Sound Option 2" include="1444,1445">
        <enumVal>
          <enumChoice choice="Default Horn">
            <choice>Standard Horn</choice>
          </enumChoice>
          <enumChoice choice="Alternate Horn 1">
            <choice>Alternate Horn 1</choice>
          </enumChoice>
          <enumChoice choice="Alternate Horn 2">
            <choice>Alternate Horn 2</choice>
          </enumChoice>
          <enumChoice choice="Alternate Horn 3">
            <choice>Alternate Horn 3</choice>
          </enumChoice>
          <enumChoice choice="Playable Horn 1" value = "128">
            <choice>Alternate Horn 128</choice>
          </enumChoice>
          <enumChoice choice="Playable Horn 2">
            <choice>Alternate Horn 129</choice>
          </enumChoice>
          <enumChoice choice="Playable Horn 3">
            <choice>Alternate Horn 130</choice>
          </enumChoice>
          <enumChoice choice="Playable Horn 4">
            <choice>Alternate Horn 131</choice>
          </enumChoice>        </enumVal>
        <label>Horn Selector</label>
      </variable>



      <variable label="Horn Selector" CV="150" item="Sound Option 2" include="1041,1042,1043,1044,1441,1442,1641,1642,1643,1644">
        <enumVal>
          <enumChoice choice="Standard Horn">
            <choice>Standard Horn</choice>
          </enumChoice>
          <enumChoice choice="Playable Horn">
            <choice>Playable Horn</choice>
          </enumChoice>
          <enumChoice choice="Alternate Horn">
            <choice>Alternate Horn</choice>
          </enumChoice>
        </enumVal>
        <label>Horn Selector</label>
      </variable>
      <variable label="Peak Speed for Auto coupler/brake on dir change" CV="151" item="Sound Option 3" default="48">
        <decVal max="64"/>
        <label>Peak Speed for Auto coupler/brake on dir change</label>
      </variable>
      <variable label="Sound Project Author ID" CV="152" default="221">
        <decVal/>
        <label>Sound Project Author ID</label>
      </variable>
      <variable label="Sound Project ID" CV="153" default="1" include="1041">
	<decVal/>
        <label>Sound Project ID</label>			
      </variable>
      <variable label="Sound Project ID" CV="153" default="2" include="1042,1642">
	<decVal/>
        <label>Sound Project ID</label>			
      </variable>
      <variable label="Sound Project ID" CV="153" default="3" include="1043,1643">
	<decVal/>
        <label>Sound Project ID</label>			
      </variable>
      <variable label="Sound Project ID" CV="153" default="4" include="1044,1644">
	<decVal/>
        <label>Sound Project ID</label>			
      </variable>
      <variable label="Sound Project ID" CV="153" default="5" include="1441,1641">
	<decVal/>
        <label>Sound Project ID</label>			
      </variable>
      <variable label="Sound Project ID" CV="153" default="25" include="1442">
	<decVal/>
        <label>Sound Project ID</label>			
      </variable>
      <variable label="Sound Project ID" CV="153" default="23" include="1443">
	<decVal/>
        <label>Sound Project ID</label>			
      </variable>
      <variable label="Sound Project ID" CV="153" default="21" include="1444">
	<decVal/>
        <label>Sound Project ID</label>			
      </variable>
      <variable label="Sound Project ID" CV="153" default="34" include="1445">
	<decVal/>
        <label>Sound Project ID</label>			
      </variable>      
      <variable label="Steam Blowdown/Safety Volume" CV="154" tooltip="CV 154" item="Sound Setting 13" default="60" include="1441,1641">
	<decVal max="64"/>
        <label>Steam Blowdown/Safety Volume</label>			
      </variable>
      <variable label="Notching Mode" CV="155" item="Sound Option 4" tooltip="Not supported on early EVO">
        <enumVal>
          <enumChoice choice="Automatic">
            <choice>Automatic</choice>
          </enumChoice>
          <enumChoice choice="Semi-Automatic">
            <choice>Semi-Automatic</choice>
          </enumChoice>
          <enumChoice choice="Manual">
            <choice>Manual</choice>
          </enumChoice>
        </enumVal>
        <label>Notching Mode</label>
      </variable>
    </variables>
    <resets>
      <factReset label="Reset All CVs" CV="8" default="8"/>
      <factReset label="Reset All CVs except speed table" CV="8" default="9"/>
    </resets>
  </decoder>
  <pane name="Digitrax">
    <column>
      <display item="Advanced consist droop compensation for speed stabilization"/>
      <display item="Speed Compensation Control"/>
      <display item="Split field motor"/>
      <display item="Vstart/Vmid/Vfull in 128 step mode"/>
      <display item="Short-circuit protection"/>
      <display item="Switching speed enabled by F6"/>
      <display item="Torque compensation"/>
      <display item="Decoder Lock Feature" tooltip="Activates Decoder Locking feature"/>
      <display item="Decoder Lock ID number" tooltip="Set this decoder's unique locking ID number"/>
      <display item="Sound Project Author ID"/>
      <display item="Sound Project ID"/>
	<label label="  ">	
      </label>	
        <label label="DIGITRAX SOUND DECODER NOTES: ">
      </label>	        
      <label label="Sound labels and values are shown for decoders as manufactured.">
      </label>  
        <label label="These labels and values may not match downloaded sound projects.">
     </label>   
        <label label="Please use the CVs pane to adjust downloaded sound projects.">
      </label>
      <label label="If your locomotive with downloaded sound file is silent,try setting CV 60=0.">
      </label>
      <label label="To mute bell or horn, set the sound level = 1, not 0.">
      </label>            
    </column>
    <name>Digitrax</name>
  </pane>
</decoder-config>

