Re: [Emc-users] John Thorntons Gui3 Sample in Linuxcnc 2.6pre

2014-02-11 Thread Mark Tucker
Chris

What files would i have to transfer to machinekit to get gaxis_no_plot 
to work?
gaxis_no_plot_handler.py and gaxis_noplot.glade etc.
Or will i have to do a full install of ubc3?
Charles did give me the instructions to install your ubc3 and i did try 
gaxis_no_plot but is it possible to give it another go without this process?
Also how easy is it to drive from the keyboard?

On 07/02/14 15:38, Chris Morley wrote:
 Do you have an emc_stat widget in the glade file?
 When you say gscreen uses 90% cpu, which skin if gscreen? Gaxis no-gui should 
 be the least cpu hungry. Gaxis second least.

 Chris M

 - Reply message -
 From: Mark Tucker m...@rmtucker.f2s.com
 To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net
 Subject: [Emc-users] John Thorntons Gui3 Sample in Linuxcnc 2.6pre
 Date: Fri, Feb 7, 2014 6:01 AM


 Andy

 I had already changed the comment to your version but i still have the
 same results.
 Everything works fine with axis and Gscreen but it will not work with my
 custom Gui.
 At the end of the day it must be something in the Gui.
 I just followed JT's tutorials and it worked fine until i try to put it
 in a real setup.

 All i wish to do at the end of the day is write a simple Gui for
 machinekit that shows the needed info for running a cnc,but without the
 cpu usage that Gscreen etc uses.

 The simpler standard Gui examples like Mini etc do not even show the
 current feedrate etc.

 I thought it might be easier to write my own but unfortunately there
 seems to be a total lack of current up to date info on this
 process,other than johns tutorials.

 As an example when using Gscreen/Machinekit cpu usage is about 90% when
 idle???
 When using mini etc it is around 14%.



 On 07/02/14 13:23, andy pugh wrote:
 On 7 February 2014 11:16, Mark Tucker m...@rmtucker.f2s.com wrote:

 I now have the following lines in my Hal file:-

 newsig test bit
 sets test 1
 net test iocontrol.0.emc-enable-in

 Is this not enough to enable the power button
 It should work.
 setp iocontrol.0.emc-enable-in 1
 would be shorter.


 --
 Managing the Performance of Cloud-Based Applications
 Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
 Read the Whitepaper.
 http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users
 --
 Managing the Performance of Cloud-Based Applications
 Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
 Read the Whitepaper.
 http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users




--
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] John Thorntons Gui3 Sample in Linuxcnc 2.6pre

2014-02-11 Thread Chris Morley


 Date: Tue, 11 Feb 2014 16:29:56 +
 From: m...@rmtucker.f2s.com
 To: emc-users@lists.sourceforge.net
 Subject: Re: [Emc-users] John Thorntons Gui3 Sample in Linuxcnc 2.6pre
 
 Chris
 
 What files would i have to transfer to machinekit to get gaxis_no_plot 
 to work?
 gaxis_no_plot_handler.py and gaxis_noplot.glade etc.
 Or will i have to do a full install of ubc3?
 Charles did give me the instructions to install your ubc3 and i did try 
 gaxis_no_plot but is it possible to give it another go without this process?
 Also how easy is it to drive from the keyboard?
 

I'm sorry I am not up to speed on machinekit or UB3 but
if you transfer gaxis_no_plot.ini, gaxis_no_plot.glade and 
gaxis_no_plot_handler.py
into the configs/sim/gscreen folder it just might work for testing as a sim.

The INI would be found in confgs/sim/gscreen/gscreen_custom/
The other two in share/gscreen/skins/gaxis_no_plot
These would be in a current master of course.

There is more we can do to lower CPU drag ...
I guess I need to acquire a BBB.. sometime :)

Chris M

 On 07/02/14 15:38, Chris Morley wrote:
  Do you have an emc_stat widget in the glade file?
  When you say gscreen uses 90% cpu, which skin if gscreen? Gaxis no-gui 
  should be the least cpu hungry. Gaxis second least.

  
--
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] John Thorntons Gui3 Sample in Linuxcnc 2.6pre

2014-02-11 Thread Chris Morley

 
 What files would i have to transfer to machinekit to get gaxis_no_plot 
 to work?
 gaxis_no_plot_handler.py and gaxis_noplot.glade etc.
 Or will i have to do a full install of ubc3?
 Charles did give me the instructions to install your ubc3 and i did try 
 gaxis_no_plot but is it possible to give it another go without this process?


 Also how easy is it to drive from the keyboard?
 

Gaxis_no_plot uses the cursor keys for x and y and page up and down for Z
The manual tab must be showing to jog.

F1 is estop
F2 is machine on.
F10 pops the menu and that is navigable with the cursor keys.

Others could be added

Chris M


  
--
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] John Thorntons Gui3 Sample in Linuxcnc 2.6pre

2014-02-08 Thread Mark Tucker
How do i display the current velocity or feedrate in my gui?
I have tried creating a label called dro_feedrate in the glade file then 
putting the following in the handler file:-

data = self.status.current.vel
 text = % 9.4f% (data)
 self.builder.get_object(dro_feedrate).set_text(text)

But when running a program with a feed of f24 the label is showing 10.16.
I also tried self.status.feedrate but that just showed 1.0.




On 08/02/14 04:28, Chris Morley wrote:

 Date: Fri, 7 Feb 2014 17:18:28 +0100
 From: nie...@web.de
 To: emc-users@lists.sourceforge.net
 Subject: Re: [Emc-users] John Thorntons Gui3 Sample in Linuxcnc 2.6pre

 I can confirm the very hight CPU Usage of gscreen gaxis! I use an AMD
 ATHLON X2-4800+ with 2 GB Ram, not optimized, so no isolcpus etc,
 because I use this one as development PC.

 Gcsreen Gaxis uses 70 % of CPU 2 and 30 % of CPU 1.
 Gaxis with or without gremlin?
 Sounds like with.
 Do you use software opengl or hardware accelerated
 Sounds like software.
   
 If I startAXIS; It uses aprox the samne amount of CPU Usage.

 Yes most of that is the graphics plot

 Original gmoccapy with gscreen background uses 99 % of CPU 1 and 35 % of
 CPU 2.

 I am just making gmoccapy stand alone and I try to optimize as much as
 possible.
 I can't give values of the CPU  usage yezt.

 Norbert


 Cutting the update rate of Gremlin helps a lot - I toyed with the idea of 
 making it
 settable.
 The source_view widget uses a lot too.
 We could probably optimize the widgets to use hal_stat rather then their own.

 Chris M
   
 --
 Managing the Performance of Cloud-Based Applications
 Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
 Read the Whitepaper.
 http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users




--
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] John Thorntons Gui3 Sample in Linuxcnc 2.6pre

2014-02-08 Thread Mark Tucker
oops
Ignore my ramblings the current_vel is per second,so just multiply x 60

On 08/02/14 16:12, Mark Tucker wrote:
 How do i display the current velocity or feedrate in my gui?
 I have tried creating a label called dro_feedrate in the glade file then
 putting the following in the handler file:-

 data = self.status.current.vel
   text = % 9.4f% (data)
   self.builder.get_object(dro_feedrate).set_text(text)

 But when running a program with a feed of f24 the label is showing 10.16.
 I also tried self.status.feedrate but that just showed 1.0.




 On 08/02/14 04:28, Chris Morley wrote:
 Date: Fri, 7 Feb 2014 17:18:28 +0100
 From: nie...@web.de
 To: emc-users@lists.sourceforge.net
 Subject: Re: [Emc-users] John Thorntons Gui3 Sample in Linuxcnc 2.6pre

 I can confirm the very hight CPU Usage of gscreen gaxis! I use an AMD
 ATHLON X2-4800+ with 2 GB Ram, not optimized, so no isolcpus etc,
 because I use this one as development PC.

 Gcsreen Gaxis uses 70 % of CPU 2 and 30 % of CPU 1.
 Gaxis with or without gremlin?
 Sounds like with.
 Do you use software opengl or hardware accelerated
 Sounds like software.

 If I startAXIS; It uses aprox the samne amount of CPU Usage.

 Yes most of that is the graphics plot

 Original gmoccapy with gscreen background uses 99 % of CPU 1 and 35 % of
 CPU 2.

 I am just making gmoccapy stand alone and I try to optimize as much as
 possible.
 I can't give values of the CPU  usage yezt.

 Norbert


 Cutting the update rate of Gremlin helps a lot - I toyed with the idea of 
 making it
 settable.
 The source_view widget uses a lot too.
 We could probably optimize the widgets to use hal_stat rather then their own.

 Chris M
  
 --
 Managing the Performance of Cloud-Based Applications
 Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
 Read the Whitepaper.
 http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users



 --
 Managing the Performance of Cloud-Based Applications
 Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
 Read the Whitepaper.
 http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users




--
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] John Thorntons Gui3 Sample in Linuxcnc 2.6pre

2014-02-07 Thread Mark Tucker
So does the instruction NO_FORCE_HOMING = 1 in the [TRAJ] section no 
longer circumnavigate this?

Also i hit a new snag yesterday while setting up machinekit gui.
Up until now i have had no problems with the gui running but after 
changing the hal file to run my actual machine,the machine on button is 
now greyed out.

The original Hal File used to look like this:-

# this input signal must be active LOW to allow the system to energize.
# this should be fed through an NC STOP type switch from DB25-1 to DB25-10
net estop-in bb_gpio.p8.in-09 = iocontrol.0.emc-enable-in
setp bb_gpio.p8.in-09.invert 1

I now have the following lines in my Hal file:-

newsig test bit
sets test 1
net test iocontrol.0.emc-enable-in

Is this not enough to enable the power button or has something been changed in 
there as well?

The power button works fine if i switch the gui to axis or gscreen it just no 
longer works in my custom gui.

The above changes were to circumnavigate the E-stop on a xylotex Db25 cape.


On 07/02/14 04:51, Chris Morley wrote:


 On 2/5/2014 3:49 AM, Mark Tucker wrote:
 I have been fiddling around with JT's Tutorials,in particular Gui3 shown
 here http://gnipsel.com/linuxcnc/gui/index.html.
 I can get this to run on 2.5.3 no problem,but when i try to run from 2.6
 pre it loads up and you can take the machine out of estop but the run
 button stays greyed out?
 I have tried this on both developer machines with the same result.
 Am i missing something?

 I assume you are using HAL_action buttons.
 You can't run without being homed.
 so it stays greyed out till un-estoped and homed
 This is new in 2.6

 Chris M
   
 --
 Managing the Performance of Cloud-Based Applications
 Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
 Read the Whitepaper.
 http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users



--
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] John Thorntons Gui3 Sample in Linuxcnc 2.6pre

2014-02-07 Thread andy pugh
On 7 February 2014 11:16, Mark Tucker m...@rmtucker.f2s.com wrote:

 I now have the following lines in my Hal file:-

 newsig test bit
 sets test 1
 net test iocontrol.0.emc-enable-in

 Is this not enough to enable the power button

It should work.
setp iocontrol.0.emc-enable-in 1
would be shorter.

-- 
atp
If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto

--
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] John Thorntons Gui3 Sample in Linuxcnc 2.6pre

2014-02-07 Thread Mark Tucker
Andy

I had already changed the comment to your version but i still have the 
same results.
Everything works fine with axis and Gscreen but it will not work with my 
custom Gui.
At the end of the day it must be something in the Gui.
I just followed JT's tutorials and it worked fine until i try to put it 
in a real setup.

All i wish to do at the end of the day is write a simple Gui for 
machinekit that shows the needed info for running a cnc,but without the 
cpu usage that Gscreen etc uses.

The simpler standard Gui examples like Mini etc do not even show the 
current feedrate etc.

I thought it might be easier to write my own but unfortunately there 
seems to be a total lack of current up to date info on this 
process,other than johns tutorials.

As an example when using Gscreen/Machinekit cpu usage is about 90% when 
idle???
When using mini etc it is around 14%.



On 07/02/14 13:23, andy pugh wrote:
 On 7 February 2014 11:16, Mark Tucker m...@rmtucker.f2s.com wrote:

 I now have the following lines in my Hal file:-

 newsig test bit
 sets test 1
 net test iocontrol.0.emc-enable-in

 Is this not enough to enable the power button
 It should work.
 setp iocontrol.0.emc-enable-in 1
 would be shorter.



--
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] John Thorntons Gui3 Sample in Linuxcnc 2.6pre

2014-02-07 Thread andy pugh
On 7 February 2014 13:57, Mark Tucker m...@rmtucker.f2s.com wrote:

 I had already changed the comment to your version but i still have the
 same results.
 Everything works fine with axis and Gscreen but it will not work with my
 custom Gui.

You probabl need to have a look at the machine status. I find it most
convenient to open a terminal (ssh works too) and
halcmd -kf
show pin *machine*

For example will show the status of machine-is-on etc.

Does the button start active and de-activate? You might only need to
set it to active in Glade. Or it might be being disabled by underlying
Python code.

-- 
atp
If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto

--
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] John Thorntons Gui3 Sample in Linuxcnc 2.6pre

2014-02-07 Thread Mark Tucker
Andy

I tried as below and everything shows as False.
I have re-downloaded johns example files from 
http://gnipsel.com/linuxcnc/gui/gui08a.html
I have re installed them and the gui shows fine but the power button is 
greyed out which is exactly what my gui is doing.

I have just altered back to axis using the same ini and hal file and 
axis powers up no problem.

On 07/02/14 14:12, andy pugh wrote:
 On 7 February 2014 13:57, Mark Tucker m...@rmtucker.f2s.com wrote:

 I had already changed the comment to your version but i still have the
 same results.
 Everything works fine with axis and Gscreen but it will not work with my
 custom Gui.
 You probabl need to have a look at the machine status. I find it most
 convenient to open a terminal (ssh works too) and
 halcmd -kf
 show pin *machine*

 For example will show the status of machine-is-on etc.

 Does the button start active and de-activate? You might only need to
 set it to active in Glade. Or it might be being disabled by underlying
 Python code.



--
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] John Thorntons Gui3 Sample in Linuxcnc 2.6pre

2014-02-07 Thread Chris Morley

Do you have an emc_stat widget in the glade file?
When you say gscreen uses 90% cpu, which skin if gscreen? Gaxis no-gui should 
be the least cpu hungry. Gaxis second least.

Chris M

- Reply message -
From: Mark Tucker m...@rmtucker.f2s.com
To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net
Subject: [Emc-users] John Thorntons Gui3 Sample in Linuxcnc 2.6pre
Date: Fri, Feb 7, 2014 6:01 AM


Andy

I had already changed the comment to your version but i still have the
same results.
Everything works fine with axis and Gscreen but it will not work with my
custom Gui.
At the end of the day it must be something in the Gui.
I just followed JT's tutorials and it worked fine until i try to put it
in a real setup.

All i wish to do at the end of the day is write a simple Gui for
machinekit that shows the needed info for running a cnc,but without the
cpu usage that Gscreen etc uses.

The simpler standard Gui examples like Mini etc do not even show the
current feedrate etc.

I thought it might be easier to write my own but unfortunately there
seems to be a total lack of current up to date info on this
process,other than johns tutorials.

As an example when using Gscreen/Machinekit cpu usage is about 90% when
idle???
When using mini etc it is around 14%.



On 07/02/14 13:23, andy pugh wrote:
 On 7 February 2014 11:16, Mark Tucker m...@rmtucker.f2s.com wrote:

 I now have the following lines in my Hal file:-

 newsig test bit
 sets test 1
 net test iocontrol.0.emc-enable-in

 Is this not enough to enable the power button
 It should work.
 setp iocontrol.0.emc-enable-in 1
 would be shorter.



--
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users
--
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] John Thorntons Gui3 Sample in Linuxcnc 2.6pre

2014-02-07 Thread Mark Tucker
Chris

There is no emc_stat widget present and no mention of power on in the 
handler file.
It seems to be purely using the power and estop widgets.
But the estop widget is useless because we have bypassed it in the hal 
file as stated.

 Chris

 I don't recall any emc_stat widget in the tutorial but i may be wrong.
 I will load up the glade file on my developer os and check

 Yes i did try the Gaxis no live plot but i had lots of errors etc and
 thought i would write my own.
 Big mistake!!!
 1 week later and a lot less hair,and i am just scratching the surface.

 On 07/02/14 15:38, Chris Morley wrote:
 Do you have an emc_stat widget in the glade file?
 When you say gscreen uses 90% cpu, which skin if gscreen? Gaxis no-gui 
 should be the least cpu hungry. Gaxis second least.

 Chris M

 - Reply message -
 From: Mark Tucker m...@rmtucker.f2s.com
 To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net
 Subject: [Emc-users] John Thorntons Gui3 Sample in Linuxcnc 2.6pre
 Date: Fri, Feb 7, 2014 6:01 AM


 Andy

 I had already changed the comment to your version but i still have the
 same results.
 Everything works fine with axis and Gscreen but it will not work with my
 custom Gui.
 At the end of the day it must be something in the Gui.
 I just followed JT's tutorials and it worked fine until i try to put it
 in a real setup.

 All i wish to do at the end of the day is write a simple Gui for
 machinekit that shows the needed info for running a cnc,but without the
 cpu usage that Gscreen etc uses.

 The simpler standard Gui examples like Mini etc do not even show the
 current feedrate etc.

 I thought it might be easier to write my own but unfortunately there
 seems to be a total lack of current up to date info on this
 process,other than johns tutorials.

 As an example when using Gscreen/Machinekit cpu usage is about 90% when
 idle???
 When using mini etc it is around 14%.



 On 07/02/14 13:23, andy pugh wrote:
 On 7 February 2014 11:16, Mark Tucker m...@rmtucker.f2s.com wrote:

 I now have the following lines in my Hal file:-

 newsig test bit
 sets test 1
 net test iocontrol.0.emc-enable-in

 Is this not enough to enable the power button
 It should work.
 setp iocontrol.0.emc-enable-in 1
 would be shorter.

 --
 Managing the Performance of Cloud-Based Applications
 Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
 Read the Whitepaper.
 http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users
 --
 Managing the Performance of Cloud-Based Applications
 Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
 Read the Whitepaper.
 http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users


 --
 Managing the Performance of Cloud-Based Applications
 Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
 Read the Whitepaper.
 http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users


 --
 Managing the Performance of Cloud-Based Applications
 Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
 Read the Whitepaper.
 http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users




--
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] John Thorntons Gui3 Sample in Linuxcnc 2.6pre

2014-02-07 Thread Chris Morley

Please add the emc_stat widget

- Reply message -
From: Mark Tucker m...@rmtucker.f2s.com
To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net
Subject: [Emc-users] John Thorntons Gui3 Sample in Linuxcnc 2.6pre
Date: Fri, Feb 7, 2014 8:28 AM


Chris

There is no emc_stat widget present and no mention of power on in the
handler file.
It seems to be purely using the power and estop widgets.
But the estop widget is useless because we have bypassed it in the hal
file as stated.

 Chris

 I don't recall any emc_stat widget in the tutorial but i may be wrong.
 I will load up the glade file on my developer os and check

 Yes i did try the Gaxis no live plot but i had lots of errors etc and
 thought i would write my own.
 Big mistake!!!
 1 week later and a lot less hair,and i am just scratching the surface.

 On 07/02/14 15:38, Chris Morley wrote:
 Do you have an emc_stat widget in the glade file?
 When you say gscreen uses 90% cpu, which skin if gscreen? Gaxis no-gui 
 should be the least cpu hungry. Gaxis second least.

 Chris M

 - Reply message -
 From: Mark Tucker m...@rmtucker.f2s.com
 To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net
 Subject: [Emc-users] John Thorntons Gui3 Sample in Linuxcnc 2.6pre
 Date: Fri, Feb 7, 2014 6:01 AM


 Andy

 I had already changed the comment to your version but i still have the
 same results.
 Everything works fine with axis and Gscreen but it will not work with my
 custom Gui.
 At the end of the day it must be something in the Gui.
 I just followed JT's tutorials and it worked fine until i try to put it
 in a real setup.

 All i wish to do at the end of the day is write a simple Gui for
 machinekit that shows the needed info for running a cnc,but without the
 cpu usage that Gscreen etc uses.

 The simpler standard Gui examples like Mini etc do not even show the
 current feedrate etc.

 I thought it might be easier to write my own but unfortunately there
 seems to be a total lack of current up to date info on this
 process,other than johns tutorials.

 As an example when using Gscreen/Machinekit cpu usage is about 90% when
 idle???
 When using mini etc it is around 14%.



 On 07/02/14 13:23, andy pugh wrote:
 On 7 February 2014 11:16, Mark Tucker m...@rmtucker.f2s.com wrote:

 I now have the following lines in my Hal file:-

 newsig test bit
 sets test 1
 net test iocontrol.0.emc-enable-in

 Is this not enough to enable the power button
 It should work.
 setp iocontrol.0.emc-enable-in 1
 would be shorter.

 --
 Managing the Performance of Cloud-Based Applications
 Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
 Read the Whitepaper.
 http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users
 --
 Managing the Performance of Cloud-Based Applications
 Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
 Read the Whitepaper.
 http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users


 --
 Managing the Performance of Cloud-Based Applications
 Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
 Read the Whitepaper.
 http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users


 --
 Managing the Performance of Cloud-Based Applications
 Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
 Read the Whitepaper.
 http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users




--
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users
--
Managing the Performance of Cloud-Based

Re: [Emc-users] John Thorntons Gui3 Sample in Linuxcnc 2.6pre

2014-02-07 Thread Mark Tucker
Chris

I added the emc_stat widget as requested.It put it in objects and shows 
up as hal-stat
the power button is still grayed out.?

On 07/02/14 16:40, Chris Morley wrote:
 Please add the emc_stat widget

 - Reply message -
 From: Mark Tucker m...@rmtucker.f2s.com
 To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net
 Subject: [Emc-users] John Thorntons Gui3 Sample in Linuxcnc 2.6pre
 Date: Fri, Feb 7, 2014 8:28 AM


 Chris

 There is no emc_stat widget present and no mention of power on in the
 handler file.
 It seems to be purely using the power and estop widgets.
 But the estop widget is useless because we have bypassed it in the hal
 file as stated.

 Chris

 I don't recall any emc_stat widget in the tutorial but i may be wrong.
 I will load up the glade file on my developer os and check

 Yes i did try the Gaxis no live plot but i had lots of errors etc and
 thought i would write my own.
 Big mistake!!!
 1 week later and a lot less hair,and i am just scratching the surface.

 On 07/02/14 15:38, Chris Morley wrote:
 Do you have an emc_stat widget in the glade file?
 When you say gscreen uses 90% cpu, which skin if gscreen? Gaxis no-gui 
 should be the least cpu hungry. Gaxis second least.

 Chris M

 - Reply message -
 From: Mark Tucker m...@rmtucker.f2s.com
 To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net
 Subject: [Emc-users] John Thorntons Gui3 Sample in Linuxcnc 2.6pre
 Date: Fri, Feb 7, 2014 6:01 AM


 Andy

 I had already changed the comment to your version but i still have the
 same results.
 Everything works fine with axis and Gscreen but it will not work with my
 custom Gui.
 At the end of the day it must be something in the Gui.
 I just followed JT's tutorials and it worked fine until i try to put it
 in a real setup.

 All i wish to do at the end of the day is write a simple Gui for
 machinekit that shows the needed info for running a cnc,but without the
 cpu usage that Gscreen etc uses.

 The simpler standard Gui examples like Mini etc do not even show the
 current feedrate etc.

 I thought it might be easier to write my own but unfortunately there
 seems to be a total lack of current up to date info on this
 process,other than johns tutorials.

 As an example when using Gscreen/Machinekit cpu usage is about 90% when
 idle???
 When using mini etc it is around 14%.



 On 07/02/14 13:23, andy pugh wrote:
 On 7 February 2014 11:16, Mark Tucker m...@rmtucker.f2s.com wrote:

 I now have the following lines in my Hal file:-

 newsig test bit
 sets test 1
 net test iocontrol.0.emc-enable-in

 Is this not enough to enable the power button
 It should work.
 setp iocontrol.0.emc-enable-in 1
 would be shorter.

 --
 Managing the Performance of Cloud-Based Applications
 Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
 Read the Whitepaper.
 http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users
 --
 Managing the Performance of Cloud-Based Applications
 Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
 Read the Whitepaper.
 http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users


 --
 Managing the Performance of Cloud-Based Applications
 Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
 Read the Whitepaper.
 http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users

 --
 Managing the Performance of Cloud-Based Applications
 Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
 Read the Whitepaper.
 http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users



 --
 Managing the Performance of Cloud-Based Applications
 Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
 Read the Whitepaper.
 http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users

Re: [Emc-users] John Thorntons Gui3 Sample in Linuxcnc 2.6pre

2014-02-07 Thread Mark Tucker
Chris

I don't recall any emc_stat widget in the tutorial but i may be wrong.
I will load up the glade file on my developer os and check

Yes i did try the Gaxis no live plot but i had lots of errors etc and 
thought i would write my own.
Big mistake!!!
1 week later and a lot less hair,and i am just scratching the surface.

On 07/02/14 15:38, Chris Morley wrote:
 Do you have an emc_stat widget in the glade file?
 When you say gscreen uses 90% cpu, which skin if gscreen? Gaxis no-gui should 
 be the least cpu hungry. Gaxis second least.

 Chris M

 - Reply message -
 From: Mark Tucker m...@rmtucker.f2s.com
 To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net
 Subject: [Emc-users] John Thorntons Gui3 Sample in Linuxcnc 2.6pre
 Date: Fri, Feb 7, 2014 6:01 AM


 Andy

 I had already changed the comment to your version but i still have the
 same results.
 Everything works fine with axis and Gscreen but it will not work with my
 custom Gui.
 At the end of the day it must be something in the Gui.
 I just followed JT's tutorials and it worked fine until i try to put it
 in a real setup.

 All i wish to do at the end of the day is write a simple Gui for
 machinekit that shows the needed info for running a cnc,but without the
 cpu usage that Gscreen etc uses.

 The simpler standard Gui examples like Mini etc do not even show the
 current feedrate etc.

 I thought it might be easier to write my own but unfortunately there
 seems to be a total lack of current up to date info on this
 process,other than johns tutorials.

 As an example when using Gscreen/Machinekit cpu usage is about 90% when
 idle???
 When using mini etc it is around 14%.



 On 07/02/14 13:23, andy pugh wrote:
 On 7 February 2014 11:16, Mark Tucker m...@rmtucker.f2s.com wrote:

 I now have the following lines in my Hal file:-

 newsig test bit
 sets test 1
 net test iocontrol.0.emc-enable-in

 Is this not enough to enable the power button
 It should work.
 setp iocontrol.0.emc-enable-in 1
 would be shorter.


 --
 Managing the Performance of Cloud-Based Applications
 Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
 Read the Whitepaper.
 http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users
 --
 Managing the Performance of Cloud-Based Applications
 Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
 Read the Whitepaper.
 http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users




--
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] John Thorntons Gui3 Sample in Linuxcnc 2.6pre

2014-02-07 Thread John Thornton
Sorry, work is pressing... I noticed the Subject says Gui3 and  you 
downloaded Gui8? Which one are you working on?

I'll try and test with master this evening.

JT


On 2/7/2014 8:49 AM, Mark Tucker wrote:
 Andy

 I tried as below and everything shows as False.
 I have re-downloaded johns example files from
 http://gnipsel.com/linuxcnc/gui/gui08a.html
 I have re installed them and the gui shows fine but the power button is
 greyed out which is exactly what my gui is doing.

 I have just altered back to axis using the same ini and hal file and
 axis powers up no problem.

 On 07/02/14 14:12, andy pugh wrote:
 On 7 February 2014 13:57, Mark Tucker m...@rmtucker.f2s.com wrote:

 I had already changed the comment to your version but i still have the
 same results.
 Everything works fine with axis and Gscreen but it will not work with my
 custom Gui.
 You probabl need to have a look at the machine status. I find it most
 convenient to open a terminal (ssh works too) and
 halcmd -kf
 show pin *machine*

 For example will show the status of machine-is-on etc.

 Does the button start active and de-activate? You might only need to
 set it to active in Glade. Or it might be being disabled by underlying
 Python code.


 --
 Managing the Performance of Cloud-Based Applications
 Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
 Read the Whitepaper.
 http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users


--
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] John Thorntons Gui3 Sample in Linuxcnc 2.6pre

2014-02-07 Thread Mark Tucker
Chris

I changed the line

setp iocontrol.0.emc-enable-in 1

To

net estop-loop iocontrol.0.user-enable-out iocontrol.0.emc-enable-in

And JT's example now works.As does Axis etc.?  :-)  :-)

I am sure this will not be my only problem but thank you for now.




On 07/02/14 17:49, Chris Morley wrote:
 Ok. Please post your files and i will look at after work.
 Chris M

 - Reply message -
 From: Mark Tucker m...@rmtucker.f2s.com
 To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net
 Subject: [Emc-users] John Thorntons Gui3 Sample in Linuxcnc 2.6pre
 Date: Fri, Feb 7, 2014 9:27 AM


 Chris

 I added the emc_stat widget as requested.It put it in objects and shows
 up as hal-stat
 the power button is still grayed out.?

 On 07/02/14 16:40, Chris Morley wrote:
 Please add the emc_stat widget

 - Reply message -
 From: Mark Tucker m...@rmtucker.f2s.com
 To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net
 Subject: [Emc-users] John Thorntons Gui3 Sample in Linuxcnc 2.6pre
 Date: Fri, Feb 7, 2014 8:28 AM


 Chris

 There is no emc_stat widget present and no mention of power on in the
 handler file.
 It seems to be purely using the power and estop widgets.
 But the estop widget is useless because we have bypassed it in the hal
 file as stated.

 Chris

 I don't recall any emc_stat widget in the tutorial but i may be wrong.
 I will load up the glade file on my developer os and check

 Yes i did try the Gaxis no live plot but i had lots of errors etc and
 thought i would write my own.
 Big mistake!!!
 1 week later and a lot less hair,and i am just scratching the surface.

 On 07/02/14 15:38, Chris Morley wrote:
 Do you have an emc_stat widget in the glade file?
 When you say gscreen uses 90% cpu, which skin if gscreen? Gaxis no-gui 
 should be the least cpu hungry. Gaxis second least.

 Chris M

 - Reply message -
 From: Mark Tucker m...@rmtucker.f2s.com
 To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net
 Subject: [Emc-users] John Thorntons Gui3 Sample in Linuxcnc 2.6pre
 Date: Fri, Feb 7, 2014 6:01 AM


 Andy

 I had already changed the comment to your version but i still have the
 same results.
 Everything works fine with axis and Gscreen but it will not work with my
 custom Gui.
 At the end of the day it must be something in the Gui.
 I just followed JT's tutorials and it worked fine until i try to put it
 in a real setup.

 All i wish to do at the end of the day is write a simple Gui for
 machinekit that shows the needed info for running a cnc,but without the
 cpu usage that Gscreen etc uses.

 The simpler standard Gui examples like Mini etc do not even show the
 current feedrate etc.

 I thought it might be easier to write my own but unfortunately there
 seems to be a total lack of current up to date info on this
 process,other than johns tutorials.

 As an example when using Gscreen/Machinekit cpu usage is about 90% when
 idle???
 When using mini etc it is around 14%.



 On 07/02/14 13:23, andy pugh wrote:
 On 7 February 2014 11:16, Mark Tucker m...@rmtucker.f2s.com wrote:

 I now have the following lines in my Hal file:-

 newsig test bit
 sets test 1
 net test iocontrol.0.emc-enable-in

 Is this not enough to enable the power button
 It should work.
 setp iocontrol.0.emc-enable-in 1
 would be shorter.

 --
 Managing the Performance of Cloud-Based Applications
 Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
 Read the Whitepaper.
 http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users
 --
 Managing the Performance of Cloud-Based Applications
 Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
 Read the Whitepaper.
 http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users


 --
 Managing the Performance of Cloud-Based Applications
 Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
 Read the Whitepaper.
 http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users

 --
 Managing the Performance of Cloud-Based Applications
 Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
 Read the Whitepaper.
 http

Re: [Emc-users] John Thorntons Gui3 Sample in Linuxcnc 2.6pre

2014-02-07 Thread Mark Tucker
John

See my prev post to chris.
All is working now,on to the next problem.
Thank you.

On 07/02/14 18:13, John Thornton wrote:
 Sorry, work is pressing... I noticed the Subject says Gui3 and  you
 downloaded Gui8? Which one are you working on?

 I'll try and test with master this evening.

 JT


 On 2/7/2014 8:49 AM, Mark Tucker wrote:
 Andy

 I tried as below and everything shows as False.
 I have re-downloaded johns example files from
 http://gnipsel.com/linuxcnc/gui/gui08a.html
 I have re installed them and the gui shows fine but the power button is
 greyed out which is exactly what my gui is doing.

 I have just altered back to axis using the same ini and hal file and
 axis powers up no problem.

 On 07/02/14 14:12, andy pugh wrote:
 On 7 February 2014 13:57, Mark Tucker m...@rmtucker.f2s.com wrote:

 I had already changed the comment to your version but i still have the
 same results.
 Everything works fine with axis and Gscreen but it will not work with my
 custom Gui.
 You probabl need to have a look at the machine status. I find it most
 convenient to open a terminal (ssh works too) and
 halcmd -kf
 show pin *machine*

 For example will show the status of machine-is-on etc.

 Does the button start active and de-activate? You might only need to
 set it to active in Glade. Or it might be being disabled by underlying
 Python code.

 --
 Managing the Performance of Cloud-Based Applications
 Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
 Read the Whitepaper.
 http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users

 --
 Managing the Performance of Cloud-Based Applications
 Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
 Read the Whitepaper.
 http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users




--
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] John Thorntons Gui3 Sample in Linuxcnc 2.6pre

2014-02-07 Thread Niemand Sonst
I can confirm the very hight CPU Usage of gscreen gaxis! I use an AMD 
ATHLON X2-4800+ with 2 GB Ram, not optimized, so no isolcpus etc, 
because I use this one as development PC.

Gcsreen Gaxis uses 70 % of CPU 2 and 30 % of CPU 1.

If I startAXIS; It uses aprox the samne amount of CPU Usage.

Original gmoccapy with gscreen background uses 99 % of CPU 1 and 35 % of 
CPU 2.

I am just making gmoccapy stand alone and I try to optimize as much as 
possible.
I can't give values of the CPU  usage yezt.

Norbert


Am 07.02.2014 16:45, schrieb Mark Tucker:
 Chris

 I don't recall any emc_stat widget in the tutorial but i may be wrong.
 I will load up the glade file on my developer os and check

 Yes i did try the Gaxis no live plot but i had lots of errors etc and
 thought i would write my own.
 Big mistake!!!
 1 week later and a lot less hair,and i am just scratching the surface.

 On 07/02/14 15:38, Chris Morley wrote:
 Do you have an emc_stat widget in the glade file?
 When you say gscreen uses 90% cpu, which skin if gscreen? Gaxis no-gui 
 should be the least cpu hungry. Gaxis second least.

 Chris M

 - Reply message -
 From: Mark Tucker m...@rmtucker.f2s.com
 To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net
 Subject: [Emc-users] John Thorntons Gui3 Sample in Linuxcnc 2.6pre
 Date: Fri, Feb 7, 2014 6:01 AM


 Andy

 I had already changed the comment to your version but i still have the
 same results.
 Everything works fine with axis and Gscreen but it will not work with my
 custom Gui.
 At the end of the day it must be something in the Gui.
 I just followed JT's tutorials and it worked fine until i try to put it
 in a real setup.

 All i wish to do at the end of the day is write a simple Gui for
 machinekit that shows the needed info for running a cnc,but without the
 cpu usage that Gscreen etc uses.

 The simpler standard Gui examples like Mini etc do not even show the
 current feedrate etc.

 I thought it might be easier to write my own but unfortunately there
 seems to be a total lack of current up to date info on this
 process,other than johns tutorials.

 As an example when using Gscreen/Machinekit cpu usage is about 90% when
 idle???
 When using mini etc it is around 14%.



 On 07/02/14 13:23, andy pugh wrote:
 On 7 February 2014 11:16, Mark Tucker m...@rmtucker.f2s.com wrote:

 I now have the following lines in my Hal file:-

 newsig test bit
 sets test 1
 net test iocontrol.0.emc-enable-in

 Is this not enough to enable the power button
 It should work.
 setp iocontrol.0.emc-enable-in 1
 would be shorter.

 --
 Managing the Performance of Cloud-Based Applications
 Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
 Read the Whitepaper.
 http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users
 --
 Managing the Performance of Cloud-Based Applications
 Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
 Read the Whitepaper.
 http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users



 --
 Managing the Performance of Cloud-Based Applications
 Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
 Read the Whitepaper.
 http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users



--
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] John Thorntons Gui3 Sample in Linuxcnc 2.6pre

2014-02-07 Thread Chris Morley

Ok. Please post your files and i will look at after work.
Chris M

- Reply message -
From: Mark Tucker m...@rmtucker.f2s.com
To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net
Subject: [Emc-users] John Thorntons Gui3 Sample in Linuxcnc 2.6pre
Date: Fri, Feb 7, 2014 9:27 AM


Chris

I added the emc_stat widget as requested.It put it in objects and shows
up as hal-stat
the power button is still grayed out.?

On 07/02/14 16:40, Chris Morley wrote:
 Please add the emc_stat widget

 - Reply message -
 From: Mark Tucker m...@rmtucker.f2s.com
 To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net
 Subject: [Emc-users] John Thorntons Gui3 Sample in Linuxcnc 2.6pre
 Date: Fri, Feb 7, 2014 8:28 AM


 Chris

 There is no emc_stat widget present and no mention of power on in the
 handler file.
 It seems to be purely using the power and estop widgets.
 But the estop widget is useless because we have bypassed it in the hal
 file as stated.

 Chris

 I don't recall any emc_stat widget in the tutorial but i may be wrong.
 I will load up the glade file on my developer os and check

 Yes i did try the Gaxis no live plot but i had lots of errors etc and
 thought i would write my own.
 Big mistake!!!
 1 week later and a lot less hair,and i am just scratching the surface.

 On 07/02/14 15:38, Chris Morley wrote:
 Do you have an emc_stat widget in the glade file?
 When you say gscreen uses 90% cpu, which skin if gscreen? Gaxis no-gui 
 should be the least cpu hungry. Gaxis second least.

 Chris M

 - Reply message -
 From: Mark Tucker m...@rmtucker.f2s.com
 To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net
 Subject: [Emc-users] John Thorntons Gui3 Sample in Linuxcnc 2.6pre
 Date: Fri, Feb 7, 2014 6:01 AM


 Andy

 I had already changed the comment to your version but i still have the
 same results.
 Everything works fine with axis and Gscreen but it will not work with my
 custom Gui.
 At the end of the day it must be something in the Gui.
 I just followed JT's tutorials and it worked fine until i try to put it
 in a real setup.

 All i wish to do at the end of the day is write a simple Gui for
 machinekit that shows the needed info for running a cnc,but without the
 cpu usage that Gscreen etc uses.

 The simpler standard Gui examples like Mini etc do not even show the
 current feedrate etc.

 I thought it might be easier to write my own but unfortunately there
 seems to be a total lack of current up to date info on this
 process,other than johns tutorials.

 As an example when using Gscreen/Machinekit cpu usage is about 90% when
 idle???
 When using mini etc it is around 14%.



 On 07/02/14 13:23, andy pugh wrote:
 On 7 February 2014 11:16, Mark Tucker m...@rmtucker.f2s.com wrote:

 I now have the following lines in my Hal file:-

 newsig test bit
 sets test 1
 net test iocontrol.0.emc-enable-in

 Is this not enough to enable the power button
 It should work.
 setp iocontrol.0.emc-enable-in 1
 would be shorter.

 --
 Managing the Performance of Cloud-Based Applications
 Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
 Read the Whitepaper.
 http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users
 --
 Managing the Performance of Cloud-Based Applications
 Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
 Read the Whitepaper.
 http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users


 --
 Managing the Performance of Cloud-Based Applications
 Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
 Read the Whitepaper.
 http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users

 --
 Managing the Performance of Cloud-Based Applications
 Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
 Read the Whitepaper.
 http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users



 --
 Managing

Re: [Emc-users] John Thorntons Gui3 Sample in Linuxcnc 2.6pre

2014-02-07 Thread Chris Morley

Ok. Please post your files and i will look at after work.
Chris M

- Reply message -
From: Mark Tucker m...@rmtucker.f2s.com
To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net
Subject: [Emc-users] John Thorntons Gui3 Sample in Linuxcnc 2.6pre
Date: Fri, Feb 7, 2014 9:27 AM


Chris

I added the emc_stat widget as requested.It put it in objects and shows
up as hal-stat
the power button is still grayed out.?

On 07/02/14 16:40, Chris Morley wrote:
 Please add the emc_stat widget

 - Reply message -
 From: Mark Tucker m...@rmtucker.f2s.com
 To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net
 Subject: [Emc-users] John Thorntons Gui3 Sample in Linuxcnc 2.6pre
 Date: Fri, Feb 7, 2014 8:28 AM


 Chris

 There is no emc_stat widget present and no mention of power on in the
 handler file.
 It seems to be purely using the power and estop widgets.
 But the estop widget is useless because we have bypassed it in the hal
 file as stated.

 Chris

 I don't recall any emc_stat widget in the tutorial but i may be wrong.
 I will load up the glade file on my developer os and check

 Yes i did try the Gaxis no live plot but i had lots of errors etc and
 thought i would write my own.
 Big mistake!!!
 1 week later and a lot less hair,and i am just scratching the surface.

 On 07/02/14 15:38, Chris Morley wrote:
 Do you have an emc_stat widget in the glade file?
 When you say gscreen uses 90% cpu, which skin if gscreen? Gaxis no-gui 
 should be the least cpu hungry. Gaxis second least.

 Chris M

 - Reply message -
 From: Mark Tucker m...@rmtucker.f2s.com
 To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net
 Subject: [Emc-users] John Thorntons Gui3 Sample in Linuxcnc 2.6pre
 Date: Fri, Feb 7, 2014 6:01 AM


 Andy

 I had already changed the comment to your version but i still have the
 same results.
 Everything works fine with axis and Gscreen but it will not work with my
 custom Gui.
 At the end of the day it must be something in the Gui.
 I just followed JT's tutorials and it worked fine until i try to put it
 in a real setup.

 All i wish to do at the end of the day is write a simple Gui for
 machinekit that shows the needed info for running a cnc,but without the
 cpu usage that Gscreen etc uses.

 The simpler standard Gui examples like Mini etc do not even show the
 current feedrate etc.

 I thought it might be easier to write my own but unfortunately there
 seems to be a total lack of current up to date info on this
 process,other than johns tutorials.

 As an example when using Gscreen/Machinekit cpu usage is about 90% when
 idle???
 When using mini etc it is around 14%.



 On 07/02/14 13:23, andy pugh wrote:
 On 7 February 2014 11:16, Mark Tucker m...@rmtucker.f2s.com wrote:

 I now have the following lines in my Hal file:-

 newsig test bit
 sets test 1
 net test iocontrol.0.emc-enable-in

 Is this not enough to enable the power button
 It should work.
 setp iocontrol.0.emc-enable-in 1
 would be shorter.

 --
 Managing the Performance of Cloud-Based Applications
 Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
 Read the Whitepaper.
 http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users
 --
 Managing the Performance of Cloud-Based Applications
 Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
 Read the Whitepaper.
 http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users


 --
 Managing the Performance of Cloud-Based Applications
 Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
 Read the Whitepaper.
 http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users

 --
 Managing the Performance of Cloud-Based Applications
 Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
 Read the Whitepaper.
 http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users



 --
 Managing

Re: [Emc-users] John Thorntons Gui3 Sample in Linuxcnc 2.6pre

2014-02-07 Thread Chris Morley


 Date: Fri, 7 Feb 2014 17:18:28 +0100
 From: nie...@web.de
 To: emc-users@lists.sourceforge.net
 Subject: Re: [Emc-users] John Thorntons Gui3 Sample in Linuxcnc 2.6pre
 
 I can confirm the very hight CPU Usage of gscreen gaxis! I use an AMD 
 ATHLON X2-4800+ with 2 GB Ram, not optimized, so no isolcpus etc, 
 because I use this one as development PC.
 
 Gcsreen Gaxis uses 70 % of CPU 2 and 30 % of CPU 1.
Gaxis with or without gremlin?
Sounds like with.
Do you use software opengl or hardware accelerated
Sounds like software.
 
 
 If I startAXIS; It uses aprox the samne amount of CPU Usage.

Yes most of that is the graphics plot

 Original gmoccapy with gscreen background uses 99 % of CPU 1 and 35 % of 
 CPU 2.
 
 I am just making gmoccapy stand alone and I try to optimize as much as 
 possible.
 I can't give values of the CPU  usage yezt.
 
 Norbert
 
 

Cutting the update rate of Gremlin helps a lot - I toyed with the idea of 
making it
settable.
The source_view widget uses a lot too.
We could probably optimize the widgets to use hal_stat rather then their own.

Chris M
  
--
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] John Thorntons Gui3 Sample in Linuxcnc 2.6pre

2014-02-06 Thread Chris Morley



  On 2/5/2014 3:49 AM, Mark Tucker wrote:
  I have been fiddling around with JT's Tutorials,in particular Gui3 shown
  here http://gnipsel.com/linuxcnc/gui/index.html.
  I can get this to run on 2.5.3 no problem,but when i try to run from 2.6
  pre it loads up and you can take the machine out of estop but the run
  button stays greyed out?
  I have tried this on both developer machines with the same result.
  Am i missing something?
 

I assume you are using HAL_action buttons.
You can't run without being homed.
so it stays greyed out till un-estoped and homed 
This is new in 2.6

Chris M
  
--
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] John Thorntons Gui3 Sample in Linuxcnc 2.6pre

2014-02-05 Thread Mark Tucker
John

I was running from RIP,Anyway as it is running on the beaglebone i think 
i can manage to work on it but thanks for trying to help.

On 05/02/14 11:21, John Thornton wrote:
 I should have asked are you running it in a RIP or did you install it?

 JT

 On 2/5/2014 5:15 AM, Mark Tucker wrote:
 John

 Yes i was running master on 10.04
 And there were no errors showing in the terminal.
 But strangely i just tried it on BBB machinekit and it is working.

 On 05/02/14 11:09, John Thornton wrote:
 Run it from a terminal and see if any errors are reported.

 Are you running master on Ubuntu 10.04?

 JT

 On 2/5/2014 3:49 AM, Mark Tucker wrote:
 I have been fiddling around with JT's Tutorials,in particular Gui3 shown
 here http://gnipsel.com/linuxcnc/gui/index.html.
 I can get this to run on 2.5.3 no problem,but when i try to run from 2.6
 pre it loads up and you can take the machine out of estop but the run
 button stays greyed out?
 I have tried this on both developer machines with the same result.
 Am i missing something?


 --
 Managing the Performance of Cloud-Based Applications
 Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
 Read the Whitepaper.
 http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users
 --
 Managing the Performance of Cloud-Based Applications
 Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
 Read the Whitepaper.
 http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users


 --
 Managing the Performance of Cloud-Based Applications
 Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
 Read the Whitepaper.
 http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users

 --
 Managing the Performance of Cloud-Based Applications
 Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
 Read the Whitepaper.
 http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users




--
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users