/
Dcode_Testing.shtml
91 lines (75 loc) · 3.35 KB
/
Dcode_Testing.shtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta name="generator" content=
"HTML Tidy for Mac OS X (vers 31 October 2006 - Apple Inc. build 15.17), see www.w3.org">
<title>Decoder Definition</title><!-- Style -->
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii">
<link rel="stylesheet" type="text/css" href="/css/default.css"
media="screen">
<link rel="stylesheet" type="text/css" href="/css/print.css"
media="print">
<link rel="icon" href="/images/jmri.ico" type="image/png">
<link rel="home" title="Home" href="/"><!-- /Style -->
</head>
<body>
<!--#include virtual="/Header" -->
<div id="mBody">
<!--#include virtual="Sidebar" -->
<div id="mainContent">
<h1>Decoder Definition</h1>
<h2>Testing</h2>
<div align="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 <input name="button" id="button" value="Open" type=
"submit"> . 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 align="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="/Footer" -->
</div><!-- closes #mainContent-->
</div><!-- closes #mBody-->
</body>
</html>