DIPLAY = halui error

More
6 years 6 months ago #165571 by prochj51
Hi,

I want to use LinuxCNC from command line so I want no axis gui. I have read
that I have to change DISPLAY = axis to DISPLAY = halui.
When I run this configuration I get error:
HAL: ERROR: duplicate component name 'halui'
HALUI: ERROR: hal_init() failed

I suppose that is because of the line
HALUI = halui

So when I comment it out, I get pin related error
./my_LinuxCNC_machine.hal:229: Pin 'halui.axis.x.select' does not exist
Would you know how I can overcome this?

Thank you
Jiri

Please Log in to join the conversation.

More
6 years 6 months ago #165587 by cmorley
Replied by cmorley on topic DIPLAY = halui error
try adding the path to the INI file.

DISPLAY = halui -ini path/to/INI

Please Log in to join the conversation.

More
6 years 6 months ago #165662 by prochj51
Replied by prochj51 on topic DIPLAY = halui error
Thanks for response.
Still says duplicate component.

I use LinuxCNC master branch.

Jiri

Please Log in to join the conversation.

More
6 years 6 months ago #165678 by cmorley
Replied by cmorley on topic DIPLAY = halui error
try removing the HALUI=halui

Please Log in to join the conversation.

More
6 years 6 months ago #165681 by prochj51
Replied by prochj51 on topic DIPLAY = halui error
then it says
./my_LinuxCNC_machine.hal:229: Pin 'halui.axis.x.select' does not exist

I am attaching both ini and hal

Please Log in to join the conversation.

More
6 years 6 months ago #165734 by cmorley
Replied by cmorley on topic DIPLAY = halui error
Well I tested and you can indeed load haui in the DISPLAY= entry.
My guess is that it doesn't wait till the halui component to finish before loading the HAL files, so the halui pins are not ready yet.

I would suggest finding a program you can load in the DISPLAY= entry that doesn't really matter and then continue loading halui in the HALUI=halui
My guess is the DISPLAY program must not end until you want linuxcnc to end.

Please Log in to join the conversation.

More
6 years 6 months ago #165801 by prochj51
Replied by prochj51 on topic DIPLAY = halui error
Yes,
thank you.

I made custom script myscript.py and I call
DISPLAY = myscript.py

works fine.
Thanks again.

Jiri

Please Log in to join the conversation.

More
6 years 6 months ago #165886 by cmorley
Replied by cmorley on topic DIPLAY = halui error
great! could you share your program for the next person?

Please Log in to join the conversation.

Time to create page: 0.170 seconds
Powered by Kunena Forum