Need a HELP on open NGC file

More
24 Sep 2016 03:49 - 24 Sep 2016 15:14 #80843 by savoyyang
Hi everyone
Currently I'm testing some wood carving on LinuxCNC , the ngc file of wood carving is too big (10-20Mb) , when I opening the big ngc file , the GUI is stuck...(forgive my bad English)

So , I found the function "program_open" in /build/src/emc/usr_intf/axis/extensions/emcmodules.cc line 01062 (the version is 2.7.0) , but this function just cp the filename ,not cp the file(is right?).

Q1) where is the right function which implementation copying files from the hard disk into memory?(forgive my bad English again :( :( :( )
Q2) how can I solve this problem?
Thank !!!
Last edit: 24 Sep 2016 15:14 by BigJohnT.

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

More
24 Sep 2016 14:48 #80850 by andypugh
The GUI might be stuck generating the preview of the file.
You could try adding a "magic comment" to the G-code file that tells the Axis preview to stop trying to parse the file.

linuxcnc.org/docs/2.7/html/gui/axis.html#axis:preview-control

(Section 11.6)
The following user(s) said Thank You: jtc

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

More
24 Sep 2016 16:30 #80855 by savoyyang
Thank you andypugh , I know you mean and I will test it .

But I want to know the function where copying ngc files from the hard disk into memory in the source code? If you know that can you tell me? (I can't found this function On my own ability )

Thanks for replay

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

Time to create page: 0.066 seconds
Powered by Kunena Forum