[simpits-tech] EPL-code

Mark Doran simpits-tech@simpits.org
Mon, 10 Mar 2003 23:47:39 -0800


This is a multi-part message in MIME format.

------=_NextPart_000_003C_01C2E75F.6FA4B5D0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

There need to be semi-colons after the setpoint() and clearpoint() calls
(i.e. before each closing curly brace.  Also the terms "keypress1" and
"keypress2" are not defined - the compiler tries to interpret those are
module/row/button specifiers and can't unless you either a) use the
correct syntax inline in the definebutton() statement or #define them to
be something that matches the correct syntax.
 
The EPICenter compiler will give you clear error messages for all of the
above.  If you didn't see those I wonder if you are actually building
the code in EPICenter or just trying to download it.  If you don't
compile it first, you won't see the error messages from the compiler
about your bugs in the EPL code and it would also explain why you are
getting an error on a .joy file.the process of compiling generates the
.joy file (and the others required).  Are you doing a project->make
before you do a project->load??  The correct process requires a "make"
then a "load" - sorry if you already know that but what you describe
fits a 'missing compile' step so I'm just checking for simple solutions
first! ;-)
 
Also did you mean to have the "on" press of keypress1 turn the LED on
while the "off" release of the keypress2 turns the light off??  That's
not wrong, just looks a bit odd ;-)
 
To which module/row/button numbers are the two keys you name keypress1
and keypress2 connected??
 
I would strongly recommend that you take some time to read the EPIC EPL
tutorials that are scattered around places such as:
 
  http://www.epicmapper.com/SupportPages/en/EPIC/CommandRef/CmdRef1.htm
 
A bit out of date versus the newest of the new compilers but it's an
online copy of Ralph's documentation.  Plus there's a more tutorial
treatment at the same site:
 
  http://www.epicmapper.com/SupportPages/en/EPIC/EpicTutorial.htm
 
Seems to be incomplete at the end but great as far as it does go.
 
And once you get the basic switches sorted out you will probably want to
play with Martin Schmit's most excellent F4Reader and the pigeon hole
EPL coding that you can read about at Martin's site:
 
  http://www.xflight.de/f16/index_e.htm
 
then look under "simulator->Communication->EPIC"
 
Lots of good help to get you going.
 
Cheers,
 
Mark.
 
 
-----Original Message-----
From: simpits-tech-admin@simpits.org
[mailto:simpits-tech-admin@simpits.org] On Behalf Of Frank Riedel
Sent: Monday, March 10, 2003 7:15 AM
To: simpits-tech@simpits.org
Subject: [simpits-tech] EPL-code
 
Hi Guys !
Whats wrong here:
 
#define FASTSCAN 0 
definemodule(0,FASTSCAN,0,7) 
 
#define OUTPUT 2
definemodule (0,OUTPUT,0,4)
#define Testled 0,0,0b00000001
 
:LedOn {setpoint(Testled)}
:LedOff {clearpoint(Testled)}
definebutton(keypress1,on,LedOn)
definebutton(keypress2,off,LedOff)
 

All the best
Frank

------=_NextPart_000_003C_01C2E75F.6FA4B5D0
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3DUS-ASCII">


<meta name=3DProgId content=3DWord.Document>
<meta name=3DGenerator content=3D"Microsoft Word 10">
<meta name=3DOriginator content=3D"Microsoft Word 10">
<link rel=3DFile-List href=3D"cid:filelist.xml@01C2E75F.6F182D40">
<!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;
	mso-font-charset:0;
	mso-generic-font-family:swiss;
	mso-font-pitch:variable;
	mso-font-signature:1627421319 -2147483648 8 0 66047 0;}
@font-face
	{font-family:"Lucida Console";
	panose-1:2 11 6 9 4 5 4 2 2 4;
	mso-font-charset:0;
	mso-generic-font-family:modern;
	mso-font-pitch:fixed;
	mso-font-signature:-2147482993 6144 0 0 31 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-parent:"";
	margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;
	text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;
	text-underline:single;}
span.EmailStyle17
	{mso-style-type:personal-reply;
	mso-style-noshow:yes;
	mso-ansi-font-size:10.0pt;
	mso-bidi-font-size:10.0pt;
	font-family:"Lucida Console";
	mso-ascii-font-family:"Lucida Console";
	mso-hansi-font-family:"Lucida Console";
	color:blue;
	font-weight:normal;
	font-style:normal;
	text-decoration:none;
	text-underline:none;
	text-decoration:none;
	text-line-through:none;}
span.SpellE
	{mso-style-name:"";
	mso-spl-e:yes;}
span.GramE
	{mso-style-name:"";
	mso-gram-e:yes;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;
	mso-header-margin:.5in;
	mso-footer-margin:.5in;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */=20
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0in 5.4pt 0in 5.4pt;
	mso-para-margin:0in;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";}
</style>
<![endif]--><!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext=3D"edit">
  <o:idmap v:ext=3D"edit" data=3D"1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body bgcolor=3Dwhite lang=3DEN-US link=3Dblue vlink=3Dpurple =
style=3D'tab-interval:.5in'>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3D"Lucida =
Console"><span
style=3D'font-size:10.0pt;font-family:"Lucida Console";color:blue'>There =
need to
be semi-colons after the <span class=3DSpellE><span =
class=3DGramE>setpoint</span></span><span
class=3DGramE>(</span>) and <span class=3DSpellE>clearpoint</span>() =
calls (i.e. before
each closing curly brace.<span style=3D'mso-spacerun:yes'>&nbsp; =
</span>Also the
terms &#8220;keypress1&#8221; and &#8220;keypress2&#8221; are not =
defined &#8211;
the compiler tries to interpret those are module/row/button <span =
class=3DSpellE>specifiers</span>
and can&#8217;t unless you either a) use the correct syntax inline in =
the <span
class=3DSpellE><span class=3DGramE>definebutton</span></span><span =
class=3DGramE>(</span>)
statement or #define them to be something that matches the correct =
syntax.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3D"Lucida =
Console"><span
style=3D'font-size:10.0pt;font-family:"Lucida =
Console";color:blue'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3D"Lucida =
Console"><span
style=3D'font-size:10.0pt;font-family:"Lucida Console";color:blue'>The =
<span
class=3DSpellE>EPICenter</span> compiler will give you clear error =
messages for
all of the above.<span style=3D'mso-spacerun:yes'>&nbsp; </span>If you =
didn&#8217;t
see those I wonder if you are actually building the code in <span =
class=3DSpellE>EPICenter</span>
or just trying to download it.<span style=3D'mso-spacerun:yes'>&nbsp; =
</span>If
you don&#8217;t compile it first, you won&#8217;t see the error messages =
from
the compiler about your bugs in the EPL code and it would also explain =
why you
are getting an error on a .joy file&#8230;the process of compiling =
generates
the .joy file (and the others required).<span =
style=3D'mso-spacerun:yes'>&nbsp;
</span>Are you doing a project-&gt;make before you do a =
project-&gt;load??<span
style=3D'mso-spacerun:yes'>&nbsp; </span>The correct process requires a =
&#8220;make&#8221;
then a &#8220;load&#8221; &#8211; sorry if you already know that but =
what you
describe fits a &#8216;missing compile&#8217; step so I&#8217;m just =
checking
for simple solutions first! ;-)<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3D"Lucida =
Console"><span
style=3D'font-size:10.0pt;font-family:"Lucida =
Console";color:blue'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3D"Lucida =
Console"><span
style=3D'font-size:10.0pt;font-family:"Lucida Console";color:blue'>Also =
did you
mean to have the &#8220;on&#8221; press of keypress1 turn the LED on =
while the &#8220;off&#8221;
release of the keypress2 turns the light off??<span
style=3D'mso-spacerun:yes'>&nbsp; </span>That&#8217;s not wrong, just =
looks a bit
odd ;-)<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3D"Lucida =
Console"><span
style=3D'font-size:10.0pt;font-family:"Lucida =
Console";color:blue'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3D"Lucida =
Console"><span
style=3D'font-size:10.0pt;font-family:"Lucida Console";color:blue'>To =
which
module/row/button numbers are the two keys you name keypress1 and =
keypress2
connected??<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3D"Lucida =
Console"><span
style=3D'font-size:10.0pt;font-family:"Lucida =
Console";color:blue'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3D"Lucida =
Console"><span
style=3D'font-size:10.0pt;font-family:"Lucida Console";color:blue'>I =
would
strongly recommend that you take some time to read the EPIC EPL =
tutorials that
are scattered around places such as:<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3D"Lucida =
Console"><span
style=3D'font-size:10.0pt;font-family:"Lucida =
Console";color:blue'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3D"Lucida =
Console"><span
style=3D'font-size:10.0pt;font-family:"Lucida Console";color:blue'><span
style=3D'mso-spacerun:yes'>&nbsp; </span><a
href=3D"http://www.epicmapper.com/SupportPages/en/EPIC/CommandRef/CmdRef1=
.htm">http://www.epicmapper.com/SupportPages/en/EPIC/CommandRef/CmdRef1.h=
tm</a><o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3D"Lucida =
Console"><span
style=3D'font-size:10.0pt;font-family:"Lucida =
Console";color:blue'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3D"Lucida =
Console"><span
style=3D'font-size:10.0pt;font-family:"Lucida Console";color:blue'>A bit =
out of
date versus the newest of the new compilers but it&#8217;s an online =
copy of
Ralph&#8217;s documentation.<span style=3D'mso-spacerun:yes'>&nbsp; =
</span>Plus there&#8217;s
a more tutorial treatment at the same site:<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3D"Lucida =
Console"><span
style=3D'font-size:10.0pt;font-family:"Lucida =
Console";color:blue'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3D"Lucida =
Console"><span
style=3D'font-size:10.0pt;font-family:"Lucida Console";color:blue'><span
style=3D'mso-spacerun:yes'>&nbsp; </span><a
href=3D"http://www.epicmapper.com/SupportPages/en/EPIC/EpicTutorial.htm">=
http://www.epicmapper.com/SupportPages/en/EPIC/EpicTutorial.htm</a><o:p><=
/o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3D"Lucida =
Console"><span
style=3D'font-size:10.0pt;font-family:"Lucida =
Console";color:blue'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><span class=3DGramE><font size=3D2 color=3Dblue
face=3D"Lucida Console"><span =
style=3D'font-size:10.0pt;font-family:"Lucida Console";
color:blue'>Seems to be incomplete at the end but great as far as it =
does go.</span></font></span><font
size=3D2 color=3Dblue face=3D"Lucida Console"><span =
style=3D'font-size:10.0pt;
font-family:"Lucida Console";color:blue'><o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3D"Lucida =
Console"><span
style=3D'font-size:10.0pt;font-family:"Lucida =
Console";color:blue'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3D"Lucida =
Console"><span
style=3D'font-size:10.0pt;font-family:"Lucida Console";color:blue'>And =
once you
get the basic switches sorted out you will probably want to play with =
Martin <span
class=3DSpellE>Schmit&#8217;s</span> most excellent F4Reader and the =
pigeon hole EPL
coding that you can read about at Martin&#8217;s =
site:<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3D"Lucida =
Console"><span
style=3D'font-size:10.0pt;font-family:"Lucida =
Console";color:blue'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3D"Lucida =
Console"><span
style=3D'font-size:10.0pt;font-family:"Lucida Console";color:blue'><span
style=3D'mso-spacerun:yes'>&nbsp; </span><a
href=3D"http://www.xflight.de/f16/index_e.htm">http://www.xflight.de/f16/=
index_e.htm</a><o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3D"Lucida =
Console"><span
style=3D'font-size:10.0pt;font-family:"Lucida =
Console";color:blue'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><span class=3DGramE><font size=3D2 color=3Dblue
face=3D"Lucida Console"><span =
style=3D'font-size:10.0pt;font-family:"Lucida Console";
color:blue'>then</span></font></span><font size=3D2 color=3Dblue
face=3D"Lucida Console"><span =
style=3D'font-size:10.0pt;font-family:"Lucida Console";
color:blue'> look under =
&#8220;simulator-&gt;Communication-&gt;EPIC&#8221;<o:p></o:p></span></fon=
t></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3D"Lucida =
Console"><span
style=3D'font-size:10.0pt;font-family:"Lucida =
Console";color:blue'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><span class=3DGramE><font size=3D2 color=3Dblue
face=3D"Lucida Console"><span =
style=3D'font-size:10.0pt;font-family:"Lucida Console";
color:blue'>Lots of good help to get you =
going.</span></font></span><font
size=3D2 color=3Dblue face=3D"Lucida Console"><span =
style=3D'font-size:10.0pt;
font-family:"Lucida Console";color:blue'><o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3D"Lucida =
Console"><span
style=3D'font-size:10.0pt;font-family:"Lucida =
Console";color:blue'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3D"Lucida =
Console"><span
style=3D'font-size:10.0pt;font-family:"Lucida =
Console";color:blue'>Cheers,<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3D"Lucida =
Console"><span
style=3D'font-size:10.0pt;font-family:"Lucida =
Console";color:blue'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3D"Lucida =
Console"><span
style=3D'font-size:10.0pt;font-family:"Lucida =
Console";color:blue'>Mark.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3D"Lucida =
Console"><span
style=3D'font-size:10.0pt;font-family:"Lucida =
Console";color:blue'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3D"Lucida =
Console"><span
style=3D'font-size:10.0pt;font-family:"Lucida =
Console";color:blue'><o:p>&nbsp;</o:p></span></font></p>

<div style=3D'border:none;border-left:solid blue 1.5pt;padding:0in 0in =
0in 4.0pt'>

<p class=3DMsoNormal><font size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;
font-family:Tahoma'>-----Original Message-----<br>
<b><span style=3D'font-weight:bold'>From:</span></b>
simpits-tech-admin@simpits.org [mailto:simpits-tech-admin@simpits.org] =
<b><span
style=3D'font-weight:bold'>On Behalf Of </span></b>Frank Riedel<br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Monday, March 10, =
2003 7:15
AM<br>
<b><span style=3D'font-weight:bold'>To:</span></b> =
simpits-tech@simpits.org<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> [simpits-tech] =
EPL-code</span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Hi Guys !</span></font><o:p></o:p></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Whats wrong here:</span></font><o:p></o:p></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>#define FASTSCAN 0 <br>
definemodule(0,FASTSCAN,0,7) </span></font><o:p></o:p></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>#define OUTPUT 2<br>
definemodule (0,OUTPUT,0,4)<br>
#define Testled 0,0,0b00000001</span></font><o:p></o:p></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>:LedOn {setpoint(Testled)}<br>
:LedOff {clearpoint(Testled)}<br>
definebutton(keypress1,on,LedOn)<br>
definebutton(keypress2,off,LedOff)</span></font><o:p></o:p></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><br>
All the best<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Frank</span></font><o:p></o:p></p>

</div>

</div>

</div>

</body>

</html>

------=_NextPart_000_003C_01C2E75F.6FA4B5D0--