PiDiCNC Control System

More
22 Mar 2017 22:11 - 22 Mar 2017 22:30 #90091 by MarcoGaspar
Replied by MarcoGaspar on topic PiDiCNC Control System
With axis gui is the same lag.


file that is: www.dropbox.com/s/q6pc4gpf4kry373/20_01.NC?dl=0

This is a small file.. i use larger files :D
Last edit: 22 Mar 2017 22:30 by MarcoGaspar.

Please Log in or Create an account to join the conversation.

More
23 Mar 2017 08:10 #90103 by viktan
Replied by viktan on topic PiDiCNC Control System
Thanks for idea. I instal machinekit on latest image of debian. There is opengl 3.0 Mesa 13.0.0 preinstaled but the performance of preview is same. Is there any other option to set that linuxcnc window shold be rendered by opengl?
ġakujem pekne :)

Please Log in or Create an account to join the conversation.

More
23 Mar 2017 10:33 #90110 by tommylight
Replied by tommylight on topic PiDiCNC Control System
Does it have an option to set the amount of video memory in BIOS? Linux in general is very good at utilising memory, so it makes a huge diference if there is plenty of it.
Most desktops with integrated graphic cards have that option, that would leave more memory to video card even when Linux is running out of it. Would make the overal performance of Linux slower but chances are the update of the video would be a bit faster.
I do not have any of the RPI so i can not test this, sorry bro.
There is another posibility to test, but requires another computer. SSH from the other computer and start Linuxcnc, that way the GUI will be on the other computer.
Did you check TOP to see how and what process is slowing things down?

P.S. Sorry for the Polish, my bad. You are in Slovakia, or as i like to call it the country with most beautiful women on earth. Been in Bratislava for 3 weeks, came back with some minor PTSD. :)

Please Log in or Create an account to join the conversation.

More
24 Mar 2017 08:13 #90175 by viktan
Replied by viktan on topic PiDiCNC Control System
I tried to increase the gpu memory to 512MB but it help only little bit. I will try this SSH. Is there someone on forum who have deeper knowledge about this preview graphics? I believe there is a way how to run this correctly on Raspi
PS: :)
I heard it about our womas many times, but you know, everyone liked foreign womans ;)

Please Log in or Create an account to join the conversation.

More
24 Mar 2017 11:12 #90185 by tommylight
Replied by tommylight on topic PiDiCNC Control System
You are right about always liking what is not yours, but i do know why i insist on that, i have traveled half of Europe and Balkans and Asia (just Turkey).
Back on topic,
The general idea that that type of computer ( RPI, BBB, UDOO etc ) are very powerfull falls flat on it's face when you try to run anything that does a lot of procesing and heavier graphic, they just can not perform as we would expect them.
Case in point, i own a Galaxy Note 3, it is still a monster as far as smartphones go ( 4X2.3 GHz processors overclocable to up to 3 GHz ), for all intents and purposes a very fast machine......that is until you install Linux on it, it just can not cope with it, and i am fully aware that it does not run natively, but i can run virtual machines on a 2X2.53GHz laptop quite nicely.
Not going into the diferences between architectures and how they process things, but they definitely are not the same animal ( nature: house cats are in the same family with Lions and Tigers, although the latter are about 200 times biger and stronger).
After all this, i still like those smal pieces of c....., they do have a purpose and do an astonishing job, for some specific needs ( we had a lot of power cuts till 3 years ago, so having things battery powered was a must ), they use around 10W of power at full throtle, that Laptop i mention goes to 48W under full load, had one that used 69W ( quad i7 ).
When it comes to machines, power saving is not important much, my Thermal Dynamic plasma uses 28KVA at full throtle so sawing 30W is useless.
That is the main reason i gave up on smal computers since the time of RPI 1.
regards,
Tom

Please Log in or Create an account to join the conversation.

More
24 Mar 2017 11:19 #90187 by tommylight
Replied by tommylight on topic PiDiCNC Control System
One more thing, linuxcnc has 3 diferent timings for updating it's own things, they are in ini file and usualy set at 0.010, try seting them at 0.1 and give it a run, see how it impacts the refresh and performance, also set the base thread as high as you can posibly go, try 100000 and above up to 500000.
I am sure this helps, i just can not recal what i did a few years back to make it run on a 500MHz processor.
The base thread will limit the step rate, but if using lower microsteping it should be just fine.

Please Log in or Create an account to join the conversation.

More
24 Mar 2017 16:04 #90219 by viktan
Replied by viktan on topic PiDiCNC Control System
But our board use different aproach as make steps by cpu by base thread. Our step generator runs in FPGA (Spartan 6). We use only servo-thread and every ms we send a new speed for steppers. This FPGA have much more better performace for generating steps then any CPU.
In this video you can see the quality of step generation:
(on the end is stable freq around 200kHz, max. of pololu driver", board have max. at 750kHz)
In video what I send before I use 25600 microsteps per rev, at translations between cuts I reaching 300kHz, also limit of driver.
Our boards is universal, for example here is test with codesys and its webvisu:
www.dropbox.com/s/maj9mzn0wrgwkjs/VID_20170316_113410.mp4?dl=0

I think it could be great if I solve this problem with graphic performance, because it's senseless limit for this deivce
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

More
25 Mar 2017 01:44 #90231 by tommylight
Replied by tommylight on topic PiDiCNC Control System
Well did some testing based on you info, so here are the results:
Gcode file with 48000 lines > opens in a second and runs perfectly, screen updates a it slower at a rate of 3 fps roughly, linuxcnc usable stop/pause/start work properly.
Gcode file with 146000 lines > opens in 5 seconds, i can pres start and it works without a hitch, but linuxcnc is unresponsive totaly, when presing start there is no change in the button or anything on linuxcnc gui, presing stop also does not show but after 20-30 seconds it stops, trying to open another file after this also takes over 30 seconds. During this test i also noticed on the system monitor that the memory usage fluctuates a lot ( 3GB of RAM ), while TOP shows Axis as the main consumer of memory and processor ( over 125 constantly ).
During all this computer is usable and responsive as usual, everything else works properly and snappy.
Have to test tomorrow with an older version of linux and linuxcnc, just to see if the old trajectory planer with low look ahead works for this.
All in all a very starnge behaviour for sure as i can not think of a reason for this happening. After all it is a text file with over 2MB in size so should pose no problem.
More to come....

Please Log in or Create an account to join the conversation.

More
27 Mar 2017 08:06 - 27 Mar 2017 08:07 #90334 by viktan
Replied by viktan on topic PiDiCNC Control System
3GB ram
What kind of computer did you use?
Last edit: 27 Mar 2017 08:07 by viktan. Reason: Questiom moved to new line

Please Log in or Create an account to join the conversation.

More
27 Mar 2017 12:08 #90354 by tommylight
Replied by tommylight on topic PiDiCNC Control System
Older HP enterprise series DCxxxxx i think with 2X AMD 2.5GHz processors.

Please Log in or Create an account to join the conversation.

Moderators: PCWjmelson
Time to create page: 0.574 seconds
Powered by Kunena Forum