Subroutine GUI

More
04 Apr 2011 13:45 - 04 Apr 2011 13:50 #8478 by piasdom
Replied by piasdom on topic Re:Subroutine GUI
still no button, but i noticed that i don't have a [HALUI} section.
just a [HAL]. should i rename it or add [HALUI] section somewhere ?


[HAL]
HALFILE = Axis.hal
HALFILE = custom.hal
POSTGUI_HALFILE = custom_postgui.hal
MDI_COMMAND = G0 X0 Y0 Z0

well, i added this

[HALUI]
MDI_COMMAND = G0 X0 Y0 Z0

below [HAL] section and emc started but no button. i did rename [HAL] to [HALUI] and got error.
Last edit: 04 Apr 2011 13:50 by piasdom.

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

More
04 Apr 2011 13:54 #8479 by BigJohnT
Replied by BigJohnT on topic Re:Subroutine GUI
No, don't rename the [HAL] to [HALUI].

Lets focus on the button first.

What is the entire contents of your MyPVC.xml file?

and in your [DISPLAY] section do you have

PYVCP = MyPVC.xml

John

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

More
04 Apr 2011 14:06 - 04 Apr 2011 14:08 #8480 by piasdom
Replied by piasdom on topic Re:Subroutine GUI
[DISPLAY]
DISPLAY = axis
PYPVC = MyPVC.xml
py = python
EDITOR = gedit
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = ACTUAL
MAX_FEED_OVERRIDE = 1.8
# picture location /usr/share/emc/
INTRO_GRAPHIC = Lava.gif
INTRO_TIME = 3
PROGRAM_PREFIX = /home/mill/Gcode(Linux)
INCREMENTS = .1in .05in .01in .005in .001in .0005in 1in
MDI_COMMAND = G0 X0 Y0 Z0
[FILTER]
PROGRAM_EXTENSION = .png,.gif,.jpg Greyscale Depth Image
PROGRAM_EXTENSION = .py Python Script
png = image-to-gcode
gif = image-to-gcode
jpg = image-to-gcode
py = python

MyPVC.xml
only thing in MyPVC.xml is below

<pyvcp>
<labelframe text="MDI Commands">
<button>
<halpin>"rapid-to-home"</halpin>
<text>"Rapid to Home"</text>
<font>('Helvetica',10)</font>
</button>
</labelframe>
</pyvcp>
Last edit: 04 Apr 2011 14:08 by piasdom.

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

More
04 Apr 2011 14:14 - 04 Apr 2011 14:25 #8481 by BigJohnT
Replied by BigJohnT on topic Re:Subroutine GUI
You have a typo... you have PYPVC not PYVCP.

I'm hoping for a smiley face next.

Also move the MDI line to your [HALUI] section.

John
Last edit: 04 Apr 2011 14:25 by BigJohnT.

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

More
04 Apr 2011 14:34 #8482 by piasdom
Replied by piasdom on topic Re:Subroutine GUI
i changed the typo(error:), and not get error "no such file or dir"
i have the MyVCP.xml in the config folder /home/mill/emc2/configs/.
i'm guessing i need to find the folder it "should" be in.

[DISPLAY]
DISPLAY = axis
PYVCP = MyVCP.xml
EDITOR = gedit
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = ACTUAL
MAX_FEED_OVERRIDE = 1.8
# picture location /usr/share/emc/
INTRO_GRAPHIC = Lava.gif
INTRO_TIME = 3
PROGRAM_PREFIX = /home/mill/Gcode(Linux)
INCREMENTS = .1in .05in .01in .005in .001in .0005in 1in

Print file information:
RUN_IN_PLACE=no
EMC2_DIR=
EMC2_BIN_DIR=/usr/bin
EMC2_TCL_DIR=/usr/share/emc/tcl
EMC2_SCRIPT_DIR=
EMC2_RTLIB_DIR=/usr/realtime-2.6.32-122-rtai/modules/emc2
EMC2_CONFIG_DIR=
EMC2_LANG_DIR=/usr/share/emc/tcl/msgs
INIVAR=inivar
HALCMD=halcmd
EMC2_EMCSH=/usr/bin/wish8.5
EMC2 - 2.4.6
Machine configuration directory is '/home/mill/emc2/configs/Axis'
Machine configuration file is 'Axis.ini'
INIFILE=/home/mill/emc2/configs/Axis/Axis.ini
PARAMETER_FILE=emc.var
EMCMOT=motmod
EMCIO=io
TASK=milltask
HALUI=
DISPLAY=axis
NML_FILE=
Starting EMC2...
Starting EMC2 server program: emcsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting EMC2 IO program: io
Starting EMC2 TASK program: milltask
Starting EMC2 DISPLAY program: axis
Shutting down and cleaning up EMC2...
Killing task emcsvr, PID=14495
Killing task milltask, PID=14563
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Cleanup done

Debug file information:
Traceback (most recent call last):
File "/usr/bin/axis", line 3942, in <module>
vcpparse.create_vcp(f, comp)
File "debian/tmp/usr/lib/python2.6/dist-packages/vcpparse.py", line 177, in create_vcp
File "debian/tmp/usr/lib/python2.6/dist-packages/vcpparse.py", line 47, in read_file
File "/usr/lib/python2.6/xml/dom/minidom.py", line 1918, in parse
return expatbuilder.parse(file)
File "/usr/lib/python2.6/xml/dom/expatbuilder.py", line 922, in parse
fp = open(file, 'rb')
IOError: [Errno 2] No such file or directory: 'MyVCP.xml'
14495
PID TTY STAT TIME COMMAND
14563
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components

Kernel message information:
[10593.390864] I-pipe: Domain RTAI registered.
[10593.390869] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03.
[10593.390871] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) .
[10593.390945] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
[10593.390947] PIPELINE layers:
[10593.390949] fb64fe20 9ac15d93 RTAI 200
[10593.390951] c085cb20 0 Linux 100
[10593.406646] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[10593.407034] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes.
[10593.407039] RTAI[sched]: hard timer type/freq = APIC/20833017(Hz); default timing: periodic; linear timed lists.
[10593.407042] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 2500425000 hz.
[10593.407044] RTAI[sched]: timer setup = 999 ns, resched latency = 2943 ns.
[10593.407435] RTAI[usi]: enabled.
[10593.429748] RTAI[math]: loaded.
[10593.483326] config string '0x378 out '
[10594.382149] PnPBIOS: get_dev_node: function not supported on this system
[10594.382153] probe_parport 00:0a: disable failed
[10594.421835] RTAI[math]: unloaded.
[10594.436508] SCHED releases registered named ALIEN RTGLBH
[10594.497298] RTAI[malloc]: unloaded.
[10594.597033] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[10594.599616] I-pipe: Domain RTAI unregistered.
[10594.599711] RTAI[hal]: unmounted.

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

More
04 Apr 2011 14:36 - 04 Apr 2011 14:37 #8483 by BigJohnT
Replied by BigJohnT on topic Re:Subroutine GUI
It must be in the same folder as your ini and hal file is.

/home/mill/emc2/configs/Axis

John
Last edit: 04 Apr 2011 14:37 by BigJohnT.

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

More
04 Apr 2011 14:38 #8484 by piasdom
Replied by piasdom on topic Re:Subroutine GUI
i moved the file to home/mill/emc2/configs/Axis/MyVCP.xml
and i got a button. :) but it does nothing. i tried in both manual
and mdi. does it move the table as well or just zeros XYZ ?

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

More
04 Apr 2011 14:43 #8485 by BigJohnT
Replied by BigJohnT on topic Re:Subroutine GUI
Ok, we are making progress now!

Copy and paste what is in your [HAL] and [HALUI]

John

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

More
04 Apr 2011 14:46 #8486 by piasdom
Replied by piasdom on topic Re:Subroutine GUI
i was thinking about this and remembered i need to "link" the pins:huh: ?
i forgot the file i added the link into. was it axis.hal ?



[HAL]
HALFILE = Axis.hal
HALFILE = custom.hal
POSTGUI_HALFILE = custom_postgui.hal

[HALUI]
MDI_COMMAND = G0 X0 Y0 Z0

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

More
04 Apr 2011 14:57 #8488 by BigJohnT
Replied by BigJohnT on topic Re:Subroutine GUI
Yes in your custom.hal file add the following

# MDI commands
# rapid to home button
net remote-rapid-home halui.mdi-command-00 <= pyvcp.rapid-to-home

The net command links them.

John

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

Time to create page: 0.116 seconds
Powered by Kunena Forum