gmocappy clock
any sugestions? I add this to the postgui hal file , and the pins works just fine. What I need it to add it at the top of the current gnocappy clock , just under the user tab.
# -- hooking up cycle timer
loadrt time
#loadrt not
addf time.0 servo-thread
addf not.5 servo-thread
net prog-running not.5.in <= halui.program.is-idle
net cycle-timer time.0.start <= not.5.out
net cycle-timer-pause time.0.pause <= halui.program.is-paused
#net cycle-seconds pyvcp.time-seconds <= time.0.seconds
#net cycle-minutes pyvcp.time-minutes <= time.0.minutes
#net cycle-hours pyvcp.time-hours <= time.0.hours
Please Log in or Create an account to join the conversation.
please find attached a modified glade file. I added three labels:
gmoccapy.lbl_hours
gmoccapy.lbl_minutes
gmoccapy.lbl_seconds
Is this what you looked for?
This glade file will require you to use the latest 2.8 branch from rip environment. Please update to the latest 2,8 release, and than replace the gmoccapy glade file with the attached one.
place it in linuxcnc-dev/src/emc/usr_intf/gmoccapy and replace the one from the rip environment.
do a make and try if that is what you want.
Norbert
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- machine on
- Program running
- spindle running
but I do not think the position of the timers over the clock on the right button box is the correct place for that. IMHO it should be placed on the settings page.
If I do include such a feature, it will be in a new GUI based on python 3 and GTK3, not in gmoccapy.
If you like the timers, just make a glade panel an include that one as a custom panel.
Hope you do understand, that I will try to get my work concentrated on the new python3 version.
Norbert
Please Log in or Create an account to join the conversation.
BTW , I notice that the speed controls dont work under touch screen displays , I mean the sliders , still need to use the + and _ buttons , and in many cases you need fast acction. Is there a way to make the sliders working with mouse or touch , not only the + and -
Please Log in or Create an account to join the conversation.
Attachments:
Please Log in or Create an account to join the conversation.
jasen wrote: Great , thats what was needed. Many thanks Norbert.
BTW , I notice that the speed controls dont work under touch screen displays , I mean the sliders , still need to use the + and _ buttons , and in many cases you need fast acction. Is there a way to make the sliders working with mouse or touch , not only the + and -
Jasen, I do know that. The sliders are mostly designed to be used with analog input signals, like potentiometers or also with an MPG input signal. As soon as you connect a analog signal to the gmoccapy hal signal for the slider, the + and - Button are gone and a fast reaction is very well working.
I have been asked several times to ad a handle to that widgets to be able to move them fast with a mouse or touch screen, but I have decided not to put effort in it, to get more time on the python 3 part of linuxcnc.
Norbert
Please Log in or Create an account to join the conversation.
thanks.
Please Log in or Create an account to join the conversation.
I am pretty sure you will be able to make a lovely design, based on your own hardware?
If you like, I can post fotos and connection sheets.
Norbert
Please Log in or Create an account to join the conversation.