________________________________
From: Kurt Jacobson <[email protected]>
Sent: April 17, 2017 8:16 PM
To: EMC developers
Subject: Re: [Emc-developers] view and mm/inches switching.

Chris,

I am using the user-space Python comp pasted below to get the G20/21 state
out to HAL pins. It looks somewhat similar to what you came up with (which
makes me feel good as I am just starting to learn python and play with
LCNC). I sent it to Gene on Saturday, but I guess he did not like it ;)

I brute forced it buy using the python interface and polling every 50ms and
updating the HAL pins, but I see you used a module GStat, where can I find
some info on that, it looks useful?

Cheers,
Kurt


Hi Kurt
your code looks fine.

Gstat is a super secret dev only code....

Ok truth is it is used in gladevcp and GUIs for widgets that require linuxcnc 
status updates.
It has no documentation - yet - I have some started somewhere...
I recently added more functions to it to help with GUI development.
I have a branch of QTvcp that uses it extensively.
I idea is to have only one program poll updates rather then every little 
program polling.
It uses GObject messages to tell the programs that are registered to the signal 
to update.
event driven updates is the GUI programming term for it.

look in lib/python/hal_glib.py for the code.

Chris M
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to