Hi John

Glad to help.  The location of files in an installed package is a Linux
mystery that an old basic/fortran/pdp-10 guy like me does not understand
at all.  In the old days, we'd compile our executable, put it any old
place, lay the data alongside and point to them and go.  When EMC
started as a multi-platform soft system it was easiest to put it all in
one place 'cause the spark computer did it different from the split-bus
VME, and that different than the Alpha.  I'm still more comfortable when
I compile my EMC2 stuff with the --enable-run-in-place but that is not a
real good option until you begin compiling your own EMC2.

The Synaptic package manager has a nice installed files option under the
properties button.  That will help a lot when you as a human need to
find files.  Now, since the deb package places all the files in known
locations, it is possible to put those known locations into terminal
variables whenever EMC2 starts up.  This magic is done in part by the
"emc" executable script and in part by a program named make when the
source is compiled. 

To my way of old-timey thinking this scattering of files all over an
installed file system is a lot like sorting mail by zip code.  An
executable goes in a directory named bin, configs in etc, shared stuff
in /usr/share and such.  Once there you have to use a road map to get
all of them back into a pile -- because they were not designed to be in
a pile.  Someday, when we expand the source to include some of those
other OS's we will have to rethink this but for now the Linux folk have
the upper hand when it comes to packaging.

Man and Info pages are two very special ways of writing documentation.
You can gain access to man pages by using the help icon on the top bar.
You can read some man pages by typing man and the name of the command in
a terminal.  Try "man ls" and you'll see the page for the list contents
of a directory.  EMC2 uses a lot of man pages but sometimes they do not
get referenced or installed properly. 

There is a very nice set of HTML pages for the Tcl/Tk language.  I
believe that you can get these as a tarball someplace but can't seem to
find that reference right now.  They are on-line.  For example the
"button" command I used in the example is described in detail here.

http://www.tcl.tk/man/tcl8.4/TkCmd/button.htm

You'll notice that EMC2 uses the 8.4 version of Tcl/Tk.  

Rayh
 




On Sat, 2007-07-28 at 08:01 -0500, John Thornton wrote:
> Thanks so much for your reply Ray,
> 
> I found the Tcl site and found that I have Tcl installed by looking in my 
> Synaptic 
> Package Manager. I downloaded and installed the manual with the Synaptic 
> Package Manager. After some searching I think I downloaded the man pages what 
> ever that is... 
> 
> How does EMC2 know that the tkemc.tcl file is located in usr/share/emc/tcl 
> directory. I looked for that path in the tkemc.ini and the emc.nml but could 
> not find 
> it...
> 
> BTW, the example was a big help.
> 
> Thanks
> John
> 
> 
> > Date: Fri, 27 Jul 2007 07:30:41 -0500
> > From: Ray Henry <[EMAIL PROTECTED]>
> > Subject: Re: [Emc-users] TkEMC Interface
> > To: "Enhanced Machine Controller (EMC)"
> >  <emc-users@lists.sourceforge.net>
> > Message-ID: <[EMAIL PROTECTED]>
> > Content-Type: text/plain
> > 
> > 
> > Hi John
> > 
> > It is Tcl/Tk, a scripting language.  Yes it's read each time on
> > startup. If you want to play a bit with it read on.  
> > 
> > This language uses a couple of shells that it runs inside of.  The
> > graphical shell is "wish".  You can start wish by typing that into a
> > terminal.  You won't see anything but a blank display but you can add
> > stuff by typing into the terminal.  Below is a quick example that you
> > can try.  You'll see my terminal prompt followed by the stuff I typed
> > in.  You'll also see the wish prompt (%) and a response from wish when
> > it accepted the button command.
> > 
> > [EMAIL PROTECTED]:~$ wish
> > % button .b1 -text "Whatever"
> > .b1
> > % pack .b1 -fill both -expand yes
> > %
> > 
> > Once the button is in there, click it and you'll see the edge change
> > from raised to recessed.  You can kill off wish by clicking on the [x]
> > or use <control>c from the keyboard.
> > 
> > So the short answer to the question you didn't quite ask is, yes you
> > can make changes to tkemc and see those changes when you restart EMC2.
> >  Keep a backup laying around because, like any programming language,
> > Tcl/Tk has a very precise syntax.
> > 
> > Rayh
> > 
> > 
> > On Fri, 2007-07-27 at 06:59 -0500, John Thornton wrote:
> > > I do know about the Axis Slider on TkEMC as far as setting the jog
> > > speed. 
> > > 
> > > Does the number indicate the jog speed in inches per minute when
> > > your units are Inches?
> > > 
> > > I found the tkemc.tcl file and it appears to be a basic like
> > > language. 
> > > 
> > > What language is it? 
> > > 
> > > Is the file read each time you load EMC with the TkEMC interface or
> > > is it compiled?
> > > 
> > > Thanks
> > > John
> > 
> > 
> > 
> > 
> > ------------------------------
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> _______________________________________________
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
> 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to