Java UI for linuxcnc

More
28 Sep 2019 18:49 #146499 by Reinhard
Hi,

I'm pretty happy with the result of some weekend-codings ;)
The UI already works as a slave of axis, as well as standalone started from the linuxcnc config selector.

I found the tool definitions in status structure and the position dro change display according to the joint definitions.

.
What I did not find yet - how are the values from var-file synchronized between linuxcnc-tasks?

The point is, I want to add a page, where the offsets can be edited.
From what I found, the offsets are in the var-file. The status structure contains only the active fixtures - right?
So when I change non active fixtures or coordinate systems, how are they synched?
Do I write the var file from the UI or what is the right way to handle value changes?

I realized that the tool file is read from the linuxcnc-background-process and put into the status structure.
I did not find similar behaviour for the fixtures.
Attachments:

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

More
29 Sep 2019 13:55 #146565 by pl7i92
Replied by pl7i92 on topic Java UI for linuxcnc
that is cool so we got anothere Language then the QT
pyqt .....
python ...

so now there will be muliiple patforms to operate on
even android app posible on java to a RT kernal PC like Raspberry

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

More
03 Oct 2019 00:42 #146922 by andypugh
Replied by andypugh on topic Java UI for linuxcnc
Most of the important data in LinuxCNC is passed about through the NML interface. Getting to that with Java might be something of a puzzle.

My understanding of the var file (and it isn't a very deep understanding) is that the file is only the persistent store to retain values through restarts.

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

More
03 Oct 2019 03:34 #146942 by Reinhard
Replied by Reinhard on topic Java UI for linuxcnc
Hi Andy,

thank you for your attention and support!
.

Most of the important data in LinuxCNC is passed about through the NML interface. Getting to that with Java might be something of a puzzle.

Oh yes - its really a puzzle. Guess i spent more time in searching, than in coding :dry:
But after all - the java UI uses NML interface only.

Don't know, whether I got it right - currently the status messages are the only way to retrieve values from hal.
NML-commands works to do anything.
The problem are the plenty informations, that are not part of status messages or fields, that are not updated in status messages ...
.

My understanding of the var file (and it isn't a very deep understanding) is that the file is only the persistent store to retain values through restarts.

I could follow that idiom and read the var-file at startup and than send changes by NML-commands.

I guess, I did not find all ways of information gathering yet.
I.e. qtdragon shows changing feed values during simulated homing - and when I read the status fields, I get always zero as feed value.

I would appreciate it a lot, if someone could shine me a light on how to access uptodate motion values.

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

Time to create page: 0.194 seconds
Powered by Kunena Forum