<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2314.1000" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I am a new user of McStas. I have a problem each
time when using McStas to generate c code.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>When I using:</FONT></DIV>
<DIV><FONT face=Arial size=2> </FONT></DIV>
<DIV><FONT face=Arial size=2>mcstas curved_bender.instr</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>It says:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>' in file 'curved_bender.instr', line 1.<BR>parse
error, expecting `"NXDICT"' or `"NXDICTFILE"' or `"TRACE"' at line 1.<BR>Errors
encountered during parse.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Would you please give me some advice?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Many advanced thanks.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The curved_bender.instr is like this:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>DEFINE INSTRUMENT curved_bender()</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>TRACE<BR>COMPONENT source = Source_flat(radius =
0.015, dist = 1,<BR> xw=0.024, yh=0.015, E0=8, dE=7)<BR> AT (0,0,0)
ABSOLUTE</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>COMPONENT slit1 = Slit(xmin=-0.02,
xmax=0.02,<BR>
ymin=-0.02, ymax=0.02)<BR> AT (0, 0, 2) RELATIVE source ROTATED (0, 0, 0)
RELATIVE source</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>COMPONENT arm = Arm()<BR> AT (0, 0, 2)
RELATIVE source ROTATED (0, 0, 0) RELATIVE source</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>COMPONENT bender = Bender(w=0.04, h=0.04, r=65,
d=0,
Win=0.046154,<BR>
k=10, R0a=1.0, Qca=0.022, alphaa=3.64,
ma=3.5,Wa=0,<BR>
R0i=1.0, Qci=0.022, alphai=3.64,
mi=3.5,Wi=0,<BR>
R0s=1.0, Qcs=0.022, alphas=3.64, ms=3.5,Ws=0,)<BR> AT (0,0,0) RELATIVE arm
ROTATED (0, 0, 0) RELATIVE arm</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>COMPONENT slit2 = Slit(xmin=-0.02,
xmax=0.02,<BR>
ymin=-0.02, ymax=0.02)<BR> AT (0, 0, 2.9989) RELATIVE arm ROTATED
(0,-0.046154,0) relative arm</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>COMPONENT monitor = L_monitor(nchan=100,
filename="cR65Ch10.wl",
<BR>
xmin=-0.1, xmax=0.1, ymin=-0.1,
ymax=0.1,<BR>
Lmin=1, Lmax=15)<BR> AT (0,0,0) RELATIVE slit2 ROTATED (0, 0, 0) RELATIVE
slit2<BR>END</FONT></DIV></BODY></HTML>