Auto Tool Measurement setup,makes gmoccapy slow and difrent configation,

More
3 years 3 months ago #276015 by Aciera
The line needs to be _removed_.
The point is that having it there in the hal file will try to load gui-pins that are created only _after_ the hal file is executed. Hence the "postgui" entry in the ini file which means "hal file to be executed after the gui is created".

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

More
3 years 3 months ago - 3 years 3 months ago #276017 by Kasper-001
then i get this

hm2/hm2_7i92.0: registered
creating ladder-state
Found file(REL): ./custom.hal
CANNOT FIND FILE FOR:custom_postgui
Shutting down and cleaning up LinuxCNC...
Init tmp dir=/tmp/classicladder_tmp_GPq2hi
INFO CLASSICLADDER---I/O Modbus master closed!
extra emc serial data=8, parity=0, stop=1
INFO CLASSICLADDER---I/O Modbus master (Serial) init ok !
Running HAL shutdown script
ERROR CLASSICLADDER-   Error initializing classicladder user module.
hm2_eth: in hm2_eth_reset
hm2_eth: HostMot2 ethernet driver unloaded
hm2: unloading
Note: Using POSIX realtime
LinuxCNC terminated with an error.  You can find more information in the log:
    /home/cnc/linuxcnc_debug.txt
and
    /home/cnc/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
cnc@debian:~$ 




my ini 
[HAL]
HALUI = halui
HALFILE = test2.11.hal
HALFILE = custom.hal
HALFILE = custom_postgui hal
POSTGUI_HALFILE = postgui_call_list.hal
SHUTDOWN = shutdown.hal
 
Last edit: 3 years 3 months ago by Kasper-001.

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

More
3 years 3 months ago #276018 by Aciera
First thing is to remove this line in your ini:
HALFILE = custom_postgui hal

second please post the content of this file:
postgui_call_list.hal

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

More
3 years 3 months ago #276019 by Kasper-001
custom_postgui hal removed from ini

# These files are loaded post GUI, in the order they appear

source custom_postgui.hal
 

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

More
3 years 3 months ago #276020 by Aciera
Looks ok.
So on startup these two hal files will be executed:
HALFILE = test2.11.hal
HALFILE = custom.hal

And after the gui is running this postgui-hal file will be executed
custom_postgui.hal

Are you getting any errors on startup now?

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

More
3 years 3 months ago #276021 by Kasper-001
it startes very slow , and does not look the same

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

Time to create page: 0.217 seconds
Powered by Kunena Forum