NGCGUI "Unable to open file <dir>" [Solved]
- Transistor
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 25
- Thank you received: 0
12 Aug 2016 22:09 - 14 Aug 2016 14:17 #78692
by Transistor
NGCGUI "Unable to open file <dir>" [Solved] was created 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:
The qpocket dialog loads up OK but when I "Finalize" I get the error:
The ngc file and pngs are in the same folder as the ones that work.
Any suggestions?
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.
13 Aug 2016 06:12 - 13 Aug 2016 06:44 #78694
by Rick G
Replied by Rick G on topic NGCGUI "Unable to open file <dir>"
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
Rick G
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.
- Transistor
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 25
- Thank you received: 0
13 Aug 2016 13:55 #78706
by Transistor
Replied by Transistor on topic NGCGUI "Unable to open file <dir>" [Solved]
Thanks, Rick. I added another path with "/utilitysubs" to the search and that has worked.
For anyone else: my ini file now reads
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