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

More
10 years 2 months ago #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:
Code:
# 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?

Please Log in to join the conversation.

More
10 years 2 months ago #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
Code:
[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

Please Log in to join the conversation.

More
10 years 2 months ago #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
Code:
[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 to join the conversation.

Time to create page: 0.073 seconds
Powered by Kunena Forum