NGCGUI "Unable to open file <dir>" [Solved]

More
12 Aug 2016 22:09 - 14 Aug 2016 14:17 #78692 by Transistor
I am getting started with NGCGUI and trying to figure out how it works.

The default routines, simp, db25, etc., seem to generate g-code correctly. I added some of the others into the ini file so it reads as follows:
# specify filenames only, files must be in [RS274NGC]SUBROUTINE_PATH
NGCGUI_PREAMBLE   = in_std.ngc
NGCGUI_SUBFILE    = simp.ngc
NGCGUI_SUBFILE    = xyz.ngc
NGCGUI_SUBFILE    = qpocket.ngc
NGCGUI_SUBFILE    = slot.ngc
NGCGUI_SUBFILE    = iquad.ngc
NGCGUI_SUBFILE    = oquad.ngc
NGCGUI_SUBFILE    = arc1.ngc
NGCGUI_SUBFILE    = arc2.ngc
NGCGUI_SUBFILE    = db25.ngc
NGCGUI_SUBFILE    = ihex.ngc
NGCGUI_SUBFILE    = gosper.ngc

The qpocket dialog loads up OK but when I "Finalize" I get the error:

Near line 32 of /home/cnc1/linuxcnc/configs/ia-mill-linuxcnc/auto.ngc:
Unable to open file <dir>


The ngc file and pngs are in the same folder as the ones that work.

Any suggestions?
Last edit: 14 Aug 2016 14:17 by Transistor.

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

More
13 Aug 2016 06:12 - 13 Aug 2016 06:44 #78694 by Rick G
The error code is that the sub file dir.ngc is not in the correct folder / path.
It is normally located in the linuxcnc/nc_files_ngcgui_lib/utilitysubs
You can make sure the file is located there and modify the path in your ini file or move the file dir.ngc to the same location as your other NGCGUI files.

As an example from ngcgui.ini
[RS274NGC]
PARAMETER_FILE    = sim.var
SUBROUTINE_PATH   = ../../nc_files/ngcgui_lib:../../nc_files/ngcgui_lib/utilitysubs
USER_M_PATH       = ../../nc_files/ngcgui_lib/mfiles

Rick G
Last edit: 13 Aug 2016 06:44 by Rick G.

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

More
13 Aug 2016 13:55 #78706 by Transistor
Thanks, Rick. I added another path with "/utilitysubs" to the search and that has worked.

For anyone else: my ini file now reads
[RS274NGC]
PARAMETER_FILE = linuxcnc.var
# Added for NGCGUI by transistor
SUBROUTINE_PATH   = ../../nc_files/ngcgui_lib:../../ngcgui_lib/utilitysubs:/usr/share/linuxcnc/ncfiles/ngcgui_lib:/usr/share/linuxcnc/ncfiles/ngcgui_lib/utilitysubs
USER_M_PATH       = ../../nc_files/ngcgui_lib/mfiles

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

Time to create page: 0.059 seconds
Powered by Kunena Forum