80 lines
3.1 KiB
Plaintext
80 lines
3.1 KiB
Plaintext
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta name="generator" content="HTML Tidy for HTML5 for Apple macOS version 5.8.0">
|
|
<title>Decoder Definition</title><!--#include virtual="/help/en/parts/Style.shtml" -->
|
|
<!-- DecoderPro Styles -->
|
|
|
|
<style>
|
|
.dp-center {text-align: center;}
|
|
.dp-right {text-align: right;}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<!--#include virtual="/help/en/parts/Header.shtml" -->
|
|
|
|
<div id="mBody">
|
|
<!--#include virtual="Sidebar.shtml" -->
|
|
|
|
<div id="mainContent">
|
|
<h1>Decoder Definition</h1>
|
|
|
|
<h2>Testing</h2>
|
|
|
|
<div class="dp-right">
|
|
<p><a href="Dcode_Format.shtml">Previous</a> | <a href="Dcode_Submit.shtml">Next</a></p>
|
|
|
|
<p><a href="index.shtml#DecoderDefinition">Back to Index</a><a href="index.shtml#Main"></a>
|
|
</p>
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
<h4>Testing the decoder definition</h4>
|
|
|
|
<p>At this point, you've created a new configuration file! You can check it for syntax by
|
|
selecting the <a href="Main_Debug.shtml#ValidateXML">Validate XML File</a> item from the
|
|
<a href="Main_Debug.shtml">Debug menu</a>. The <strong>Open</strong> dialog is displayed;
|
|
select your file and click the <span class="textbutton">Open</span> button. If
|
|
all is well, a dialog box will display that says "OK". If not, you'll get a completely
|
|
incomprehensible error message. About the only useful part of that message is the line
|
|
number. Re-open the editor to that line and try to see what's wrong with the syntax.</p>
|
|
|
|
<p>Once you have a decoder definition file that checks out for syntax, you need to try it in
|
|
DecoderPro. Your new file should copied into the jmri decoders folder (windows C:\Program
|
|
Files\JMRI\xml\decoders).</p>
|
|
|
|
<ul>
|
|
<li>Now start up DecoderPro, and open the <a href="Main_Debug.shtml">Debug menu</a>. Select
|
|
the <strong>Recreate Decoder Index</strong> option.
|
|
</li>
|
|
|
|
<li>The computer will run for a minute or two with the selection highlighted. As soon as
|
|
that goes away, the new decoder index should be created and your new definition should be
|
|
available to use.</li>
|
|
</ul>
|
|
After including in your decoder definitions for DecoderPro® you will want to test the
|
|
definition on an actual decoder installation using the Programmers available to you. When
|
|
satisfied that it works as expected, then follow the next step.
|
|
<p>When you are happy with your definition, you'll probably want to share it with the JMRI
|
|
world, so next we'll look at submitting the definition to JMRI for inclusion in the next
|
|
release.</p>
|
|
|
|
<hr>
|
|
|
|
<div class="dp-right">
|
|
<p><a href="Dcode_Submit.shtml"></a><a href="Dcode_Format.shtml">Previous</a> | <a href=
|
|
"Dcode_Submit.shtml">Next</a></p>
|
|
|
|
<p><a href="index.shtml#DecoderDefinition">Back to Index</a>
|
|
</p>
|
|
</div>
|
|
<!--#include virtual="/help/en/parts/Footer.shtml" -->
|
|
</div>
|
|
<!-- closes #mainContent-->
|
|
</div>
|
|
<!-- closes #mBody-->
|
|
<script src="/js/help.js"></script>
|
|
</body>
|
|
</html>
|