Automatic home action

More
13 Nov 2012 05:25 #26511 by diegoroman17
Hi,

Can you help me please?

I need can to do a action home immediately after a power action without any extra clic. Is possible this?

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

More
13 Nov 2012 18:28 #26527 by ArcEye
Replied by ArcEye on topic Automatic home action
Hi

Yes it is possible, but no-one should do it.

Uncommanded machine movement when power is applied is dangerous.

regards

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

More
13 Nov 2012 22:15 #26534 by diegoroman17
Replied by diegoroman17 on topic Automatic home action
Ok I understand but I want to know for information only. Other question I have a problem with HAL Gremlin. It have a offset position and I don't know why? I adjunt the image with my error

Another question, how I can make cleaning the area of component gremlin? Axis also has his paintbrush
Attachments:

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

More
14 Nov 2012 04:15 #26549 by andypugh
Replied by andypugh on topic Automatic home action

I need can to do a action home immediately after a power action

net whoa-this-is-unwise halui.machine.is-on => oneshot.0.in
net no_really_I_mean_it oneshot.0.out => halui.joint.0.home halui.joint.1.home halui.joint.2.home

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

More
14 Nov 2012 10:55 #26568 by cmorley
Replied by cmorley on topic Automatic home action
If you triple click the view it will clear.

or a python call to (assuming the widget is called gremlin):
gremlin.clear_live_plotter()

I assume you are rolling your own GUI in python

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

More
14 Nov 2012 11:11 #26569 by cmorley
Replied by cmorley on topic Automatic home action
to auto home on power on, add a callbck to the power-on button
in the callback check if homed if not , emit clicked from the home widget.
the callback would look something like this

on_power_clicked(self,widget):
if not all_homed:
home_button.emit("clicked")

I assume the buttons already have actions related to them

Chris

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

More
15 Nov 2012 22:11 #26626 by diegoroman17
Replied by diegoroman17 on topic Automatic home action
I tried with triple clic and it don't work. It work with double right clic. My GUI is with touch screen and doesn't exist right clic jejeje. I will try with a button for clean with phyton commands. Thanks

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

More
15 Nov 2012 22:44 #26630 by diegoroman17
Replied by diegoroman17 on topic Automatic home action
Now ALL work :)

but all this a question arises. Where I find information over a list, use and manipulation of the methods and attributes of Hal components and GladeVCP components in general? You have a valuable knowledge. Where you learned much Jhon Cmorley and ArcEye?

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

More
16 Nov 2012 08:32 #26649 by BigJohnT
Replied by BigJohnT on topic Automatic home action
The HTML manual page has all the info and I've learned it by going back to the manuals a lot.

John

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

More
18 Nov 2012 06:42 - 18 Nov 2012 06:50 #26732 by cmorley
Replied by cmorley on topic Automatic home action
Sorry double right click clears the gladeVCP graphics, unless that been overridden (like Gscreen does)
It using a touch screen you really must program a button to do it.

I need to write some docs....master has lots of changes in it

The reason I am so familiar with gladevcp widgets is because I wrote the preliminary code for the basic gladeVCP stuff.
I have since modified and wrote some new widgets and just published Gscreen to master.
I have spent many painful hours in the source code :)
Write now we have good documentation for the basic gladeVCP widgets used in simple gladeVCP panels.
What we don't have is docs on levering the underlying functions. But John's tutorials are a great start on that!

Chris M
Last edit: 18 Nov 2012 06:50 by cmorley.

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

Time to create page: 0.089 seconds
Powered by Kunena Forum