On 9/20/2012 11:20 AM, Kent A. Reed wrote: > On 9/20/2012 6:21 AM, Dave wrote: >> Kent, >> I appreciate your comments, but can you be more specific to your >> solution. >> Are you suggesting that I use Axis Remote or Classic Ladder? I have >> never >> used either as I am just a newbie trying to learn as I go. Thanks > > Sorry, Dave. I was just noodling on a possible general solution that > would require more programming to make it part of the LinuxCNC fabric. > I'm not sure there are existing LinuxCNC components that could do any > better than you have already done. > > However, I saw Andy's suggestion of Axis Remote. I've never used it > and will have to see if there's something there I overlooked before I > could say how I would exploit it. > > Classic Ladder doesn't feel like the direction I'd want to go, but > there are others on this list who know it backward and forward and may > think differently. > > By the way, I forgot to say I think your use of barcoding to speed up > your work-process is very clever. It never would have occurred to me. >
Okay, Dave, so I had a minute (more like 100!) to look at axis-remote while a kernel compile progresses. As Andy suggested (and I forgot), axis-remote can pass the name of an ngc file to a running Axis; Axis will try to open the file. The command-line syntax for this is $ axis-remote <filename> You'll see the results in Axis. If Axis can open the file, the title bar will reflect the new file name and the backplot window will update. If it can't, you'll see a pithy Axis error message such as "unable to open...." If Axis is already running a file, an error message is returned to axis-remote. If axis-remote is invoked in a terminal as shown above, "axis cannot accept remote command while running" will be printed in the terminal. I can see two ways to exploit this ability in your application. 1) in the programming language of your choice, write a little program that reads in a whole line of data from your barcode scanner and invokes axis-remote with the data as its argument. 2) hack axis-remote (it's a straightforward Python program) to do this in one fell swoop. Call the new program something memorable, like barcode2axis.py. Either way, you'd start your helper program in a separate terminal after you start LinuxCNC and Axis. Regards, Kent ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://ad.doubleclick.net/clk;258768047;13503038;j? http://info.appdynamics.com/FreeJavaPerformanceDownload.html _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
